public final class AnomalyAlertConfiguration extends Object
Constructor and Description |
---|
AnomalyAlertConfiguration(String name)
Create a new instance of AnomalyAlertConfiguration.
|
AnomalyAlertConfiguration(String name,
MetricAlertConfigurationsOperator crossMetricsOperator)
Create a new instance of AnomalyAlertConfiguration.
|
Modifier and Type | Method and Description |
---|---|
AnomalyAlertConfiguration |
addMetricAlertConfiguration(MetricAlertConfiguration configuration)
Adds a new metric level alert configuration.
|
MetricAlertConfigurationsOperator |
getCrossMetricsOperator()
Gets the logical operator to apply across multiple metric level alert configurations.
|
String |
getDescription()
Gets the alert configuration description.
|
List<String> |
getDimensionsToSplitAlert()
Gets the dimensions names used to split a single alert into multiple ones.
|
List<String> |
getHookIdsToAlert()
Gets id of all hooks that receives alerts triggered by this configuration.
|
String |
getId()
Gets the alert configuration id.
|
List<MetricAlertConfiguration> |
getMetricAlertConfigurations()
Gets all metric level alert configurations.
|
String |
getName()
Gets the alert configuration name.
|
AnomalyAlertConfiguration |
setCrossMetricsOperator(MetricAlertConfigurationsOperator crossMetricsOperator)
Sets the logical operator to apply across across multiple metric level alert configurations.
|
AnomalyAlertConfiguration |
setDescription(String description)
Sets the description for the configuration.
|
AnomalyAlertConfiguration |
setDimensionsToSplitAlert(List<String> dimensions)
Sets the dimensions names used to split a single alert into multiple ones.
|
AnomalyAlertConfiguration |
setHookIdsToAlert(List<String> hookIds)
Sets the hooks to receives alerts triggered by this configuration.
|
AnomalyAlertConfiguration |
setMetricAlertConfigurations(List<MetricAlertConfiguration> configurations)
Sets the metric level alert configurations.
|
public AnomalyAlertConfiguration(String name)
name
- The configuration name.public AnomalyAlertConfiguration(String name, MetricAlertConfigurationsOperator crossMetricsOperator)
name
- The configuration name.crossMetricsOperator
- The logical operator to apply across multiple
metric level MetricAlertConfiguration
in the alert configuration.public String getId()
public String getName()
public String getDescription()
public MetricAlertConfigurationsOperator getCrossMetricsOperator()
public List<MetricAlertConfiguration> getMetricAlertConfigurations()
public List<String> getHookIdsToAlert()
public List<String> getDimensionsToSplitAlert()
public AnomalyAlertConfiguration setDescription(String description)
description
- The configuration description.public AnomalyAlertConfiguration setCrossMetricsOperator(MetricAlertConfigurationsOperator crossMetricsOperator)
crossMetricsOperator
- The cross metric alert configuration operator.public AnomalyAlertConfiguration addMetricAlertConfiguration(MetricAlertConfiguration configuration)
configuration
- The configuration.public AnomalyAlertConfiguration setMetricAlertConfigurations(List<MetricAlertConfiguration> configurations)
configurations
- The configuration.public AnomalyAlertConfiguration setHookIdsToAlert(List<String> hookIds)
hookIds
- The hook ids.public AnomalyAlertConfiguration setDimensionsToSplitAlert(List<String> dimensions)
dimensions
- The hook ids.Copyright © 2021 Microsoft Corporation. All rights reserved.