Skip to content

Dashboardv2RangeMapOptions🔗

Definition🔗

type Dashboardv2RangeMapOptions struct {
    // Min value of the range. It can be null which means -Infinity
    From *float64 `json:"from"`
    // Max value of the range. It can be null which means +Infinity
    To *float64 `json:"to"`
    // Config to apply when the value is within the range
    Result dashboardv2.ValueMappingResult `json:"result"`
}

Methods🔗

UnmarshalJSONStrict🔗

UnmarshalJSONStrict implements a custom JSON unmarshalling logic to decode Dashboardv2RangeMapOptions 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 (dashboardv2RangeMapOptions *Dashboardv2RangeMapOptions) UnmarshalJSONStrict(raw []byte) error

Equals🔗

Equals tests the equality of two Dashboardv2RangeMapOptions objects.

func (dashboardv2RangeMapOptions *Dashboardv2RangeMapOptions) Equals(other Dashboardv2RangeMapOptions) bool

Validate🔗

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

func (dashboardv2RangeMapOptions *Dashboardv2RangeMapOptions) Validate() error

See also🔗