mirror of
https://github.com/rancher/types.git
synced 2025-07-12 12:57:58 +00:00
add option inherit advance from alert group in the alert rule as the default value.
Problem: both alert group and alert rule advance option is confused, we need to make then simple Solution: alert rule use alert group level advance option as default but user can edit if they don't have to inherit from group Issue: https://github.com/rancher/rancher/issues/17538
This commit is contained in:
parent
083953864c
commit
4fec1faea1
@ -195,6 +195,7 @@ type CommonGroupField struct {
|
||||
type CommonRuleField struct {
|
||||
DisplayName string `json:"displayName,omitempty"`
|
||||
Severity string `json:"severity,omitempty" norman:"required,options=info|critical|warning,default=critical"`
|
||||
Inherited *bool `json:"inherited,omitempty" norman:"default=true"`
|
||||
TimingField
|
||||
}
|
||||
|
||||
@ -207,9 +208,9 @@ type MetricRule struct {
|
||||
}
|
||||
|
||||
type TimingField struct {
|
||||
GroupWaitSeconds int `json:"groupWaitSeconds,omitempty" norman:"required,default=30,min=0"`
|
||||
GroupIntervalSeconds int `json:"groupIntervalSeconds,omitempty" norman:"required,default=180,min=0"`
|
||||
RepeatIntervalSeconds int `json:"repeatIntervalSeconds,omitempty" norman:"required,default=3600,min=0"`
|
||||
GroupWaitSeconds int `json:"groupWaitSeconds,omitempty" norman:"required,default=30,min=1"`
|
||||
GroupIntervalSeconds int `json:"groupIntervalSeconds,omitempty" norman:"required,default=180,min=1"`
|
||||
RepeatIntervalSeconds int `json:"repeatIntervalSeconds,omitempty" norman:"required,default=3600,min=1"`
|
||||
}
|
||||
|
||||
type NodeRule struct {
|
||||
|
Loading…
Reference in New Issue
Block a user