Class MetricAnomalyFeedback

java.lang.Object
com.azure.ai.metricsadvisor.models.MetricFeedback
com.azure.ai.metricsadvisor.models.MetricAnomalyFeedback

public final class MetricAnomalyFeedback extends MetricFeedback
A feedback to indicate a set of data points as Anomaly or NotAnomaly.
  • Constructor Details

    • MetricAnomalyFeedback

      public MetricAnomalyFeedback(OffsetDateTime startTime, OffsetDateTime endTime, AnomalyValue anomalyValue)
      Creates an instance of MetricAnomalyFeedback.
      Parameters:
      startTime - the start timestamp of feedback timerange
      endTime - the end timestamp of feedback timerange, when equals to startTime means only one timestamp
      anomalyValue - the value of the anomaly.
  • Method Details

    • getAnomalyValue

      public AnomalyValue getAnomalyValue()
      Get the value of the anomaly..
      Returns:
      the value value.
    • getStartTime

      public OffsetDateTime getStartTime()
      Get the start timestamp of feedback timerange.
      Returns:
      the startTime value.
    • getEndTime

      public OffsetDateTime getEndTime()
      Get the end timestamp of feedback timerange, when equals to startTime means only one timestamp.
      Returns:
      the endTime value.
    • getDetectionConfiguration

      public AnomalyDetectionConfiguration getDetectionConfiguration()
      Get the corresponding anomaly detection configuration of this feedback.
      Returns:
      the detectionConfiguration value.
    • setDetectionConfigurationId

      public MetricAnomalyFeedback setDetectionConfigurationId(String detectionConfigurationId)
      Set the corresponding anomaly detection configuration Id for this feedback.
      Parameters:
      detectionConfigurationId - the detectionConfigurationId value to set.
      Returns:
      the MetricAnomalyFeedback object itself.
    • setDimensionFilter

      public MetricAnomalyFeedback setDimensionFilter(DimensionKey dimensionFilter)
      Set the series keys value for the feedback.
      Overrides:
      setDimensionFilter in class MetricFeedback
      Parameters:
      dimensionFilter - the dimensionFilter value to set.
      Returns:
      the MetricAnomalyFeedback object itself.
    • getDetectionConfigurationId

      public String getDetectionConfigurationId()
      Get the corresponding anomaly detection configuration Id of this feedback.
      Returns:
      the detectionConfigurationId value.