MetricAlertConfiguration(String, MetricAnomalyAlertScope) Constructor
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.
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
Azure SDK for .NET