Alerting: Support for active time intervals in notification policies (#104252)
* add active_time_intervals to route model * update k8s compat layer * update notification policies service to validate active time intervals * update integration tests * update openapi * add active time interval to model * update route generator to include active time interval * Update storage list and rename methods to handle active intervals * update api model * update provisioning and export models * update ui to allow active timing config * update i18n * fix snapshots for ui tests * run prettier * Alerting: Active time intervals UI naming (#104402) * update naming in UI * update naming in the edit page title * update translations * update alerting module --------- Signed-off-by: Yuri Tseretyan <yuriy.tseretyan@grafana.com> Co-authored-by: Sonia Aguilar <33540275+soniaAguilarPeiron@users.noreply.github.com> Co-authored-by: Sonia Aguilar <soniaaguilarpeiron@gmail.com>
This commit is contained in:
co-authored by
Sonia Aguilar
Sonia Aguilar
parent
a8dee54aa4
commit
3e2296acd3
@@ -85,6 +85,7 @@ resource "grafana_rule_group" "rule_group_d3e8424bfbf66bc3" {
|
||||
group_interval = "5s"
|
||||
repeat_interval = "5m"
|
||||
mute_timings = ["test-mute"]
|
||||
active_timings = ["test-mute"]
|
||||
}
|
||||
}
|
||||
rule {
|
||||
@@ -125,6 +126,7 @@ resource "grafana_rule_group" "rule_group_d3e8424bfbf66bc3" {
|
||||
group_interval = "5s"
|
||||
repeat_interval = "5m"
|
||||
mute_timings = ["test-mute"]
|
||||
active_timings = ["test-mute"]
|
||||
}
|
||||
}
|
||||
rule {
|
||||
|
||||
@@ -115,7 +115,8 @@
|
||||
"group_wait":"1s",
|
||||
"group_interval":"5s",
|
||||
"repeat_interval":"5m",
|
||||
"mute_time_intervals":["test-mute"]
|
||||
"mute_time_intervals":["test-mute"],
|
||||
"active_time_intervals":["test-mute"]
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -169,7 +170,8 @@
|
||||
"group_wait":"1s",
|
||||
"group_interval":"5s",
|
||||
"repeat_interval":"5m",
|
||||
"mute_time_intervals":["test-mute"]
|
||||
"mute_time_intervals":["test-mute"],
|
||||
"active_time_intervals":["test-mute"]
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
@@ -93,6 +93,8 @@ groups:
|
||||
repeat_interval: 5m
|
||||
mute_time_intervals:
|
||||
- test-mute
|
||||
active_time_intervals:
|
||||
- test-mute
|
||||
- uid: alert-with-uid
|
||||
title: alert with uid
|
||||
condition: B
|
||||
@@ -139,6 +141,8 @@ groups:
|
||||
repeat_interval: 5m
|
||||
mute_time_intervals:
|
||||
- test-mute
|
||||
active_time_intervals:
|
||||
- test-mute
|
||||
- title: recording rule
|
||||
data:
|
||||
- refId: query
|
||||
|
||||
@@ -116,7 +116,8 @@
|
||||
"group_wait":"1s",
|
||||
"group_interval":"5s",
|
||||
"repeat_interval":"5m",
|
||||
"mute_time_intervals":["test-mute"]
|
||||
"mute_time_intervals":["test-mute"],
|
||||
"active_time_intervals":["test-mute"]
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -171,7 +172,8 @@
|
||||
"group_wait":"1s",
|
||||
"group_interval":"5s",
|
||||
"repeat_interval":"5m",
|
||||
"mute_time_intervals":["test-mute"]
|
||||
"mute_time_intervals":["test-mute"],
|
||||
"active_time_intervals":["test-mute"]
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user