startTelemetryQuery

Starts a telemetry query within a session. Submits the provided query string for execution in the specified session. Use GetTelemetryQueryResults to poll for results and check query status.

Samples

// The following example submits a SQL query within a session and returns the query ID used to poll for
// results. Payloads are shown as JSON on the wire they are CBOR encoded.
val resp = cloudWatchOmniClient.startTelemetryQuery {
    sessionId = "9f8c7d6e-5b4a-4c3d-9e2f-1a0b2c3d4e5f"
    queryString = "SELECT `@timestamp`, `@message` FROM \"logs.default\" WHERE `@timestamp` BETWEEN NOW() - INTERVAL '1 HOUR' AND NOW() ORDER BY `@timestamp` DESC LIMIT 100"
}