Class GetMetricsQueryOptions

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

public class GetMetricsQueryOptions
extends com.ibm.cloud.sdk.core.service.model.GenericModel
The getMetricsQuery options.
  • Method Details

    • newBuilder

      public GetMetricsQueryOptions.Builder newBuilder()
      New builder.
      Returns:
      a GetMetricsQueryOptions builder
    • startTime

      public Date startTime()
      Gets the startTime.

      Metric is computed from data recorded after this timestamp; must be in `YYYY-MM-DDThh:mm:ssZ` format.

      Returns:
      the startTime
    • endTime

      public Date endTime()
      Gets the endTime.

      Metric is computed from data recorded before this timestamp; must be in `YYYY-MM-DDThh:mm:ssZ` format.

      Returns:
      the endTime
    • resultType

      public String resultType()
      Gets the resultType.

      The type of result to consider when calculating the metric.

      Returns:
      the resultType