Skip to content

MetricDimension🔗

Definition🔗

type MetricDimension struct {
    // Name of Dimension to be filtered on.
    Dimension *string `json:"dimension,omitempty"`
    // String denoting the filter operation. Supports 'eq' - equals,'ne' - not equals, 'sw' - starts with. Note that some dimensions may not support all operators.
    Operator *string `json:"operator,omitempty"`
    // Values to match with the filter.
    Filters []string `json:"filters,omitempty"`
    // @deprecated filter is deprecated in favour of filters to support multiselect.
    Filter *string `json:"filter,omitempty"`
}

Methods🔗

UnmarshalJSONStrict🔗

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

Equals🔗

Equals tests the equality of two MetricDimension objects.

func (metricDimension *MetricDimension) Equals(other MetricDimension) bool

Validate🔗

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

func (metricDimension *MetricDimension) Validate() error

See also🔗