public static final class CreateLogStoreRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
CreateLogStoreRequest.Builder |
appendMeta(Boolean appendMeta)
Specifies whether to record the public IP address and the log receiving time.
|
CreateLogStoreRequest.Builder |
autoSplit(Boolean autoSplit)
Specifies whether to enable automatic sharding.
|
CreateLogStoreRequest |
build() |
CreateLogStoreRequest.Builder |
enableTracking(Boolean enableTracking)
Specifies whether to enable the web tracking feature.
|
CreateLogStoreRequest.Builder |
encryptConf(EncryptConf encryptConf)
The data structure of the encryption configuration.
|
CreateLogStoreRequest.Builder |
hotTtl(Integer hotTtl)
The data retention period for the hot storage tier.
|
CreateLogStoreRequest.Builder |
infrequentAccessTTL(Integer infrequentAccessTTL)
The data retention period for the IA storage tier.
|
CreateLogStoreRequest.Builder |
logstoreName(String logstoreName)
The name of the Logstore.
|
CreateLogStoreRequest.Builder |
maxSplitShard(Integer maxSplitShard)
The maximum number of shards into which existing shards can be automatically split.
|
CreateLogStoreRequest.Builder |
mode(String mode)
The type of the Logstore.
|
CreateLogStoreRequest.Builder |
processorId(String processorId)
IngestProcessor ID
|
CreateLogStoreRequest.Builder |
project(String project)
The name of the project.
|
CreateLogStoreRequest.Builder |
shardCount(Integer shardCount)
The number of shards.
|
CreateLogStoreRequest.Builder |
telemetryType(String telemetryType)
The type of the observable data.
|
CreateLogStoreRequest.Builder |
ttl(Integer ttl)
The data retention period.
|
public CreateLogStoreRequest.Builder project(String project)
The name of the project.
This parameter is required.
example:ali-test-project
public CreateLogStoreRequest.Builder appendMeta(Boolean appendMeta)
Specifies whether to record the public IP address and the log receiving time. Default value: false. Valid values:
false
public CreateLogStoreRequest.Builder autoSplit(Boolean autoSplit)
Specifies whether to enable automatic sharding. Valid values:
true
public CreateLogStoreRequest.Builder enableTracking(Boolean enableTracking)
Specifies whether to enable the web tracking feature. Default value: false. Valid values:
false
public CreateLogStoreRequest.Builder encryptConf(EncryptConf encryptConf)
The data structure of the encryption configuration. The following parameters are included: enable, encrypt_type, and user_cmk_info. For more information, see EncryptConf.
public CreateLogStoreRequest.Builder hotTtl(Integer hotTtl)
The data retention period for the hot storage tier. Unit: days. Minimum value: 7. The value of this parameter cannot exceed the value of ttl. If you set this parameter to -1, all data is stored in the hot storage tier.
After the retention period that is specified for the hot storage tier elapses, the data is moved to the Infrequent Access (IA) storage tier. For more information, see Enable hot and cold-tiered storage for a Logstore.
example:60
public CreateLogStoreRequest.Builder infrequentAccessTTL(Integer infrequentAccessTTL)
The data retention period for the IA storage tier. You must set this parameter to at least 30 days. After the data retention period that you specify for the IA storage tier elapses, the data is moved to the Archive storage tier.
example:30
public CreateLogStoreRequest.Builder logstoreName(String logstoreName)
The name of the Logstore. The name must meet the following requirements:
This parameter is required.
example:my-logstore
public CreateLogStoreRequest.Builder maxSplitShard(Integer maxSplitShard)
The maximum number of shards into which existing shards can be automatically split. Valid values: 1 to 256.
example:If you set autoSplit to true, you must specify this parameter.
64
public CreateLogStoreRequest.Builder mode(String mode)
The type of the Logstore. Simple Log Service provides two types of Logstores: Standard Logstores and Query Logstores. Valid values:
standard
public CreateLogStoreRequest.Builder processorId(String processorId)
IngestProcessor ID
public CreateLogStoreRequest.Builder shardCount(Integer shardCount)
The number of shards.
You cannot call the CreateLogStore operation to change the number of shards. You can call the SplitShard or MergeShards operation to change the number of shards.
This parameter is required.
example:2
public CreateLogStoreRequest.Builder telemetryType(String telemetryType)
The type of the observable data. Valid values:
None
public CreateLogStoreRequest.Builder ttl(Integer ttl)
The data retention period. Unit: days. Valid values: 1 to 3650. If you set this parameter to 3650, data is permanently stored.
This parameter is required.
example:1
public CreateLogStoreRequest build()
Copyright © 2025. All rights reserved.