cp.resi
Module cp.resi
API
thushani/cp.resi
Choreo control plane resilient invoker implementation. [//]: # (above is the package summary)
Package Overview
Choreo control plane resilient invoker implementation.
Enums
cp.resi: FailureReason
Reason for the Invocation failure.
Members
cp.resi: InvocationEvent
Types of events to notify.
Members
cp.resi: MediaType
Media Type.
Members
cp.resi: Outcome
Outcome of the invocation.
Members
cp.resi: ScheduleStatus
Status of the invocation.
Members
Configurables
cp.resi: healthCheckPort
cp.resi: queueName
cp.resi: timeToLive
cp.resi: asbConnectionStringPath
cp.resi: asbConnectionString
Records
cp.resi: 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.resi: FailureInfo
Information about the Invocation failure.
Fields
- reason FailureReason - Reason for the failure
- message? string - Additional message about the failure
cp.resi: Header
Header.
Fields
- name string - Header name
cp.resi: 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.resi: MetaInfo
Meta Information.
Fields
- correlationId string - Correlation Id
- message? string - Message
cp.resi: Notification
Notification Configuration.
Fields
- webhookUrl string - URL of the webhook
- events InvocationEvent[] - Events to notify
cp.resi: ResponsePayload
Response payload.
Fields
- payload json|xml - Payload
- mediaType MediaType - Type of the payload
cp.resi: 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.resi: Target
Taget to invoke.
Fields
- targetUrl string - Target URL
- method string - HTTP Method
- headers? Header[] - Request headers
- targetPayload? TargetPayload - Target payload
cp.resi: 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.resi: 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.resi: 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.resi: TargetPayload
Target payload.
Fields
- payload json - Payload
- mediaType MediaType - Type of the payload
cp.resi: TargetResponse
Response from the target.
Fields
- responseCode int - Response code
- responseBody? ResponsePayload - Response body
- responseHeaders? Header[] - Response headers
Import
import thushani/cp.resi;
Metadata
Released date: 18 days ago
Version: 0.1.2
Compatibility
Platform: any
Ballerina version: 2201.12.1
GraalVM compatible: Yes
Pull count
Total: 20
Current verison: 17
Weekly downloads
Other versions
0.1.2
0.1.0