Skip to content

Dashboardv2beta1RangeMapOptions🔗

Definition🔗

type Dashboardv2beta1RangeMapOptions 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 dashboardv2beta1.ValueMappingResult `json:"result"`
}

Methods🔗

UnmarshalJSONStrict🔗

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

Equals🔗

Equals tests the equality of two Dashboardv2beta1RangeMapOptions objects.

func (dashboardv2beta1RangeMapOptions *Dashboardv2beta1RangeMapOptions) Equals(other Dashboardv2beta1RangeMapOptions) bool

Validate🔗

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

func (dashboardv2beta1RangeMapOptions *Dashboardv2beta1RangeMapOptions) Validate() error

See also🔗