Skip to content

MetricStoreProps

Properties for defining a MetricStore.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-sls-metricstore

Initializer

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdksls"
&alicloudroscdksls.MetricStoreProps {
    LogstoreName: interface{},
    ProjectName: interface{},
    PreserveStorage: interface{},
    ShardCount: interface{},
    Ttl: interface{},
}

Properties

Name Type Description
LogstoreName interface{} Property logstoreName: Metric store name: 1.
ProjectName interface{} Property projectName: Project name: 1.
PreserveStorage interface{} Property preserveStorage: Whether to keep the log permanently.
ShardCount interface{} Property shardCount: The number of Shards.
Ttl interface{} Property ttl: The lifecycle of log in the metrice store in days.

LogstoreNameRequired

LogstoreName interface{}
  • Type: interface{}

Property logstoreName: Metric store name: 1.

Only supports lowercase letters, numbers, hyphens (-) and underscores (_). 2. Must start and end with lowercase letters and numbers. 3. The name length is 3-63 characters.


ProjectNameRequired

ProjectName interface{}
  • Type: interface{}

Property projectName: Project name: 1.

Only supports lowercase letters, numbers, hyphens (-) and underscores (_). 2. Must start and end with lowercase letters and numbers. 3. The name length is 3-63 characters.


PreserveStorageOptional

PreserveStorage interface{}
  • Type: interface{}

Property preserveStorage: Whether to keep the log permanently.

If set to true, TTL will be ignored. Default to false.


ShardCountOptional

ShardCount interface{}
  • Type: interface{}

Property shardCount: The number of Shards.

Allowed Values: 1-10, default to 2.


TtlOptional

Ttl interface{}
  • Type: interface{}

Property ttl: The lifecycle of log in the metrice store in days.

Allowed Values: 1-3000, default to 30.