全部產品
Search
文件中心

Tablestore:TimeseriesTableMeta

更新時間:Dec 23, 2025

表示時序表的表結構和配置。

資料結構

message TimeseriesTableMeta {
  required string table_name = 1;
  optional TimeseriesTableOptions table_options = 2;
  optional string status = 3;
  optional TimeseriesMetaOptions meta_options = 4;
  repeated string timeseries_key_schema = 5;
  repeated PrimaryKeySchema field_primary_key_schema = 6;
}

名稱

類型

是否必選

描述

table_name

string

表名。

table_options

TimeseriesTableOptions

表的配置資訊。

status

string

表狀態。取值範圍如下:

  • CREATING:建立中。

  • CREATED:建立完成。

  • DELETING:刪除中。

meta_options

TimeseriesMetaOptions

時間軸表的配置資訊。

timeseries_key_schema

string

時間軸標識預設由度量名稱、資料來源和標籤構成,您可以根據業務需要自訂時間軸標識。

field_primary_key_schema

PrimaryKeySchema

作為主鍵的資料欄位,支援配置多個。

當實際業務中存在時間軸標識和時間點相同,但是時序資料不同的資料存放區需求時,您可以通過為時序表添加作為主鍵的資料欄位來實現。