mirror of
https://github.com/rancher/types.git
synced 2025-07-10 03:53:02 +00:00
Add exist condition for expression alert
Problem: current we require the user to input a threshold number, could not support the scenario any matched condition event happens Solution: add exist condition and remove the required in thresdhold Issue: https://github.com/rancher/rancher/issues/21302
This commit is contained in:
parent
0173b6ff40
commit
cc1d9c767f
@ -203,8 +203,8 @@ type MetricRule struct {
|
||||
Expression string `json:"expression,omitempty" norman:"required"`
|
||||
Description string `json:"description,omitempty"`
|
||||
Duration string `json:"duration,omitempty" norman:"required"`
|
||||
Comparison string `json:"comparison,omitempty" norman:"type=enum,options=equal|not-equal|greater-than|less-than|greater-or-equal|less-or-equal,default=equal"`
|
||||
ThresholdValue float64 `json:"thresholdValue,omitempty" norman:"required,type=float"`
|
||||
Comparison string `json:"comparison,omitempty" norman:"type=enum,options=equal|not-equal|greater-than|less-than|greater-or-equal|less-or-equal|has-value,default=equal"`
|
||||
ThresholdValue float64 `json:"thresholdValue,omitempty" norman:"type=float"`
|
||||
}
|
||||
|
||||
type TimingField struct {
|
||||
|
Loading…
Reference in New Issue
Block a user