Dashboardv2RegexMapOptions🔗
Definition🔗
type Dashboardv2RegexMapOptions struct {
// Regular expression to match against
Pattern string `json:"pattern"`
// Config to apply when the value matches the regex
Result dashboardv2.ValueMappingResult `json:"result"`
}
Methods🔗
UnmarshalJSONStrict🔗
UnmarshalJSONStrict implements a custom JSON unmarshalling logic to decode Dashboardv2RegexMapOptions 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, …
Equals🔗
Equals tests the equality of two Dashboardv2RegexMapOptions objects.
func (dashboardv2RegexMapOptions *Dashboardv2RegexMapOptions) Equals(other Dashboardv2RegexMapOptions) bool
Validate🔗
Validate checks all the validation constraints that may be defined on Dashboardv2RegexMapOptions fields for violations and returns them.