MetricAlertConfiguration(String, MetricAnomalyAlertScope) Constructor

Definition

Initializes a new instance of the MetricAlertConfiguration class.

public MetricAlertConfiguration (string detectionConfigurationId, Azure.AI.MetricsAdvisor.Models.MetricAnomalyAlertScope alertScope);
new Azure.AI.MetricsAdvisor.Models.MetricAlertConfiguration : string * Azure.AI.MetricsAdvisor.Models.MetricAnomalyAlertScope -> Azure.AI.MetricsAdvisor.Models.MetricAlertConfiguration
Public Sub New (detectionConfigurationId As String, alertScope As MetricAnomalyAlertScope)

Parameters

detectionConfigurationId
String

The identifier of the AnomalyDetectionConfiguration to which this configuration applies. An anomaly can only be included in an alert if it was detected by this configuration.

alertScope
MetricAnomalyAlertScope

Selects the scope of time series in which an anomaly must be to be included in an alert.

Exceptions

detectionConfigurationId or alertScope is null.

detectionConfigurationId is empty.

Applies to