public static final class CreateMetricStoreRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
CreateMetricStoreRequest.Builder |
autoSplit(Boolean autoSplit)
Specifies whether to enable automatic sharding.
|
CreateMetricStoreRequest |
build() |
CreateMetricStoreRequest.Builder |
hotTtl(Integer hotTtl)
hot_ttl.
|
CreateMetricStoreRequest.Builder |
infrequentAccessTTL(Integer infrequentAccessTTL)
infrequentAccessTTL.
|
CreateMetricStoreRequest.Builder |
maxSplitShard(Integer maxSplitShard)
The maximum number of shards into which existing shards can be automatically split.
|
CreateMetricStoreRequest.Builder |
metricType(String metricType)
The type of the metric data.
|
CreateMetricStoreRequest.Builder |
mode(String mode)
The type of the Metricstore.
|
CreateMetricStoreRequest.Builder |
name(String name)
The name of the Metricstore.
|
CreateMetricStoreRequest.Builder |
project(String project)
The name of the project.
|
CreateMetricStoreRequest.Builder |
shardCount(Integer shardCount)
The number of shards in the Metricstore.
|
CreateMetricStoreRequest.Builder |
ttl(Integer ttl)
The retention period of the metric data in the Metricstore.
|
public CreateMetricStoreRequest.Builder project(String project)
The name of the project.
This parameter is required.
example:my-project
public CreateMetricStoreRequest.Builder autoSplit(Boolean autoSplit)
Specifies whether to enable automatic sharding.
example:true
public CreateMetricStoreRequest.Builder hotTtl(Integer hotTtl)
public CreateMetricStoreRequest.Builder infrequentAccessTTL(Integer infrequentAccessTTL)
public CreateMetricStoreRequest.Builder maxSplitShard(Integer maxSplitShard)
The maximum number of shards into which existing shards can be automatically split. This parameter is valid only when you set the autoSplit parameter to true.
example:64
public CreateMetricStoreRequest.Builder metricType(String metricType)
The type of the metric data. Example: prometheus.
example:prometheus
public CreateMetricStoreRequest.Builder mode(String mode)
The type of the Metricstore. For example, you can set the parameter to standard to query Standard Metricstores.
example:standard
public CreateMetricStoreRequest.Builder name(String name)
The name of the Metricstore.
This parameter is required.
example:my_metric_store
public CreateMetricStoreRequest.Builder shardCount(Integer shardCount)
The number of shards in the Metricstore.
This parameter is required.
example:2
public CreateMetricStoreRequest.Builder ttl(Integer ttl)
The retention period of the metric data in the Metricstore. Unit: days.
This parameter is required.
example:7
public CreateMetricStoreRequest build()
Copyright © 2025. All rights reserved.