IPrometheusRule Interface
Definition
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.Api20230301.PrometheusRuleTypeConverter))]
public interface IPrometheusRule : Microsoft.Azure.PowerShell.Cmdlets.PrometheusRuleGroups.Runtime.IJsonSerializable
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.PrometheusRuleGroups.Models.Api20230301.PrometheusRuleTypeConverter))>]
type IPrometheusRule = interface
interface IJsonSerializable
Public Interface IPrometheusRule
Implements IJsonSerializable
- Derived
- Attributes
- Implements
Properties
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
ToJson(JsonObject, SerializationMode) | (Inherited from IJsonSerializable) |