Class BatchPutMetricsError

    • Method Detail

      • code

        public final PutMetricsErrorCode code()

        The error code of an error that occured when attempting to put metrics.

        • METRIC_LIMIT_EXCEEDED: The maximum amount of metrics per resource is exceeded.

        • INTERNAL_ERROR: An internal error occured.

        • VALIDATION_ERROR: The metric data failed validation.

        • CONFLICT_ERROR: Multiple requests attempted to modify the same data simultaneously.

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

        Returns:
        The error code of an error that occured when attempting to put metrics.

        • METRIC_LIMIT_EXCEEDED: The maximum amount of metrics per resource is exceeded.

        • INTERNAL_ERROR: An internal error occured.

        • VALIDATION_ERROR: The metric data failed validation.

        • CONFLICT_ERROR: Multiple requests attempted to modify the same data simultaneously.

        See Also:
        PutMetricsErrorCode
      • codeAsString

        public final String codeAsString()

        The error code of an error that occured when attempting to put metrics.

        • METRIC_LIMIT_EXCEEDED: The maximum amount of metrics per resource is exceeded.

        • INTERNAL_ERROR: An internal error occured.

        • VALIDATION_ERROR: The metric data failed validation.

        • CONFLICT_ERROR: Multiple requests attempted to modify the same data simultaneously.

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

        Returns:
        The error code of an error that occured when attempting to put metrics.

        • METRIC_LIMIT_EXCEEDED: The maximum amount of metrics per resource is exceeded.

        • INTERNAL_ERROR: An internal error occured.

        • VALIDATION_ERROR: The metric data failed validation.

        • CONFLICT_ERROR: Multiple requests attempted to modify the same data simultaneously.

        See Also:
        PutMetricsErrorCode
      • metricIndex

        public final Integer metricIndex()

        An index that corresponds to the metric in the request.

        Returns:
        An index that corresponds to the metric in the request.
      • 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)