View a markdown version of this page

StartTelemetryQuerySession - Amazon CloudWatch Omni

StartTelemetryQuerySession

Starts a new telemetry query session.

A session provides a logical grouping for one or more telemetry queries. The returned session ID is required when starting queries via StartTelemetryQuery.

Request Parameters

sessionName

A human-readable name for the session. Names under /aws/ are reserved for service integrations.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 128.

Pattern: ([a-zA-Z0-9_-]+|/aws/[a-zA-Z0-9_-]+(/[a-zA-Z0-9_-]+)?)

Required: No

Response Elements

The following element is returned by the service.

sessionId

The unique ID of the session.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 64.

Pattern: [a-z0-9-]+

Errors

For information about the errors that are common to all actions, see Common Error Types.

ConflictException

The operation could not be completed because of a conflict with the current state of the resource.

conflictType

The type of conflict that caused the request to fail. Not always present.

errorCode

The error code associated with the conflict. Not always present.

message

A human-readable description of the conflict.

resourceId

The identifier of the resource that is in conflict. Not always present.

resourceType

The type of the resource that is in conflict. Not always present.

HTTP Status Code: 409

InternalServerException

An unexpected error occurred while processing the request.

errorCode

The error code associated with the internal error.

HTTP Status Code: 500

ServiceQuotaExceededException

A service quota was exceeded.

HTTP Status Code: 402

ThrottlingException

The request was throttled due to exceeding the allowed request rate.

retryAfterSeconds

The number of seconds to wait before retrying the request. Not always present.

HTTP Status Code: 429

ValidationException

A parameter is specified incorrectly.

errorCode

The error code associated with the validation failure.

HTTP Status Code: 400

Examples

Start a telemetry query session

The following example starts a session for grouping telemetry queries and returns its session ID. Payloads are shown as JSON; on the wire they are CBOR-encoded.

Sample Request

{ "sessionName": "prod-latency-investigation" }

Sample Response

{ "sessionId": "9f8c7d6e-5b4a-4c3d-9e2f-1a0b2c3d4e5f" }

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: