Skip to content

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"`
}

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, …

func (recordRule *RecordRule) UnmarshalJSONStrict(raw []byte) error

Equals🔗

Equals tests the equality of two RecordRule objects.

func (recordRule *RecordRule) Equals(other RecordRule) bool

Validate🔗

Validate checks all the validation constraints that may be defined on RecordRule fields for violations and returns them.

func (recordRule *RecordRule) Validate() error

See also🔗