Skip to content

QueryOptionsSpec🔗

Definition🔗

type QueryOptionsSpec struct {
    TimeFrom *string `json:"timeFrom,omitempty"`
    MaxDataPoints *int64 `json:"maxDataPoints,omitempty"`
    TimeShift *string `json:"timeShift,omitempty"`
    QueryCachingTTL *int64 `json:"queryCachingTTL,omitempty"`
    Interval *string `json:"interval,omitempty"`
    CacheTimeout *string `json:"cacheTimeout,omitempty"`
    HideTimeOverride *bool `json:"hideTimeOverride,omitempty"`
    TimeCompare *string `json:"timeCompare,omitempty"`
}

Methods🔗

UnmarshalJSONStrict🔗

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

Equals🔗

Equals tests the equality of two QueryOptionsSpec objects.

func (queryOptionsSpec *QueryOptionsSpec) Equals(other QueryOptionsSpec) bool

Validate🔗

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

func (queryOptionsSpec *QueryOptionsSpec) Validate() error

See also🔗