Skip to content

AzureLogsQueryBuilder🔗

Constructor🔗

func NewAzureLogsQueryBuilder() *AzureLogsQueryBuilder

Methods🔗

Build🔗

Builds the object.

func (builder *AzureLogsQueryBuilder) Build() (AzureLogsQuery, error)

BasicLogsQuery🔗

If set to true the query will be run as a basic logs query

func (builder *AzureLogsQueryBuilder) BasicLogsQuery(basicLogsQuery bool) *AzureLogsQueryBuilder

DashboardTime🔗

If set to true the dashboard time range will be used as a filter for the query. Otherwise the query time ranges will be used. Defaults to false.

func (builder *AzureLogsQueryBuilder) DashboardTime(dashboardTime bool) *AzureLogsQueryBuilder

IntersectTime🔗

@deprecated Use dashboardTime instead

func (builder *AzureLogsQueryBuilder) IntersectTime(intersectTime bool) *AzureLogsQueryBuilder

Query🔗

KQL query to be executed.

func (builder *AzureLogsQueryBuilder) Query(query string) *AzureLogsQueryBuilder

Resource🔗

@deprecated Use resources instead

func (builder *AzureLogsQueryBuilder) Resource(resource string) *AzureLogsQueryBuilder

Resources🔗

Array of resource URIs to be queried.

func (builder *AzureLogsQueryBuilder) Resources(resources []string) *AzureLogsQueryBuilder

ResultFormat🔗

Specifies the format results should be returned as.

func (builder *AzureLogsQueryBuilder) ResultFormat(resultFormat azuremonitor.ResultFormat) *AzureLogsQueryBuilder

TimeColumn🔗

If dashboardTime is set to true this value dictates which column the time filter will be applied to. Defaults to the first tables timeSpan column, the first datetime column found, or TimeGenerated

func (builder *AzureLogsQueryBuilder) TimeColumn(timeColumn string) *AzureLogsQueryBuilder

Workspace🔗

Workspace ID. This was removed in Grafana 8, but remains for backwards compat.

func (builder *AzureLogsQueryBuilder) Workspace(workspace string) *AzureLogsQueryBuilder

See also🔗