You can call the DescribeTimeseriesTable operation to query the information about a time series table, such as the time to live (TTL) configuration.
Prerequisites
- A time series table is created. For more information, see Create a time series table.
- The TimeseriesClient is initialized. For more information, see Initialization.
Parameter
Parameter | Description |
---|---|
timeseriesTableName | The name of the time series table. |
Example
Query the information about a time series table named test_timeseries_table.
private static void describeTimeseriesTable(TimeseriesClient client) {
String tableName = "test_timeseries_table";
DescribeTimeseriesTableResponse describeTimeseriesTableResponse = client.describeTimeseriesTable(new DescribeTimeseriesTableRequest(tableName));
TimeseriesTableMeta tableMeta = describeTimeseriesTableResponse.getTimeseriesTableMeta();
System.out.println(tableMeta.getTimeseriesTableName()); // The name of the time series table.
System.out.println(tableMeta.getStatus()); // The status of the time series table.
System.out.println(tableMeta.getTimeseriesTableOptions().getTimeToLive()); // The TTL configuration of the time series table.
}