Timestream

Documentation for Timestream.

Timestream.init_query_client โ€” Method
init_query_client()

This function will query for correct endpoint and then initialize client. Please remember that this client has limited TTL. Usually 24h. So if the query command fail, try to aquire new client.

source
Timestream.query โ€” Method
query(client, q)

Execute given query on Timestream and return all result records This function will read all pages with data before returning the result.

Arguments

  • client: client created with init_query_client function
  • q: Query string which specifies what should be returned (SQL command)
source