Class DescribeCustomMetricResponse

    • Method Detail

      • metricName

        public final String metricName()

        The name of the custom metric.

        Returns:
        The name of the custom metric.
      • metricArn

        public final String metricArn()

        The Amazon Resource Number (ARN) of the custom metric.

        Returns:
        The Amazon Resource Number (ARN) of the custom metric.
      • metricType

        public final CustomMetricType metricType()

        The type of the custom metric.

        The type number only takes a single metric value as an input, but while submitting the metrics value in the DeviceMetrics report, it must be passed as an array with a single value.

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

        Returns:
        The type of the custom metric.

        The type number only takes a single metric value as an input, but while submitting the metrics value in the DeviceMetrics report, it must be passed as an array with a single value.

        See Also:
        CustomMetricType
      • metricTypeAsString

        public final String metricTypeAsString()

        The type of the custom metric.

        The type number only takes a single metric value as an input, but while submitting the metrics value in the DeviceMetrics report, it must be passed as an array with a single value.

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

        Returns:
        The type of the custom metric.

        The type number only takes a single metric value as an input, but while submitting the metrics value in the DeviceMetrics report, it must be passed as an array with a single value.

        See Also:
        CustomMetricType
      • displayName

        public final String displayName()

        Field represents a friendly name in the console for the custom metric; doesn't have to be unique. Don't use this name as the metric identifier in the device metric report. Can be updated.

        Returns:
        Field represents a friendly name in the console for the custom metric; doesn't have to be unique. Don't use this name as the metric identifier in the device metric report. Can be updated.
      • creationDate

        public final Instant creationDate()

        The creation date of the custom metric in milliseconds since epoch.

        Returns:
        The creation date of the custom metric in milliseconds since epoch.
      • lastModifiedDate

        public final Instant lastModifiedDate()

        The time the custom metric was last modified in milliseconds since epoch.

        Returns:
        The time the custom metric was last modified in milliseconds since epoch.
      • 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