Share via


MonitoredSubscription Class

Definition

The list of subscriptions and it's monitoring status by current NewRelic monitor.

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

Constructors

MonitoredSubscription()

Creates an new MonitoredSubscription instance.

Properties

Error

The reason of not monitoring the subscription.

LogRuleFilteringTag

List of filtering tags to be used for capturing logs. This only takes effect if SendActivityLogs flag is enabled. If empty, all resources will be captured. If only Exclude action is specified, the rules will apply to the list of all available resources. If Include actions are specified, the rules will only include resources with the associated tags.

LogRuleSendAadLog

Flag specifying if AAD logs should be sent for the Monitor resource.

LogRuleSendActivityLog

Flag specifying if activity logs from Azure resources should be sent for the Monitor resource.

LogRuleSendSubscriptionLog

Flag specifying if subscription logs should be sent for the Monitor resource.

MetricRuleFilteringTag

List of filtering tags to be used for capturing metrics.

MetricRuleSendMetric

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

MetricRuleUserEmail

User Email

Status

The state of monitoring.

SubscriptionId

The subscriptionId to be monitored.

TagRuleProvisioningState

Provisioning State of the resource

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of MonitoredSubscription.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of MonitoredSubscription.

FromJson(JsonNode)

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

FromJsonString(String)

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

ToJson(JsonObject, SerializationMode)

Serializes this instance of MonitoredSubscription into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()

Applies to