types

package
v0.0.0-...-68f2935 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 24, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BatchPutMetricsError

type BatchPutMetricsError struct {

	// 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.
	Code PutMetricsErrorCode

	// An index that corresponds to the metric in the request.
	MetricIndex *int32
	// contains filtered or unexported fields
}

An error that occured when putting the metric data.

type PutMetricsErrorCode

type PutMetricsErrorCode string
const (
	PutMetricsErrorCodeMetricLimitExceeded PutMetricsErrorCode = "METRIC_LIMIT_EXCEEDED"
	PutMetricsErrorCodeInternalError       PutMetricsErrorCode = "INTERNAL_ERROR"
	PutMetricsErrorCodeValidationError     PutMetricsErrorCode = "VALIDATION_ERROR"
	PutMetricsErrorCodeConflictError       PutMetricsErrorCode = "CONFLICT_ERROR"
)

Enum values for PutMetricsErrorCode

func (PutMetricsErrorCode) Values

Values returns all known values for PutMetricsErrorCode. Note that this can be expanded in the future, and so it is only as up to date as the client.

The ordering of this slice is not guaranteed to be stable across updates.

type RawMetricData

type RawMetricData struct {

	// The name of the metric.
	//
	// This member is required.
	MetricName *string

	// The time that the metric was recorded.
	//
	// This member is required.
	Timestamp *time.Time

	// The metric value.
	//
	// This member is required.
	Value *float64

	// The metric step (epoch).
	Step *int32
	// contains filtered or unexported fields
}

The raw metric data to associate with the resource.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL