Share via


PrometheusRuleAnnotations Class

Definition

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.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.PrometheusRuleGroups.Models.Api20230301.PrometheusRuleAnnotationsTypeConverter))]
public class PrometheusRuleAnnotations : Microsoft.Azure.PowerShell.Cmdlets.PrometheusRuleGroups.Models.Api20230301.IPrometheusRuleAnnotations, Microsoft.Azure.PowerShell.Cmdlets.PrometheusRuleGroups.Runtime.IAssociativeArray<string>
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.PrometheusRuleGroups.Models.Api20230301.PrometheusRuleAnnotationsTypeConverter))>]
type PrometheusRuleAnnotations = class
    interface IPrometheusRuleAnnotations
    interface IJsonSerializable
    interface IAssociativeArray<string>
Public Class PrometheusRuleAnnotations
Implements IAssociativeArray(Of String), IPrometheusRuleAnnotations
Inheritance
PrometheusRuleAnnotations
Attributes
Implements

Constructors

PrometheusRuleAnnotations()

Creates an new PrometheusRuleAnnotations instance.

Fields

__additionalProperties

Properties

Item[String]

Methods

Add(String, String)
Clear()
ContainsKey(String)
CopyFrom(IDictionary)
CopyFrom(PSObject)
DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of PrometheusRuleAnnotations.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of PrometheusRuleAnnotations.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.PrometheusRuleGroups.Models.Api20230301.IPrometheusRuleAnnotations.

FromJsonString(String)

Creates a new instance of PrometheusRuleAnnotations, deserializing the content from a json string.

Remove(String)
ToJson(JsonObject, SerializationMode)

Serializes this instance of PrometheusRuleAnnotations into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()
TryGetValue(String, String)

Operators

Implicit(PrometheusRuleAnnotations to Dictionary<String,String>)

Explicit Interface Implementations

IAssociativeArray<String>.AdditionalProperties
IAssociativeArray<String>.Count
IAssociativeArray<String>.Keys
IAssociativeArray<String>.Values

Applies to