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