Skip to content

TracesQuery🔗

Application Insights Traces sub-query properties

Definition🔗

type TracesQuery struct {
    // 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"`
    // Operation ID. Used only for Traces queries.
    OperationId *string `json:"operationId,omitempty"`
    // Types of events to filter by.
    TraceTypes []string `json:"traceTypes,omitempty"`
    // Filters for property values.
    Filters []azuremonitor.TracesFilter `json:"filters,omitempty"`
    // KQL query to be executed.
    Query *string `json:"query,omitempty"`
}

Methods🔗

UnmarshalJSONStrict🔗

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

Equals🔗

Equals tests the equality of two TracesQuery objects.

func (tracesQuery *TracesQuery) Equals(other TracesQuery) bool

Validate🔗

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

func (tracesQuery *TracesQuery) Validate() error

See also🔗