GetMetricAlertResult

data class GetMetricAlertResult(val actions: List<MetricAlertActionResponse>? = null, val autoMitigate: Boolean? = null, val criteria: Any, val description: String? = null, val enabled: Boolean, val evaluationFrequency: String, val id: String, val isMigrated: Boolean, val lastUpdatedTime: String, val location: String, val name: String, val scopes: List<String>, val severity: Int, val tags: Map<String, String>? = null, val targetResourceRegion: String? = null, val targetResourceType: String? = null, val type: String, val windowSize: String)

The metric alert resource.

Constructors

Link copied to clipboard
constructor(actions: List<MetricAlertActionResponse>? = null, autoMitigate: Boolean? = null, criteria: Any, description: String? = null, enabled: Boolean, evaluationFrequency: String, id: String, isMigrated: Boolean, lastUpdatedTime: String, location: String, name: String, scopes: List<String>, severity: Int, tags: Map<String, String>? = null, targetResourceRegion: String? = null, targetResourceType: String? = null, type: String, windowSize: String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

the array of actions that are performed when the alert rule becomes active, and when an alert condition is resolved.

Link copied to clipboard
val autoMitigate: Boolean? = null

the flag that indicates whether the alert should be auto resolved or not. The default is true.

Link copied to clipboard

defines the specific alert criteria information.

Link copied to clipboard
val description: String? = null

the description of the metric alert that will be included in the alert email.

Link copied to clipboard

the flag that indicates whether the metric alert is enabled.

Link copied to clipboard

how often the metric alert is evaluated represented in ISO 8601 duration format.

Link copied to clipboard
val id: String

Azure resource Id

Link copied to clipboard

the value indicating whether this alert rule is migrated.

Link copied to clipboard

Last time the rule was updated in ISO8601 format.

Link copied to clipboard

Resource location

Link copied to clipboard

Azure resource name

Link copied to clipboard

the list of resource id's that this metric alert is scoped to. You cannot change the scope of a metric rule based on logs.

Link copied to clipboard

Alert severity {0, 1, 2, 3, 4}

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

Resource tags

Link copied to clipboard

the region of the target resource(s) on which the alert is created/updated. Mandatory if the scope contains a subscription, resource group, or more than one resource.

Link copied to clipboard

the resource type of the target resource(s) on which the alert is created/updated. Mandatory if the scope contains a subscription, resource group, or more than one resource.

Link copied to clipboard

Azure resource type

Link copied to clipboard

the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold.