MonitorScheduledQueryRulesAlert is the Schema for the MonitorScheduledQueryRulesAlerts API. Manages an AlertingAction Scheduled Query Rules resource within Azure Monitor
Type
CRD
Group
insights.azure.upbound.io
Version
v1beta1
apiVersion: insights.azure.upbound.io/v1beta1
kind: MonitorScheduledQueryRulesAlert
MonitorScheduledQueryRulesAlertSpec defines the desired state of MonitorScheduledQueryRulesAlert
No description provided.
An action block as defined below.
List of action group reference resource IDs.
References to MonitorActionGroup to populate actionGroup.
Policies for referencing.
Selector for a list of MonitorActionGroup to populate actionGroup.
Policies for selection.
List of Resource IDs referred into query.
Reference to a ApplicationInsights in insights to populate dataSourceId.
Policies for referencing.
Selector for a ApplicationInsights in insights to populate dataSourceId.
Policies for selection.
Reference to a ResourceGroup in azure to populate resourceGroupName.
Policies for referencing.
Selector for a ResourceGroup in azure to populate resourceGroupName.
Policies for selection.
A trigger block as defined below.
A metric_trigger block as defined above. Trigger condition for metric query rule.
ProviderConfigReference specifies how the provider that will be used to create, observe, update, and delete this managed resource should be configured.
Policies for referencing.
ProviderReference specifies the provider that will be used to create, observe, update, and delete this managed resource. Deprecated: Please use ProviderConfigReference, i.e. providerConfigRef
Policies for referencing.
PublishConnectionDetailsTo specifies the connection secret config which contains a name, metadata and a reference to secret store config to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the managed resource.
WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the managed resource. This field is planned to be replaced in a future release in favor of PublishConnectionDetailsTo. Currently, both could be set independently and connection details would be published to both without affecting each other.
MonitorScheduledQueryRulesAlertStatus defines the observed state of MonitorScheduledQueryRulesAlert.
No description provided.
An action block as defined below.
List of action group reference resource IDs.
List of Resource IDs referred into query.
A trigger block as defined below.
A metric_trigger block as defined above. Trigger condition for metric query rule.
Conditions of the resource.
example
apiVersion: insights.azure.upbound.io/v1beta1
kind: MonitorScheduledQueryRulesAlert
metadata:
annotations:
meta.upbound.io/example-id: insights/v1beta1/monitorscheduledqueryrulesalert
labels:
testing.upbound.io/example-name: example
name: example
spec:
forProvider:
action:
- actionGroupRefs:
- name: example
customWebhookPayload: "{}"
emailSubject: Email Header
dataSourceIdSelector:
matchLabels:
testing.upbound.io/example-name: example
description: Alert when total results cross threshold
enabled: true
frequency: 5
location: West Europe
name: example
query: |
requests
| where tolong(resultCode) >= 500
| summarize count() by bin(timestamp, 5m)
resourceGroupNameSelector:
matchLabels:
testing.upbound.io/example-name: rg-monitor
severity: 1
tags:
foo: bar
timeWindow: 30
trigger:
- operator: GreaterThan
threshold: 3
© 2022 Upbound, Inc.
Discover the building blocksfor your internal cloud platform.