Hook

@Serializable
data class Hook(val maxRetry: Int = 3, val trigger: Trigger, val action: Action)

Data class representing a hook that triggers an action.

Constructors

Link copied to clipboard
constructor(maxRetry: Int = 3, trigger: Trigger, action: Action)

Properties

Link copied to clipboard

The action to be executed when the trigger condition is met.

Link copied to clipboard
val maxRetry: Int = 3

The maximum number of retries for the hook action (default is 3).

Link copied to clipboard

The trigger condition for the hook action.