Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

IPrometheusRule Interface

Definition

Namespace:
Microsoft.Azure.PowerShell.Cmdlets.PrometheusRuleGroups.Models
Assembly:
Az.PrometheusRuleGroups.private.dll

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.PrometheusRuleGroups.Models.PrometheusRuleTypeConverter))]
public interface IPrometheusRule : Microsoft.Azure.PowerShell.Cmdlets.PrometheusRuleGroups.Runtime.IJsonSerializable
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.PrometheusRuleGroups.Models.PrometheusRuleTypeConverter))>]
type IPrometheusRule = interface
 interface IJsonSerializable
Public Interface IPrometheusRule
Implements IJsonSerializable
Derived
Attributes
Implements

Properties

Name Description
Action

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

Alert

Alert rule name.

Annotation

The annotations clause specifies a set of informational labels that can be used to store longer additional information such as alert descriptions or runbook links. The annotation values can be templated.

Enabled

Enable/disable rule.

Expression

The PromQL expression to evaluate. https://prometheus.io/docs/prometheus/latest/querying/basics/. Evaluated periodically as given by 'interval', and the result recorded as a new set of time series with the metric name as given by 'record'.

For

The amount of time alert must be active before firing.

Label

Labels to add or overwrite before storing the result.

Record

Recorded metrics name.

ResolveConfigurationAutoResolved

Enable alert auto-resolution.

ResolveConfigurationTimeToResolve

Alert auto-resolution timeout.

Severity

The severity of the alerts fired by the rule. Must be between 0 and 4.

Methods

Name Description
ToJson(JsonObject, SerializationMode) (Inherited from IJsonSerializable)

Applies to