Update Dedup Key Overlay
PUT {{baseUrl}}/services/:serviceID/overlays/dedup-key/:alertSource
This endpoint returns the default deduplication rules if not already created.
Requires access_token
as a Bearer {{token}}
in the Authorization
header with read
scope.
Request Body
{"overlay_template_type"=>"go", "dedup_key_overlay"=>{"template"=>"{{.labels.alertname}}-{{.labels.deployment}}", "duration"=>300}}
RESPONSES
status: OK
{"data":{"created_at":"2023-06-16T05:07:57.613953+05:30","updated_at":"2023-06-16T12:50:44.175498+05:30","deleted_at":null,"org_id":"6163f3d7f839f32753ff409b","service_id":"6163f3d7d7daa488535e7c28","alert_source_version":"v1","alert_source_shortname":"grafana","overlay_template_type":"go","overlay":{"dedup_key_overlay":{"template":"{{.labels.alertname}}-{{.labels.deployment}}","duration":300},"message_overlay":{"template":"{{.labels.alertname}}-{{.labels.deployment}}"},"description_overlay":{"template":"new desc 123 template"}}}}