Skip to content

AzureLogsQuery🔗

Azure Monitor Logs sub-query properties

Definition🔗

type AzureLogsQuery struct {
    // KQL query to be executed.
    Query *string `json:"query,omitempty"`
    // Specifies the format results should be returned as.
    ResultFormat *azuremonitor.ResultFormat `json:"resultFormat,omitempty"`
    // Array of resource URIs to be queried.
    Resources []string `json:"resources,omitempty"`
    // If set to true the intersection of time ranges specified in the query and Grafana will be used. Otherwise the query time ranges will be used. Defaults to false
    IntersectTime *bool `json:"intersectTime,omitempty"`
    // Workspace ID. This was removed in Grafana 8, but remains for backwards compat
    Workspace *string `json:"workspace,omitempty"`
    // @deprecated Use resources instead
    Resource *string `json:"resource,omitempty"`
}

Methods🔗

UnmarshalJSONStrict🔗

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

Equals🔗

Equals tests the equality of two AzureLogsQuery objects.

func (azureLogsQuery *AzureLogsQuery) Equals(other AzureLogsQuery) bool

Validate🔗

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

func (azureLogsQuery *AzureLogsQuery) Validate() error

See also🔗