Interface BatchPutMetricsError.Builder

    • Method Detail

      • code

        BatchPutMetricsError.Builder code​(String 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.

        Parameters:
        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.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        PutMetricsErrorCode, PutMetricsErrorCode
      • code

        BatchPutMetricsError.Builder code​(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.

        Parameters:
        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.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        PutMetricsErrorCode, PutMetricsErrorCode
      • metricIndex

        BatchPutMetricsError.Builder metricIndex​(Integer metricIndex)

        An index that corresponds to the metric in the request.

        Parameters:
        metricIndex - An index that corresponds to the metric in the request.
        Returns:
        Returns a reference to this object so that method calls can be chained together.