Skip to content

TimeSeriesQuery🔗

Time Series sub-query properties.

Definition🔗

type TimeSeriesQuery struct {
    // GCP project to execute the query against.
    ProjectName string `json:"projectName"`
    // MQL query to be executed.
    Query string `json:"query"`
    // To disable the graphPeriod, it should explictly be set to 'disabled'.
    GraphPeriod *string `json:"graphPeriod,omitempty"`
}

Methods🔗

UnmarshalJSONStrict🔗

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

Equals🔗

Equals tests the equality of two TimeSeriesQuery objects.

func (timeSeriesQuery *TimeSeriesQuery) Equals(other TimeSeriesQuery) bool

Validate🔗

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

func (timeSeriesQuery *TimeSeriesQuery) Validate() error

See also🔗