forked from galaxydi/go-loghub
-
Notifications
You must be signed in to change notification settings - Fork 127
Open
Description
官方文档
文档原文:您可以在创建Logstore的过程中,通过API调用创建LogStore传递ttl(数据保存时间)、hot_ttl(热存储数据保存时间)、infrequentAccessTTL(低频存储数据保存时间)参数来配置存储分层的保留策略。
同样地,对于已经创建的Logstore,您也可以通过调用更新LogStore接口,更新ttl、hot_ttl和infrequentAccessTTL参数的值,来动态调整存储分层的保留策略,以满足您对数据保留和成本控制的需求。
当前SDK中的参数
type LogStore struct {
Name string `json:"logstoreName"`
TTL int `json:"ttl"`
ShardCount int `json:"shardCount"`
WebTracking bool `json:"enable_tracking"`
AutoSplit bool `json:"autoSplit"`
MaxSplitShard int `json:"maxSplitShard"`
AppendMeta bool `json:"appendMeta"`
TelemetryType string `json:"telemetryType"`
HotTTL int32 `json:"hot_ttl,omitempty"`
Mode string `json:"mode,omitempty"` // "query" or "standard"(default), can't be modified after creation
CreateTime uint32 `json:"createTime,omitempty"`
LastModifyTime uint32 `json:"lastModifyTime,omitempty"`
project *LogProject
putLogCompressType int
EncryptConf *EncryptConf `json:"encrypt_conf,omitempty"`
ProductType string `json:"productType,omitempty"`
useMetricStoreURL bool
}缺少infrequentAccessTTL(低频存储数据保存时间)参数
Metadata
Metadata
Assignees
Labels
No labels