XExecution
XExecution
yaml
type: "io.kestra.plugin.x.XExecution"Examples
yaml
id: failure_alert_x
namespace: company.team
tasks:
- id: send_x_alert
type: io.kestra.plugin.x.XExecution
bearerToken: "{{ secret('X_BEARER_TOKEN') }}"
executionId: "{{ trigger.executionId }}"
customMessage: "Production workflow failed - immediate attention required!"
customFields:
Environment: "Production"
Team: "DevOps"
Priority: "High"
triggers:
- id: failed_prod_workflows
type: io.kestra.plugin.core.trigger.Flow
conditions:
- type: io.kestra.plugin.core.condition.ExecutionStatus
in:
- FAILED
- WARNING
- type: io.kestra.plugin.core.condition.ExecutionNamespace
namespace: prod
prefix: true
yaml
id: success_alert_x
namespace: company.team
tasks:
- id: send_x_success
type: io.kestra.plugin.x.XExecution
consumerKey: "{{ secret('X_CONSUMER_KEY') }}"
consumerSecret: "{{ secret('X_CONSUMER_SECRET') }}"
accessToken: "{{ secret('X_ACCESS_TOKEN') }}"
accessSecret: "{{ secret('X_ACCESS_SECRET') }}"
executionId: "{{ trigger.executionId }}"
customMessage: "Deployment completed successfully!"
triggers:
- id: successful_deployments
type: io.kestra.plugin.core.trigger.Flow
conditions:
- type: io.kestra.plugin.core.condition.ExecutionStatus
in:
- SUCCESS
Properties
accessSecret string
accessToken string
bearerToken string
consumerKey string
consumerSecret string
customFields object
customMessage string
executionId string
Default
{{ execution.id }}options
Definitions
io.kestra.plugin.x.AbstractXConnection-RequestOptions
connectTimeoutstring
connectionPoolIdleTimeoutstring
Default
PT0SdefaultCharsetstring
Default
UTF-8java.nio.charset.Charset
headersobject
SubTypestring
maxContentLengthintegerstring
Default
10485760readIdleTimeoutstring
Default
PT5MreadTimeoutstring
Default
PT10StemplateRenderMap object
textBody string
url string
Default
https://api.x.com/2/tweets