Alerting: Add support for TTL for pushover for Mimir Alertmanager (#78687)

pull/80164/head
Gilles De Mey 1 year ago committed by GitHub
parent 890d6a960f
commit d2b023076b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      .github/CODEOWNERS
  2. 2
      docs/sources/alerting/set-up/provision-alerting-resources/file-provisioning/index.md
  3. 1
      docs/sources/old-alerting/notifications.md
  4. 10
      public/app/features/alerting/unified/utils/cloud-alertmanager-notifier-types.ts

@ -462,6 +462,7 @@ cypress.config.js @grafana/grafana-frontend-platform
/public/app/routes/ @grafana/grafana-frontend-platform
/public/app/store/ @grafana/grafana-frontend-platform
/public/app/types/ @grafana/grafana-frontend-platform
/public/app/types/alerting.ts @grafana/alerting-frontend
/public/dashboards/ @grafana/dashboards-squad
/public/fonts/ @grafana/alerting-frontend
/public/gazetteer/ @ryantxu

@ -355,6 +355,8 @@ settings:
retry: '30'
# <string>
expire: '120'
# <string> the number of seconds before a message expires and is deleted automatically. Examples: 10s, 5m30s, 8h.
ttl:
# <string>
sound: siren
# <string>

@ -183,6 +183,7 @@ To set up Pushover, you must provide a user key and an API token. Refer to [What
| OK priority | The priority OK notifications are sent; if not set, then OK notifications are sent with the priority set for alerting notifications |
| Retry | How often (in seconds) the Pushover servers send the same notification to the user. (minimum 30 seconds) |
| Expire | How many seconds your notification will continue to be retried for (maximum 86400 seconds) |
| TTL | The number of seconds before a message expires and is deleted automatically. Examples: 10s, 5m30s, 8h. |
| Alerting sound | The sound for alerting notifications |
| OK sound | The sound for OK notifications |

@ -175,6 +175,16 @@ export const cloudNotifierTypes: Array<NotifierDTO<CloudNotifierType>> = [
placeholder: '1h',
}
),
option(
'ttl',
'TTL',
'The number of seconds before a message expires and is deleted automatically. Examples: 10s, 5m30s, 8h.',
{
// allow 30s, 4m30s, etc
validationRule: '^(\\d+[s|m|h])+$|^$',
element: 'input',
}
),
httpConfigOption,
],
},

Loading…
Cancel
Save