AzureMonitorQueryBuilder🔗
Constructor🔗
Methods🔗
Build🔗
Builds the object.
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.
Namespace🔗
Query🔗
Used only for exemplar queries from Prometheus
QueryType🔗
Specify the query flavor
TODO make this required and give it a default
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.
Region🔗
Resource🔗
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