Baidu AI Cloud
中国站

百度智能云

Time-Spatial Database

Getting Started

1.CreateTsdbClient

TsdbClient is the client that interacts with the TSDB service, and TSDB operations of the TSDB Node SDK are all done through TsdbClient. Users can refer to creating TsdbClient to complete the operation of initializing the client.

  1. Write Operation

Build data points, including Metric, Tag, and Value, and write the data points to TSDB.

  1. Query Operation

Get the list of Metric and Tag, filter, group and screen the current data.

  1. Other options:

    • Generate the pre-signed URL of the query data point

      Pre-signed URLs can be used to query data points on front-end pages. The front-end requests the server to generate a pre-signed URL and return it to the front-end, which uses the URL to initiate ajax requests to query data points.

    • Gzip compression of writing data points

      Gzip compression is turned on by default for writing data points. If you do not need to use it, you can turn off gzip compression.

    • Error code Common error codes and their causes using sdk.
Previous
Demo Project Download
Next
Client Create a TsdbClient