MetricStoreProps
Properties for defining a MetricStore
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-sls-metricstore
Initializer
using AlibabaCloud.SDK.ROS.CDK.Sls;
new MetricStoreProps {
object LogstoreName,
object ProjectName,
object PreserveStorage = null,
object ShardCount = null,
object Ttl = null
};
Properties
Name | Type | Description |
---|---|---|
LogstoreName |
object |
Property logstoreName: Metric store name: 1. |
ProjectName |
object |
Property projectName: Project name: 1. |
PreserveStorage |
object |
Property preserveStorage: Whether to keep the log permanently. |
ShardCount |
object |
Property shardCount: The number of Shards. |
Ttl |
object |
Property ttl: The lifecycle of log in the metrice store in days. |
LogstoreName
Required
public object LogstoreName { get; set; }
- Type: object
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.
ProjectName
Required
public object ProjectName { get; set; }
- Type: object
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.
PreserveStorage
Optional
public object PreserveStorage { get; set; }
- Type: object
Property preserveStorage: Whether to keep the log permanently.
If set to true, TTL will be ignored. Default to false.
ShardCount
Optional
public object ShardCount { get; set; }
- Type: object
Property shardCount: The number of Shards.
Allowed Values: 1-10, default to 2.
Ttl
Optional
public object Ttl { get; set; }
- Type: object
Property ttl: The lifecycle of log in the metrice store in days.
Allowed Values: 1-3000, default to 30.