MetricsAdvisorModelFactory.AnomalyAlertConfiguration Method

Definition

Initializes a new instance of AnomalyAlertConfiguration for mocking purposes.

public static Azure.AI.MetricsAdvisor.Models.AnomalyAlertConfiguration AnomalyAlertConfiguration (string id = default, string name = default, string description = default, Azure.AI.MetricsAdvisor.Models.MetricAlertConfigurationsOperator? crossMetricsOperator = default, System.Collections.Generic.IEnumerable<string> dimensionsToSplitAlert = default, System.Collections.Generic.IEnumerable<string> idsOfHooksToAlert = default, System.Collections.Generic.IEnumerable<Azure.AI.MetricsAdvisor.Models.MetricAlertConfiguration> metricAlertConfigurations = default);
static member AnomalyAlertConfiguration : string * string * string * Nullable<Azure.AI.MetricsAdvisor.Models.MetricAlertConfigurationsOperator> * seq<string> * seq<string> * seq<Azure.AI.MetricsAdvisor.Models.MetricAlertConfiguration> -> Azure.AI.MetricsAdvisor.Models.AnomalyAlertConfiguration
Public Shared Function AnomalyAlertConfiguration (Optional id As String = Nothing, Optional name As String = Nothing, Optional description As String = Nothing, Optional crossMetricsOperator As Nullable(Of MetricAlertConfigurationsOperator) = Nothing, Optional dimensionsToSplitAlert As IEnumerable(Of String) = Nothing, Optional idsOfHooksToAlert As IEnumerable(Of String) = Nothing, Optional metricAlertConfigurations As IEnumerable(Of MetricAlertConfiguration) = Nothing) As AnomalyAlertConfiguration

Parameters

id
String

Sets the Id property.

name
String

Sets the Name property.

description
String

Sets the Description property.

crossMetricsOperator
Nullable<MetricAlertConfigurationsOperator>

Sets the CrossMetricsOperator property.

dimensionsToSplitAlert
IEnumerable<String>

Sets the DimensionsToSplitAlert property.

idsOfHooksToAlert
IEnumerable<String>

Sets the IdsOfHooksToAlert property.

metricAlertConfigurations
IEnumerable<MetricAlertConfiguration>

Sets the MetricAlertConfigurations property.

Returns

A new instance of AnomalyAlertConfiguration for mocking purposes.

Applies to