MetricStoreProps
Properties for defining a MetricStore
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-sls-metricstore
Initializer
import { MetricStoreProps } from '@alicloud/ros-cdk-sls'
const metricStoreProps: MetricStoreProps = { ... }
Properties
Name | Type | Description |
---|---|---|
logstoreName |
string | @alicloud/ros-cdk-core.IResolvable |
Property logstoreName: Metric store name: 1. |
projectName |
string | @alicloud/ros-cdk-core.IResolvable |
Property projectName: Project name: 1. |
preserveStorage |
boolean | @alicloud/ros-cdk-core.IResolvable |
Property preserveStorage: Whether to keep the log permanently. |
shardCount |
number | @alicloud/ros-cdk-core.IResolvable |
Property shardCount: The number of Shards. |
ttl |
number | @alicloud/ros-cdk-core.IResolvable |
Property ttl: The lifecycle of log in the metrice store in days. |
logstoreName
Required
public readonly logstoreName: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
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 readonly projectName: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
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 readonly preserveStorage: boolean | IResolvable;
- Type: boolean | @alicloud/ros-cdk-core.IResolvable
Property preserveStorage: Whether to keep the log permanently.
If set to true, TTL will be ignored. Default to false.
shardCount
Optional
public readonly shardCount: number | IResolvable;
- Type: number | @alicloud/ros-cdk-core.IResolvable
Property shardCount: The number of Shards.
Allowed Values: 1-10, default to 2.
ttl
Optional
public readonly ttl: number | IResolvable;
- Type: number | @alicloud/ros-cdk-core.IResolvable
Property ttl: The lifecycle of log in the metrice store in days.
Allowed Values: 1-3000, default to 30.