public final class MetricAnomalyFeedback extends MetricFeedback
Constructor and Description |
---|
MetricAnomalyFeedback(OffsetDateTime startTime,
OffsetDateTime endTime,
AnomalyValue anomalyValue)
Creates an instance of MetricAnomalyFeedback.
|
Modifier and Type | Method and Description |
---|---|
AnomalyValue |
getAnomalyValue()
Get the value of the anomaly..
|
AnomalyDetectionConfiguration |
getDetectionConfiguration()
Get the corresponding anomaly detection configuration of this
feedback.
|
String |
getDetectionConfigurationId()
Get the corresponding anomaly detection configuration Id of this
feedback.
|
OffsetDateTime |
getEndTime()
Get the end timestamp of feedback timerange, when equals to startTime means only one
timestamp.
|
OffsetDateTime |
getStartTime()
Get the start timestamp of feedback timerange.
|
MetricAnomalyFeedback |
setDetectionConfigurationId(String detectionConfigurationId)
Set the corresponding anomaly detection configuration Id for this feedback.
|
MetricAnomalyFeedback |
setDimensionFilter(DimensionKey dimensionFilter)
Set the series keys value for the feedback.
|
getCreatedTime, getDimensionFilter, getFeedbackType, getId, getMetricId, getUserPrincipal
public MetricAnomalyFeedback(OffsetDateTime startTime, OffsetDateTime endTime, AnomalyValue anomalyValue)
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.public AnomalyValue getAnomalyValue()
public OffsetDateTime getStartTime()
public OffsetDateTime getEndTime()
public AnomalyDetectionConfiguration getDetectionConfiguration()
public MetricAnomalyFeedback setDetectionConfigurationId(String detectionConfigurationId)
detectionConfigurationId
- the detectionConfigurationId value to set.public MetricAnomalyFeedback setDimensionFilter(DimensionKey dimensionFilter)
setDimensionFilter
in class MetricFeedback
dimensionFilter
- the dimensionFilter value to set.public String getDetectionConfigurationId()
Copyright © 2021 Microsoft Corporation. All rights reserved.