
Zenduty ZendutyAlert
CertifiedSend Zenduty alert payload
Zenduty ZendutyAlert
Send Zenduty alert payload
Posts a custom JSON payload to the Zenduty Events API. Use in errors to signal flow failures. Payload must follow the Events API (required: message, alert_type).
type: io.kestra.plugin.zenduty.ZendutyAlertExamples
Send a Zenduty alert on a failed flow execution. Make sure that the payload follows the Zenduty Events API specification, including the message and alert_type payload properties, which are required.
id: unreliable_flow
namespace: company.team
tasks:
- id: fail
type: io.kestra.plugin.scripts.shell.Commands
commands:
- exit 1
errors:
- id: alert_on_failure
type: io.kestra.plugin.zenduty.ZendutyAlert
url: "https://www.zenduty.com/api/events/{{ secret('ZENDUTY_INTEGRATION_KEY') }}/"
payload: |
{
"alert_type": "info",
"message": "This is info alert",
"summary": "This is the incident summary",
"suppressed": false,
"entity_id": 12345,
"payload": {
"status": "ACME Payments are failing",
"severity": "1",
"project": "kubeprod"
},
"urls": [
{
"link_url": "https://www.example.com/alerts/12345/",
"link_text": "Alert URL"
}
]
}
Properties
url *Requiredstring
1Zenduty Events API URL
Full Events API endpoint including integration key, e.g. https://www.zenduty.com/api/events/<integration_key>/
options
Tune Zenduty HTTP client
Optional HTTP client settings such as timeouts, charset, headers, and response size limits. Defaults: read timeout 10s, read idle timeout 5m, connection pool idle timeout 0s (no reuse), max content length 10 MB, charset UTF-8
io.kestra.plugin.zenduty.AbstractZendutyConnection-RequestOptions
Connection timeout before failing
PT0SConnection pool idle timeout
Defaults to 0s; disables keeping idle connections in the pool
UTF-8Request charset
Defaults to UTF-8 for request encoding
java.nio.charset.Charset
HTTP headers
Additional headers to include on the Zenduty request; supports expression rendering
10485760Maximum response size
Defaults to 10 MB; responses larger than this fail
PT5MIdle read timeout
Defaults to 5m; closes the connection if no data is read during this interval
PT10SRead timeout before failing
Defaults to 10s; aborts if the server does not send data within this duration
payload string
Alert payload JSON
Raw JSON body sent to Zenduty; supports expressions before send
pluginDefaultsRef Non-dynamicstring
Reference (ref) of the pluginDefaults to apply to this task.