Skip to content

DashboardRangeMapOptions🔗

Definition🔗

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

Methods🔗

UnmarshalJSONStrict🔗

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

Equals🔗

Equals tests the equality of two DashboardRangeMapOptions objects.

func (dashboardRangeMapOptions *DashboardRangeMapOptions) Equals(other DashboardRangeMapOptions) bool

Validate🔗

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

func (dashboardRangeMapOptions *DashboardRangeMapOptions) Validate() error

See also🔗