Skip to content

创建/更新Logstore的参数缺少infrequentAccessTTL(低频存储数据保存时间)参数 #359

@MR5356

Description

@MR5356

官方文档

https://help.aliyun.com/zh/sls/data-tiered-storage-overview?spm=a2c4g.11186623.help-menu-search-28958.d_1#7468790fb647y

文档原文:您可以在创建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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions