You can call the DescribeTimeseriesTable operation to query the information about a time series table, such as the time to live (TTL) configuration.

Prerequisites

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. 
}