Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewWebhookActionRequest ¶
func NewWebhookActionRequest() *webhookActionRequest
Types ¶
type ActionInvocationsResponse ¶
type ActionInvocationsResponse struct {
HttpMetadata common.HttpMetadata
WorkflowId string `json:"workflow_id,omitempty"`
EventId string `json:"event_id,omitempty"`
WorkflowActionId string `json:"workflow_action_id,omitempty"`
ActionType WorkflowActionType `json:"action_type,omitempty"`
Status WorkflowActionStatus `json:"status,omitempty"`
ActionInvocations []WorkflowActionInvocation `json:"action_invocations,omitempty"`
}
Responses
type Actions ¶
type Actions struct {
*WebhookAction
}
type ActionsResponse ¶
type ActionsResponse struct {
Id string
Type WorkflowActionType
Actions
Links map[string]common.Link `json:"_links,omitempty"`
}
Responses
type WebhookAction ¶
type WebhookAction struct {
Url string `json:"url,omitempty"`
Headers map[string]string `json:"headers,omitempty"`
Signature *WebhookSignature `json:"signature,omitempty"`
}
type WebhookSignature ¶
type WorkflowActionInvocation ¶
type WorkflowActionInvocation struct {
InvocationId string `json:"invocation_id,omitempty"`
Timestamp *time.Time `json:"timestamp,omitempty"`
Retry bool `json:"retry,omitempty"`
Succeeded bool `json:"succeeded,omitempty"`
FinalAttempt bool `json:"final,omitempty"`
// Deprecated: This property will be removed in the future, and should not be used. Use ResultDetails instead.
Result map[string]interface{} `json:"result,omitempty"`
ResultDetails map[string]interface{} `json:"result_details,omitempty"`
}
type WorkflowActionStatus ¶
type WorkflowActionStatus string
const ( Pending WorkflowActionStatus = "pending" Successful WorkflowActionStatus = "successful" Failed WorkflowActionStatus = "failed" )
type WorkflowActionType ¶
type WorkflowActionType string
const (
Webhook WorkflowActionType = "webhook"
)
type WorkflowActions ¶
type WorkflowActions struct {
Type WorkflowActionType `json:"type,omitempty"`
}
Requests
Click to show internal directories.
Click to hide internal directories.