Class AnomalyAlertConfiguration
java.lang.Object
com.azure.ai.metricsadvisor.administration.models.AnomalyAlertConfiguration
Defines anomaly alerting configuration.
-
Constructor Summary
ConstructorDescriptionCreate a new instance of AnomalyAlertConfiguration.AnomalyAlertConfiguration
(String name, MetricAlertConfigurationsOperator crossMetricsOperator) Create a new instance of AnomalyAlertConfiguration. -
Method Summary
Modifier and TypeMethodDescriptionaddMetricAlertConfiguration
(MetricAlertConfiguration configuration) Adds a new metric level alert configuration.Gets the logical operator to apply across multiple metric level alert configurations.Gets the alert configuration description.Gets the dimensions names used to split a single alert into multiple ones.Gets id of all hooks that receives alerts triggered by this configuration.getId()
Gets the alert configuration id.Gets all metric level alert configurations.getName()
Gets the alert configuration name.setCrossMetricsOperator
(MetricAlertConfigurationsOperator crossMetricsOperator) Sets the logical operator to apply across across multiple metric level alert configurations.setDescription
(String description) Sets the description for the configuration.setDimensionsToSplitAlert
(List<String> dimensions) Sets the dimensions names used to split a single alert into multiple ones.setHookIdsToAlert
(List<String> hookIds) Sets the hooks to receives alerts triggered by this configuration.setMetricAlertConfigurations
(List<MetricAlertConfiguration> configurations) Sets the metric level alert configurations.
-
Constructor Details
-
AnomalyAlertConfiguration
Create a new instance of AnomalyAlertConfiguration.- Parameters:
name
- The configuration name.
-
AnomalyAlertConfiguration
public AnomalyAlertConfiguration(String name, MetricAlertConfigurationsOperator crossMetricsOperator) Create a new instance of AnomalyAlertConfiguration.- Parameters:
name
- The configuration name.crossMetricsOperator
- The logical operator to apply across multiple metric levelMetricAlertConfiguration
in the alert configuration.
-
-
Method Details
-
getId
Gets the alert configuration id.- Returns:
- The configuration id.
-
getName
Gets the alert configuration name.- Returns:
- The configuration name.
-
getDescription
Gets the alert configuration description.- Returns:
- The configuration description.
-
getCrossMetricsOperator
Gets the logical operator to apply across multiple metric level alert configurations.- Returns:
- The cross metric alert configuration operator.
-
getMetricAlertConfigurations
Gets all metric level alert configurations.- Returns:
- The metric level alert configurations.
-
getHookIdsToAlert
Gets id of all hooks that receives alerts triggered by this configuration.- Returns:
- The hook ids.
-
getDimensionsToSplitAlert
Gets the dimensions names used to split a single alert into multiple ones.- Returns:
- The dimension names.
-
setDescription
Sets the description for the configuration.- Parameters:
description
- The configuration description.- Returns:
- The AnomalyAlertConfiguration object itself.
-
setCrossMetricsOperator
public AnomalyAlertConfiguration setCrossMetricsOperator(MetricAlertConfigurationsOperator crossMetricsOperator) Sets the logical operator to apply across across multiple metric level alert configurations.- Parameters:
crossMetricsOperator
- The cross metric alert configuration operator.- Returns:
- The AnomalyAlertConfiguration object itself.
-
addMetricAlertConfiguration
public AnomalyAlertConfiguration addMetricAlertConfiguration(MetricAlertConfiguration configuration) Adds a new metric level alert configuration.- Parameters:
configuration
- The configuration.- Returns:
- The AnomalyAlertConfiguration object itself.
-
setMetricAlertConfigurations
public AnomalyAlertConfiguration setMetricAlertConfigurations(List<MetricAlertConfiguration> configurations) Sets the metric level alert configurations.- Parameters:
configurations
- The configuration.- Returns:
- The AnomalyAlertConfiguration object itself.
-
setHookIdsToAlert
Sets the hooks to receives alerts triggered by this configuration.- Parameters:
hookIds
- The hook ids.- Returns:
- The AnomalyAlertConfiguration object itself.
-
setDimensionsToSplitAlert
Sets the dimensions names used to split a single alert into multiple ones.- Parameters:
dimensions
- The hook ids.- Returns:
- The AnomalyAlertConfiguration object itself.
-