public static final class UpdateLogStoreRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
UpdateLogStoreRequest.Builder |
appendMeta(Boolean appendMeta)
Specifies whether to record public IP addresses.
|
UpdateLogStoreRequest.Builder |
autoSplit(Boolean autoSplit)
Specifies whether to enable automatic sharding.
|
UpdateLogStoreRequest |
build() |
UpdateLogStoreRequest.Builder |
enableTracking(Boolean enableTracking)
Specifies whether to enable the web tracking feature.
|
UpdateLogStoreRequest.Builder |
encryptConf(EncryptConf encryptConf)
The data structure of the encryption configuration.
|
UpdateLogStoreRequest.Builder |
hotTtl(Integer hotTtl)
The retention period of data in the hot storage tier of the Logstore.
|
UpdateLogStoreRequest.Builder |
infrequentAccessTTL(Integer infrequentAccessTTL)
The retention period of data in the IA storage tier of the Logstore.
|
UpdateLogStoreRequest.Builder |
logstore(String logstore)
The name of the Logstore.
|
UpdateLogStoreRequest.Builder |
logstoreName(String logstoreName)
The name of the Logstore.
|
UpdateLogStoreRequest.Builder |
maxSplitShard(Integer maxSplitShard)
The maximum number of shards into which existing shards can be automatically split.
|
UpdateLogStoreRequest.Builder |
mode(String mode)
The type of the Logstore.
|
UpdateLogStoreRequest.Builder |
project(String project)
The name of the project.
|
UpdateLogStoreRequest.Builder |
shardCount(Integer shardCount)
The number of shards.
|
UpdateLogStoreRequest.Builder |
telemetryType(String telemetryType)
The type of the observable data.
|
UpdateLogStoreRequest.Builder |
ttl(Integer ttl)
The retention period of data.
|
public UpdateLogStoreRequest.Builder project(String project)
The name of the project.
This parameter is required.
example:ali-test-project
public UpdateLogStoreRequest.Builder logstore(String logstore)
The name of the Logstore.
This parameter is required.
example:test-logstore
public UpdateLogStoreRequest.Builder appendMeta(Boolean appendMeta)
Specifies whether to record public IP addresses. Default value: false. Valid values:
false
public UpdateLogStoreRequest.Builder autoSplit(Boolean autoSplit)
Specifies whether to enable automatic sharding. Valid values:
true
public UpdateLogStoreRequest.Builder enableTracking(Boolean enableTracking)
Specifies whether to enable the web tracking feature. Default value: false. Valid values:
false
public UpdateLogStoreRequest.Builder encryptConf(EncryptConf encryptConf)
The data structure of the encryption configuration.
public UpdateLogStoreRequest.Builder hotTtl(Integer hotTtl)
The retention period of data in the hot storage tier of the Logstore. Valid values: 7 to 3000. Unit: days. 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 UpdateLogStoreRequest.Builder infrequentAccessTTL(Integer infrequentAccessTTL)
The retention period of data in the IA storage tier of the Logstore. 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 UpdateLogStoreRequest.Builder logstoreName(String logstoreName)
The name of the Logstore.
This parameter is required.
example:test-logstore
public UpdateLogStoreRequest.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 maxSplitShard.
64
public UpdateLogStoreRequest.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 UpdateLogStoreRequest.Builder shardCount(Integer shardCount)
The number of shards.
example:You cannot call the UpdateLogStore operation to change the number of shards. You can call the SplitShard or MergeShards operation to change the number of shards.
2
public UpdateLogStoreRequest.Builder telemetryType(String telemetryType)
The type of the observable data. Valid values:
None
public UpdateLogStoreRequest.Builder ttl(Integer ttl)
The retention period of data. Unit: days. Valid values: 1 to 3650. If you set this parameter to 3650, logs are permanently stored.
This parameter is required.
example:30
public UpdateLogStoreRequest build()
Copyright © 2025. All rights reserved.