RecordRule🔗
Definition🔗
type RecordRule struct {
// Which expression node should be used as the input for the recorded metric.
From string `json:"from"`
// Name of the recorded metric.
Metric string `json:"metric"`
// Which data source should be used to write the output of the recording rule, specified by UID.
TargetDatasourceUid *string `json:"target_datasource_uid,omitempty"`
}
Methods🔗
UnmarshalJSONStrict🔗
UnmarshalJSONStrict implements a custom JSON unmarshalling logic to decode RecordRule
from JSON.
Note: the unmarshalling done by this function is strict. It will fail over required fields being absent from the input, fields having an incorrect type, unexpected fields being present, …
Equals🔗
Equals tests the equality of two RecordRule
objects.
Validate🔗
Validate checks all the validation constraints that may be defined on RecordRule
fields for violations and returns them.