Alerting: Add missing rule group fields to GettableRuleGroupConfig

pull/94029/head
Alexander Akhmetov 10 months ago
parent 52f208d3ac
commit 1ef44dd31c
No known key found for this signature in database
GPG Key ID: A5A8947133B1B31B
  1. 6
      pkg/services/ngalert/api/tooling/definitions/cortex-ruler.go

@ -284,6 +284,12 @@ type GettableRuleGroupConfig struct {
Interval model.Duration `yaml:"interval,omitempty" json:"interval,omitempty"`
SourceTenants []string `yaml:"source_tenants,omitempty" json:"source_tenants,omitempty"`
Rules []GettableExtendedRuleNode `yaml:"rules" json:"rules"`
EvaluationDelay model.Duration `yaml:"evaluation_delay,omitempty" json:"evaluation_delay,omitempty"`
QueryOffset model.Duration `yaml:"query_offset,omitempty" json:"query_offset,omitempty"`
Limit int `yaml:"limit,omitempty" json:"limit,omitempty"`
AlignEvaluationTimeOnInterval bool `yaml:"align_evaluation_time_on_interval,omitempty" json:"align_evaluation_time_on_interval,omitempty"`
}
func (c *GettableRuleGroupConfig) UnmarshalJSON(b []byte) error {

Loading…
Cancel
Save