Class Statistics

    • Method Detail

      • aggregationEndTime

        public final Instant aggregationEndTime()

        The end time for the aggregation.

        Returns:
        The end time for the aggregation.
      • aggregationStartTime

        public final Instant aggregationStartTime()

        The start time for the aggregation.

        Returns:
        The start time for the aggregation.
      • costInUsd

        public final Stats costInUsd()

        How the statistics should appear in USD. Options include: minimum, maximum, average or sum.

        Returns:
        How the statistics should appear in USD. Options include: minimum, maximum, average or sum.
      • count

        public final Integer count()

        The number of instances in a list of statistics.

        Returns:
        The number of instances in a list of statistics.
      • fleetId

        public final String fleetId()

        The fleet ID.

        Returns:
        The fleet ID.
      • instanceType

        public final String instanceType()

        The type of instance.

        Returns:
        The type of instance.
      • jobId

        public final String jobId()

        The job ID.

        Returns:
        The job ID.
      • jobName

        public final String jobName()

        The job name.

        Returns:
        The job name.
      • licenseProduct

        public final String licenseProduct()

        The licensed product.

        Returns:
        The licensed product.
      • queueId

        public final String queueId()

        The queue ID.

        Returns:
        The queue ID.
      • runtimeInSeconds

        public final Stats runtimeInSeconds()

        The total aggregated runtime.

        Returns:
        The total aggregated runtime.
      • usageTypeAsString

        public final String usageTypeAsString()

        The type of usage for the statistics.

        If the service returns an enum value that is not available in the current SDK version, usageType will return UsageType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from usageTypeAsString().

        Returns:
        The type of usage for the statistics.
        See Also:
        UsageType
      • userId

        public final String userId()

        The user ID.

        Returns:
        The user ID.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)