cp.resilient_invoker
Module cp.resilient_invoker
API
thushani/cp.resilient_invoker
Choreo control plane resilient invoker implementation. [//]: # (above is the package summary)
Package Overview
Choreo control plane resilient invoker implementation.
Enums
cp.resilient_invoker: FailureReason
Reason for the Invocation failure.
Members
cp.resilient_invoker: InvocationEvent
Types of events to notify.
Members
cp.resilient_invoker: MediaType
Media Type.
Members
cp.resilient_invoker: Outcome
Outcome of the invocation.
Members
cp.resilient_invoker: ScheduleStatus
Status of the invocation.
Members
Configurables
cp.resilient_invoker: healthCheckPort
cp.resilient_invoker: queueName
cp.resilient_invoker: timeToLive
cp.resilient_invoker: asbConnectionStringPath
cp.resilient_invoker: asbConnectionString
Records
cp.resilient_invoker: ExecutionInfo
Information about the execution.
Fields
- attempt int - Current attempt
- totalAttempts int - Total attempts
- startTimestamp int - Start time of the invocation
- duration decimal - Time taken for the invocation
- nextAttemptAt? int - Timestamp of the next scheduled invocation attempt
- scheduleStatus ScheduleStatus - Status of the invocation
cp.resilient_invoker: FailureInfo
Information about the Invocation failure.
Fields
- reason FailureReason - Reason for the failure
- message? string - Additional message about the failure
cp.resilient_invoker: Header
Header.
Fields
- name string - Header name
cp.resilient_invoker: Invocation
Invocation.
Fields
- target Target - Target to invoke in a resilient manner
- completeOn int[] - Expected status codes to complete the invocation
- retryConfig? RetryConfig - Retry configuration
- notificationConfig Notification[] - Notification configuration
- metaInfo? MetaInfo - Meta information about the invocation
- id string - Invocation Id
cp.resilient_invoker: MetaInfo
Meta Information.
Fields
- correlationId string - Correlation Id
- message? string - Message
cp.resilient_invoker: Notification
Notification Configuration.
Fields
- webhookUrl string - URL of the webhook
- events InvocationEvent[] - Events to notify
cp.resilient_invoker: ResponsePayload
Response payload.
Fields
- payload json|xml - Payload
- mediaType MediaType - Type of the payload
cp.resilient_invoker: RetryConfig
Retry Configuration.
Fields
- initialDelay int(default 1) - Initial Delay in seconds
- progressionFactor decimal(default 1.0) - The factor by which the delay between retry attempts progresses.
- maxDelay int(default 3600) - Maximum delay in seconds
- count int(default 150) - Maximum number of calls to make. By default this is set to 150.
cp.resilient_invoker: Target
Taget to invoke.
Fields
- targetUrl string - Target URL
- method string - HTTP Method
- headers? Header[] - Request headers
- targetPayload? TargetPayload - Target payload
cp.resilient_invoker: TargetInvocationFailedNotification
Notification about a failed invocation.
Fields
- invocationId string - Invocation Id
- execution int - Execution count
- failureInfo FailureInfo - Information about the failure
- response? TargetResponse - Response from the target
- executionInfo ExecutionInfo - Information about the invocation schedule
cp.resilient_invoker: TargetInvocationNotification
Common notification about the Invocation.
Fields
- invocationId string - Invocation Id
- execution int - Execution count
- outcome Outcome - Outcome of the invocation
- failureInfo? FailureInfo - Information about the Invocation failure
- response? TargetResponse - Response from the target
- executionInfo ExecutionInfo - Information about the invocation schedule
cp.resilient_invoker: TargetInvocationSuccessfulNotification
Notification about a successful invocation.
Fields
- invocationId string - Invocation Id
- execution int - Execution count
- response? TargetResponse - Response from the target
- executionInfo ExecutionInfo - Information about the invocation schedule
cp.resilient_invoker: TargetPayload
Target payload.
Fields
- payload json - Payload
- mediaType MediaType - Type of the payload
cp.resilient_invoker: TargetResponse
Response from the target.
Fields
- responseCode int - Response code
- responseBody? ResponsePayload - Response body
- responseHeaders? Header[] - Response headers
Import
import thushani/cp.resilient_invoker;
Metadata
Released date: 18 days ago
Version: 0.1.0
Compatibility
Platform: any
Ballerina version: 2201.12.1
GraalVM compatible: Yes
Pull count
Total: 1
Current verison: 0
Weekly downloads
Other versions
0.1.0