Skip to content

AzureMonitorQueryBuilder🔗

Constructor🔗

func NewAzureMonitorQueryBuilder() *AzureMonitorQueryBuilder

Methods🔗

Build🔗

Builds the object.

func (builder *AzureMonitorQueryBuilder) Build() (variants.Dataquery, error)

AzureLogAnalytics🔗

Azure Monitor Logs sub-query properties.

func (builder *AzureMonitorQueryBuilder) AzureLogAnalytics(azureLogAnalytics cog.Builder[azuremonitor.AzureLogsQuery]) *AzureMonitorQueryBuilder

AzureMonitor🔗

Azure Monitor Metrics sub-query properties.

func (builder *AzureMonitorQueryBuilder) AzureMonitor(azureMonitor cog.Builder[azuremonitor.AzureMetricQuery]) *AzureMonitorQueryBuilder

AzureResourceGraph🔗

Azure Resource Graph sub-query properties.

func (builder *AzureMonitorQueryBuilder) AzureResourceGraph(azureResourceGraph cog.Builder[azuremonitor.AzureResourceGraphQuery]) *AzureMonitorQueryBuilder

AzureTraces🔗

Application Insights Traces sub-query properties.

func (builder *AzureMonitorQueryBuilder) AzureTraces(azureTraces cog.Builder[azuremonitor.AzureTracesQuery]) *AzureMonitorQueryBuilder

Datasource🔗

For mixed data sources the selected datasource is on the query level.

For non mixed scenarios this is undefined.

TODO find a better way to do this ^ that's friendly to schema

TODO this shouldn't be unknown but DataSourceRef | null

func (builder *AzureMonitorQueryBuilder) Datasource(datasource dashboard.DataSourceRef) *AzureMonitorQueryBuilder

GrafanaTemplateVariableFn🔗

@deprecated Legacy template variable support.

func (builder *AzureMonitorQueryBuilder) GrafanaTemplateVariableFn(grafanaTemplateVariableFn azuremonitor.GrafanaTemplateVariableQuery) *AzureMonitorQueryBuilder

Hide🔗

If hide is set to true, Grafana will filter out the response(s) associated with this query before returning it to the panel.

func (builder *AzureMonitorQueryBuilder) Hide(hide bool) *AzureMonitorQueryBuilder

Namespace🔗

func (builder *AzureMonitorQueryBuilder) Namespace(namespace string) *AzureMonitorQueryBuilder

Query🔗

Used only for exemplar queries from Prometheus

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

QueryType🔗

Specify the query flavor

TODO make this required and give it a default

func (builder *AzureMonitorQueryBuilder) QueryType(queryType string) *AzureMonitorQueryBuilder

RefId🔗

A unique identifier for the query within the list of targets.

In server side expressions, the refId is used as a variable name to identify results.

By default, the UI will assign A->Z; however setting meaningful names may be useful.

func (builder *AzureMonitorQueryBuilder) RefId(refId string) *AzureMonitorQueryBuilder

Region🔗

func (builder *AzureMonitorQueryBuilder) Region(region string) *AzureMonitorQueryBuilder

Resource🔗

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

ResourceGroup🔗

Template variables params. These exist for backwards compatiblity with legacy template variables.

func (builder *AzureMonitorQueryBuilder) ResourceGroup(resourceGroup string) *AzureMonitorQueryBuilder

Subscription🔗

Azure subscription containing the resource(s) to be queried.

func (builder *AzureMonitorQueryBuilder) Subscription(subscription string) *AzureMonitorQueryBuilder

Subscriptions🔗

Subscriptions to be queried via Azure Resource Graph.

func (builder *AzureMonitorQueryBuilder) Subscriptions(subscriptions []string) *AzureMonitorQueryBuilder

See also🔗