Share via


MetricRules Class

Definition

Set of rules for sending metrics for the Monitor resource.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Models.MetricRulesTypeConverter))]
public class MetricRules : Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Models.IMetricRules
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Models.MetricRulesTypeConverter))>]
type MetricRules = class
    interface IMetricRules
    interface IJsonSerializable
Public Class MetricRules
Implements IMetricRules
Inheritance
MetricRules
Attributes
Implements

Constructors

MetricRules()

Creates an new MetricRules instance.

Properties

FilteringTag

List of filtering tags to be used for capturing metrics.

SendMetric

Flag specifying if metrics should be sent for the Monitor resource.

UserEmail

User Email

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of MetricRules.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of MetricRules.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.NewRelic.Models.IMetricRules.

FromJsonString(String)

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

ToJson(JsonObject, SerializationMode)

Serializes this instance of MetricRules into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()

Applies to