If you need to reference existing alert channels that were created outside of your CLI project, use
fromId().Configuration
- Opsgenie Alert Channel
- General Alert Channel
Configure Opsgenie-specific settings:
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
name | string | ✅ | - | Friendly name to recognise the integration |
region | string | ✅ | - | Opsgenie location, either EU or US |
priority | string | ✅ | - | Severity level, P1 to P5 |
apiKey | string | ✅ | - | API key for your Opsgenie account |
Opsgenie Alert Channel Options
Friendly name to recognise the integration.
A string representing the Opsgenie location, either
EU or US.A string representing the severity level,
P1 to P5.An API key for your Opsgenie account.
General Alert Channel Options
These options are valid for all alert channels types.Whether to send notifications when checks recover from a failed or degraded state. Default value is
true.Whether to send notifications when checks become degraded. Default value is
false.Whether to send notifications when a SSL/TLS certificate is about to expire. Default value is Learn more about SSL alerts.
false.Number of days before the SSL/TLS certificate expiry date to send notifications. Only relevant when Learn more about SSL alerts.
sslExpiry is enabled. Default value is 30.