Create or update alertmanager route at index API Reference
PUT /tenants/{tenant}/alertmanager/routes/{id}
PUT
/tenants/{tenant}/alertmanager/routes/{id}
Inserts or replaces the child route at the specified index on the root route. Indexes are 0-based and stable within a single Read+Write cycle. To append, pass an index equal to the current count returned by GET /routes.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” tenant
required
string
Tenant name
id
required
integer
Route index (0-based)
Header Parameters
Section titled “Header Parameters ” If-Match
string
Wrapper ETag
Request Body
Section titled “Request Body ”Route configuration
object
active_time_intervals
Array<string>
continue
boolean
group_by
Array<string>
Example
[ "alertname", "cluster"] group_interval
string
Example
5m group_wait
string
Example
30s match
object
key
additional properties
string
match_re
object
key
additional properties
string
matchers
Array<string>
Example
[ "severity=\"critical\""] mute_time_intervals
Array<string>
receiver
string
Example
slack repeat_interval
string
Example
4hResponses
Section titled “ Responses ”Route after upsert
object
active_time_intervals
Array<string>
continue
boolean
group_by
Array<string>
Example
[ "alertname", "cluster"] group_interval
string
Example
5m group_wait
string
Example
30s match
object
key
additional properties
string
match_re
object
key
additional properties
string
matchers
Array<string>
Example
[ "severity=\"critical\""] mute_time_intervals
Array<string>
receiver
string
Example
slack repeat_interval
string
Example
4hValidation error or out-of-range index
object
code
string
error
string
field
string
message
string
severity
string