Class MetricCommentFeedback

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

public final class MetricCommentFeedback extends MetricFeedback
The feedback that allows adding comments in plain text providing more context about the data.
  • Constructor Details

    • MetricCommentFeedback

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

    • setDimensionFilter

      public MetricCommentFeedback 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 MetricCommentFeedback object itself.
    • getComment

      public String getComment()
      Get the comment value.
      Returns:
      the comment 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.