Skip to content

MetricStoreProps

Properties for defining a MetricStore.

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

Initializer

import ros_cdk_sls
ros_cdk_sls.MetricStoreProps(
  logstore_name: typing.Union[str, IResolvable],
  project_name: typing.Union[str, IResolvable],
  preserve_storage: typing.Union[bool, IResolvable] = None,
  shard_count: typing.Union[typing.Union[int, float], IResolvable] = None,
  ttl: typing.Union[typing.Union[int, float], IResolvable] = None
)

Properties

Name Type Description
logstore_name typing.Union[str, ros_cdk_core.IResolvable] Property logstoreName: Metric store name: 1.
project_name typing.Union[str, ros_cdk_core.IResolvable] Property projectName: Project name: 1.
preserve_storage typing.Union[bool, ros_cdk_core.IResolvable] Property preserveStorage: Whether to keep the log permanently.
shard_count typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] Property shardCount: The number of Shards.
ttl typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] Property ttl: The lifecycle of log in the metrice store in days.

logstore_nameRequired

logstore_name: typing.Union[str, IResolvable]
  • Type: typing.Union[str, 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.


project_nameRequired

project_name: typing.Union[str, IResolvable]
  • Type: typing.Union[str, 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.


preserve_storageOptional

preserve_storage: typing.Union[bool, IResolvable]
  • Type: typing.Union[bool, ros_cdk_core.IResolvable]

Property preserveStorage: Whether to keep the log permanently.

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


shard_countOptional

shard_count: typing.Union[typing.Union[int, float], IResolvable]
  • Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]

Property shardCount: The number of Shards.

Allowed Values: 1-10, default to 2.


ttlOptional

ttl: typing.Union[typing.Union[int, float], IResolvable]
  • Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]

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

Allowed Values: 1-3000, default to 30.