Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClassicConditionJSON ¶
type ClassicConditionJSON struct { Evaluator ConditionEvalJSON `json:"evaluator"` Operator struct { Type string `json:"type"` } `json:"operator"` Query struct { Params []string `json:"params"` } `json:"query"` Reducer struct { // Params []interface{} `json:"params"` (Unused) Type string `json:"type"` } `json:"reducer"` }
ClassicConditionJSON is the JSON model for a single condition. It is based on services/alerting/conditions/query.go's newQueryCondition().
type ConditionEvalJSON ¶
type ConditionsCmd ¶
type ConditionsCmd struct { Conditions []condition // contains filtered or unexported fields }
ConditionsCmd is command for the classic conditions expression operation.
func UnmarshalConditionsCmd ¶
func UnmarshalConditionsCmd(rawQuery map[string]interface{}, refID string) (*ConditionsCmd, error)
UnmarshalConditionsCmd creates a new ConditionsCmd.
func (*ConditionsCmd) Execute ¶
Execute runs the command and returns the results or an error if the command failed to execute.
func (*ConditionsCmd) NeedsVars ¶
func (ccc *ConditionsCmd) NeedsVars() []string
NeedsVars returns the variable names (refIds) that are dependencies to execute the command and allows the command to fulfill the Command interface.
Click to show internal directories.
Click to hide internal directories.