AnomalyAlertConfiguration Class
- java.
lang. Object - com.
azure. ai. metricsadvisor. administration. models. AnomalyAlertConfiguration
- com.
public final class AnomalyAlertConfiguration
Defines anomaly alerting configuration.
Constructor Summary
| Constructor | Description |
|---|---|
| AnomalyAlertConfiguration(String name) |
Create a new instance of Anomaly |
| AnomalyAlertConfiguration(String name, MetricAlertConfigurationsOperator crossMetricsOperator) |
Create a new instance of Anomaly |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Anomaly |
addMetricAlertConfiguration(MetricAlertConfiguration configuration)
Adds a new metric level alert configuration. |
|
Metric |
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<Metric |
getMetricAlertConfigurations()
Gets all metric level alert configurations. |
| String |
getName()
Gets the alert configuration name. |
|
Anomaly |
setCrossMetricsOperator(MetricAlertConfigurationsOperator crossMetricsOperator)
Sets the logical operator to apply across across multiple metric level alert configurations. |
|
Anomaly |
setDescription(String description)
Sets the description for the configuration. |
|
Anomaly |
setDimensionsToSplitAlert(List<String> dimensions)
Sets the dimensions names used to split a single alert into multiple ones. |
|
Anomaly |
setHookIdsToAlert(List<String> hookIds)
Sets the hooks to receives alerts triggered by this configuration. |
|
Anomaly |
setMetricAlertConfigurations(List<MetricAlertConfiguration> configurations)
Sets the metric level alert configurations. |
Methods inherited from java.lang.Object
Constructor Details
AnomalyAlertConfiguration
public AnomalyAlertConfiguration(String name)
Create a new instance of AnomalyAlertConfiguration.
Parameters:
AnomalyAlertConfiguration
public AnomalyAlertConfiguration(String name, MetricAlertConfigurationsOperator crossMetricsOperator)
Create a new instance of AnomalyAlertConfiguration.
Parameters:
Method Details
addMetricAlertConfiguration
public AnomalyAlertConfiguration addMetricAlertConfiguration(MetricAlertConfiguration configuration)
Adds a new metric level alert configuration.
Parameters:
Returns:
getCrossMetricsOperator
public MetricAlertConfigurationsOperator getCrossMetricsOperator()
Gets the logical operator to apply across multiple metric level alert configurations.
Returns:
getDescription
public String getDescription()
Gets the alert configuration description.
Returns:
getDimensionsToSplitAlert
public List<String> getDimensionsToSplitAlert()
Gets the dimensions names used to split a single alert into multiple ones.
Returns:
getHookIdsToAlert
public List<String> getHookIdsToAlert()
Gets id of all hooks that receives alerts triggered by this configuration.
Returns:
getId
public String getId()
Gets the alert configuration id.
Returns:
getMetricAlertConfigurations
public List<MetricAlertConfiguration> getMetricAlertConfigurations()
Gets all metric level alert configurations.
Returns:
getName
public String getName()
Gets the alert configuration name.
Returns:
setCrossMetricsOperator
public AnomalyAlertConfiguration setCrossMetricsOperator(MetricAlertConfigurationsOperator crossMetricsOperator)
Sets the logical operator to apply across across multiple metric level alert configurations.
Parameters:
Returns:
setDescription
public AnomalyAlertConfiguration setDescription(String description)
Sets the description for the configuration.
Parameters:
Returns:
setDimensionsToSplitAlert
public AnomalyAlertConfiguration setDimensionsToSplitAlert(List<String> dimensions)
Sets the dimensions names used to split a single alert into multiple ones.
Parameters:
Returns:
setHookIdsToAlert
public AnomalyAlertConfiguration setHookIdsToAlert(List<String> hookIds)
Sets the hooks to receives alerts triggered by this configuration.
Parameters:
Returns:
setMetricAlertConfigurations
public AnomalyAlertConfiguration setMetricAlertConfigurations(List<MetricAlertConfiguration> configurations)
Sets the metric level alert configurations.
Parameters:
Returns: