Todos os produtos
Search
Central de documentação

Tablestore:Consultar informações de um analytical store

Última atualização: Jul 03, 2026

Caso tenha criado um analytical store durante a criação de uma tabela de séries temporais, chame a operação DescribeTimeseriesAnalyticalStore para consultar informações desse repositório, como configuração de tempo de vida (TTL), opção de sincronização de dados, status da sincronização e uso de armazenamento.

Pré-requisitos

Parâmetros

Parâmetro

Descrição

timeseriesTableName

Nome da tabela de séries temporais.

analyticalStoreName

Nome do analytical store.

Exemplos

O código abaixo exemplifica como consultar informações do analytical store test_analytical_store, associado à tabela de séries temporais test_timeseries_table:

func DescribeAnalyticalStore(client *tablestore.TimeseriesClient) {
  //Specify the names of the time series table and analytical store.
	req := tablestore.NewDescribeTimeseriesAnalyticalStoreRequest("test_timeseries_table", "test_analytical_store")
	resp, err := client.DescribeTimeseriesAnalyticalStore(req)
	if err != nil {
		log.Fatal(err)
	}
  //Print the name of the analytical store.
	fmt.Println("analyticalStoreName:", resp.AnalyticalStore.StoreName)
	//Print the synchronization option of the analytical store.
  if resp.AnalyticalStore.SyncOption != nil {
		fmt.Println("syncOption:", *resp.AnalyticalStore.SyncOption)
	}
  //Print the TTL of the analytical store.
	if resp.AnalyticalStore.TimeToLive != nil {
		fmt.Println("timeToLive:", *resp.AnalyticalStore.TimeToLive)
	}
  //Print the current synchronization status of the analytical store.
	if resp.SyncStat != nil {
		fmt.Println("syncPhase:", resp.SyncStat.SyncPhase)
		fmt.Println("currentSyncTimestamp:", time.Unix(resp.SyncStat.CurrentSyncTimestamp, 0))
	}
  //Print the current storage usage of the analytical store.
	if resp.StorageSize != nil {
		fmt.Println("storageSize:", resp.StorageSize.Size)
		fmt.Println("storageSizeTimestamp:", time.Unix(resp.StorageSize.Timestamp, 0))
	}
}