MetricStoreProps
Properties for defining a MetricStore
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-sls-metricstore
Initializer
import com.aliyun.ros.cdk.sls.MetricStoreProps;
MetricStoreProps.builder()
.logstoreName(java.lang.String)
.logstoreName(IResolvable)
.projectName(java.lang.String)
.projectName(IResolvable)
// .preserveStorage(java.lang.Boolean)
// .preserveStorage(IResolvable)
// .shardCount(java.lang.Number)
// .shardCount(IResolvable)
// .ttl(java.lang.Number)
// .ttl(IResolvable)
.build();
Properties
Name | Type | Description |
---|---|---|
logstoreName |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property logstoreName: Metric store name: 1. |
projectName |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property projectName: Project name: 1. |
preserveStorage |
java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable |
Property preserveStorage: Whether to keep the log permanently. |
shardCount |
java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable |
Property shardCount: The number of Shards. |
ttl |
java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable |
Property ttl: The lifecycle of log in the metrice store in days. |
logstoreName
Required
public java.lang.Object getLogstoreName();
- Type: java.lang.String OR com.aliyun.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 java.lang.Object getProjectName();
- Type: java.lang.String OR com.aliyun.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 java.lang.Object getPreserveStorage();
- Type: java.lang.Boolean OR com.aliyun.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 java.lang.Object getShardCount();
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property shardCount: The number of Shards.
Allowed Values: 1-10, default to 2.
ttl
Optional
public java.lang.Object getTtl();
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property ttl: The lifecycle of log in the metrice store in days.
Allowed Values: 1-3000, default to 30.