Class MetricAnomalyFeedback
java.lang.Object
com.azure.ai.metricsadvisor.models.MetricFeedback
com.azure.ai.metricsadvisor.models.MetricAnomalyFeedback
A feedback to indicate a set of data points as Anomaly or NotAnomaly.
-
Constructor Summary
ConstructorDescriptionMetricAnomalyFeedback
(OffsetDateTime startTime, OffsetDateTime endTime, AnomalyValue anomalyValue) Creates an instance of MetricAnomalyFeedback. -
Method Summary
Modifier and TypeMethodDescriptionGet the value of the anomaly..Get the corresponding anomaly detection configuration of this feedback.Get the corresponding anomaly detection configuration Id of this feedback.Get the end timestamp of feedback timerange, when equals to startTime means only one timestamp.Get the start timestamp of feedback timerange.setDetectionConfigurationId
(String detectionConfigurationId) Set the corresponding anomaly detection configuration Id for this feedback.setDimensionFilter
(DimensionKey dimensionFilter) Set the series keys value for the feedback.Methods inherited from class com.azure.ai.metricsadvisor.models.MetricFeedback
getCreatedTime, getDimensionFilter, getFeedbackType, getId, getMetricId, getUserPrincipal
-
Constructor Details
-
MetricAnomalyFeedback
public MetricAnomalyFeedback(OffsetDateTime startTime, OffsetDateTime endTime, AnomalyValue anomalyValue) Creates an instance of MetricAnomalyFeedback.- Parameters:
startTime
- the start timestamp of feedback timerangeendTime
- the end timestamp of feedback timerange, when equals to startTime means only one timestampanomalyValue
- the value of the anomaly.
-
-
Method Details
-
getAnomalyValue
Get the value of the anomaly..- Returns:
- the value value.
-
getStartTime
Get the start timestamp of feedback timerange.- Returns:
- the startTime value.
-
getEndTime
Get the end timestamp of feedback timerange, when equals to startTime means only one timestamp.- Returns:
- the endTime value.
-
getDetectionConfiguration
Get the corresponding anomaly detection configuration of this feedback.- Returns:
- the detectionConfiguration value.
-
setDetectionConfigurationId
Set the corresponding anomaly detection configuration Id for this feedback.- Parameters:
detectionConfigurationId
- the detectionConfigurationId value to set.- Returns:
- the MetricAnomalyFeedback object itself.
-
setDimensionFilter
Set the series keys value for the feedback.- Overrides:
setDimensionFilter
in classMetricFeedback
- Parameters:
dimensionFilter
- the dimensionFilter value to set.- Returns:
- the MetricAnomalyFeedback object itself.
-
getDetectionConfigurationId
Get the corresponding anomaly detection configuration Id of this feedback.- Returns:
- the detectionConfigurationId value.
-