GetScheduledQueryRuleResult

data class GetScheduledQueryRuleResult(val action: Either<AlertingActionResponse, LogToMetricActionResponse>, val autoMitigate: Boolean? = null, val createdWithApiVersion: String, val description: String? = null, val displayName: String? = null, val enabled: String? = null, val etag: String, val id: String, val isLegacyLogAnalyticsRule: Boolean, val kind: String, val lastUpdatedTime: String, val location: String, val name: String, val provisioningState: String, val schedule: ScheduleResponse? = null, val source: SourceResponse, val tags: Map<String, String>? = null, val type: String)

The Log Search Rule resource.

Constructors

Link copied to clipboard
constructor(action: Either<AlertingActionResponse, LogToMetricActionResponse>, autoMitigate: Boolean? = null, createdWithApiVersion: String, description: String? = null, displayName: String? = null, enabled: String? = null, etag: String, id: String, isLegacyLogAnalyticsRule: Boolean, kind: String, lastUpdatedTime: String, location: String, name: String, provisioningState: String, schedule: ScheduleResponse? = null, source: SourceResponse, tags: Map<String, String>? = null, type: String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Action needs to be taken on rule execution.

Link copied to clipboard
val autoMitigate: Boolean? = null

The flag that indicates whether the alert should be automatically resolved or not. The default is false.

Link copied to clipboard

The api-version used when creating this alert rule

Link copied to clipboard
val description: String? = null

The description of the Log Search rule.

Link copied to clipboard
val displayName: String? = null

The display name of the alert rule

Link copied to clipboard
val enabled: String? = null

The flag which indicates whether the Log Search rule is enabled. Value should be true or false

Link copied to clipboard

The etag field is not required. If it is provided in the response body, it must also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.

Link copied to clipboard
val id: String

Azure resource Id

Link copied to clipboard

True if alert rule is legacy Log Analytic rule

Link copied to clipboard

Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.

Link copied to clipboard

Last time the rule was updated in IS08601 format.

Link copied to clipboard

Resource location

Link copied to clipboard

Azure resource name

Link copied to clipboard

Provisioning state of the scheduled query rule

Link copied to clipboard

Schedule (Frequency, Time Window) for rule. Required for action type - AlertingAction

Link copied to clipboard

Data Source against which rule will Query Data

Link copied to clipboard
val tags: Map<String, String>? = null

Resource tags

Link copied to clipboard

Azure resource type