Skip to content

AzureMetricDimension🔗

Definition🔗

type AzureMetricDimension 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 AzureMetricDimension 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 (azureMetricDimension *AzureMetricDimension) UnmarshalJSONStrict(raw []byte) error

Equals🔗

Equals tests the equality of two AzureMetricDimension objects.

func (azureMetricDimension *AzureMetricDimension) Equals(other AzureMetricDimension) bool

Validate🔗

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

func (azureMetricDimension *AzureMetricDimension) Validate() error

See also🔗