Skip to content

DashboardRegexMapOptions🔗

Definition🔗

type DashboardRegexMapOptions struct {
    // Regular expression to match against
    Pattern string `json:"pattern"`
    // Config to apply when the value matches the regex
    Result dashboard.ValueMappingResult `json:"result"`
}

Methods🔗

UnmarshalJSONStrict🔗

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

Equals🔗

Equals tests the equality of two DashboardRegexMapOptions objects.

func (dashboardRegexMapOptions *DashboardRegexMapOptions) Equals(other DashboardRegexMapOptions) bool

Validate🔗

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

func (dashboardRegexMapOptions *DashboardRegexMapOptions) Validate() error

See also🔗