Class MetricAggregationResult

java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.watson.discovery.v1.model.MetricAggregationResult
All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel

public class MetricAggregationResult
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Aggregation result data for the requested metric.
  • Constructor Details

    • MetricAggregationResult

      public MetricAggregationResult()
  • Method Details

    • getKeyAsString

      public Date getKeyAsString()
      Gets the keyAsString.

      Date in string form representing the start of this interval.

      Returns:
      the keyAsString
    • getKey

      public Long getKey()
      Gets the key.

      Unix epoch time equivalent of the **key_as_string**, that represents the start of this interval.

      Returns:
      the key
    • getMatchingResults

      public Long getMatchingResults()
      Gets the matchingResults.

      Number of matching results.

      Returns:
      the matchingResults
    • getEventRate

      public Double getEventRate()
      Gets the eventRate.

      The number of queries with associated events divided by the total number of queries for the interval. Only returned with **event_rate** metrics.

      Returns:
      the eventRate