Class MetricTokenAggregationResult

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

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

    • MetricTokenAggregationResult

      public MetricTokenAggregationResult()
  • Method Details

    • getKey

      public String getKey()
      Gets the key.

      The content of the **natural_language_query** parameter used in the query that this result represents.

      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 currently stored (queries and events are stored in the log for 30 days).

      Returns:
      the eventRate