Query |
The SQL statement. For more information, see Tablestore documentation.
Example: SELECT
*
FROM
your_table
WHERE
$__unixMicroTimeRangeFilter(_time)
AND _m_name = "your_measurement"
AND tag_value_at(_tags, "your_tag")="your_tag_value"
LIMIT 1000
Note
- In the WHERE clause, the time range condition that is used to filter data is specified
by using a predefined macro. In this example, the predefined macro is
$__unixMicroTimeRangeFilter . For more information, see Use SQL to query time series data.
- If you want data to be displayed in a time series chart, a time column that uses timestamps
must be returned. You must specify the name of the time column.
|
Format As |
The format of the results. Valid values:
- Timeseries: displays the query results in a regular time series chart.
- FlowGraph: displays the query results in a multi-dimensional chart.
- Table: displays the query results in a regular table.
|
Time Column |
The name of the time column in the query results that are returned. The time column
is used as the x-axis of the time series chart.
|
Aggregation Column |
This parameter is required when the Format As parameter is set to FlowGraph. This parameter is used to convert data in multiple rows of a single column at a
specified point in time into data in multiple columns of a single row at the specified
point in time. This parameter is suitable for converting data that uses a single-value
model into data that uses a multi-value model. Data that uses a single-value model
is obtained when you use SQL statements to query time series data in Tablestore. Format:
<Data point name column >#:#<Value column> . Example: "_field_name#:#_double_value" .
|