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

This commit is contained in:
Gilles De Mey 2024-01-08 15:48:36 +01:00 committed by GitHub
parent 890d6a960f
commit d2b023076b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 0 deletions

1
.github/CODEOWNERS vendored
View File

@ -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

View File

@ -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>

View File

@ -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 |

View File

@ -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,
],
},