public class CreatePrometheusInstanceRequest
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 类和说明 |
|---|---|
static class |
CreatePrometheusInstanceRequest.CreatePrometheusInstanceRequestTags |
| 限定符和类型 | 字段和说明 |
|---|---|
Boolean |
allSubClustersSuccess
Does it require all child instances to be verified successfully before creating a GlobalView instance.
|
Integer |
archiveDuration
The number of days for automatic archiving after storage expiration (optional values: 60, 90, 180, 365). 0 means not archive.
|
String |
clusterId
The ID of the ACK cluster.
|
String |
clusterName
The name of the created cluster.
|
String |
clusterType
The type of the cluster to which the Prometheus instance belongs.
|
Integer |
duration
Data storage duration (in days).
|
String |
grafanaInstanceId
The ID of the Grafana dedicated instance.
|
String |
regionId
The ID of the region.
|
String |
resourceGroupId
The ID of the custom resource group.
|
String |
securityGroupId
The ID of the security group.
|
String |
subClustersJson
JSON string for child instances of the globalView instance.
|
List<CreatePrometheusInstanceRequest.CreatePrometheusInstanceRequestTags> |
tags
The tags of the instance.
|
String |
vpcId
The ID of virtual private cloud (VPC).
|
String |
vSwitchId
The ID of the vSwitch.
|
| 构造器和说明 |
|---|
CreatePrometheusInstanceRequest() |
@NameInMap(value="AllSubClustersSuccess") public Boolean allSubClustersSuccess
Does it require all child instances to be verified successfully before creating a GlobalView instance. The default is false, which means partial success is possible.
example:true
@NameInMap(value="ArchiveDuration") public Integer archiveDuration
The number of days for automatic archiving after storage expiration (optional values: 60, 90, 180, 365). 0 means not archive.
example:90
@NameInMap(value="ClusterId") public String clusterId
The ID of the ACK cluster. This parameter is required if you set the ClusterType parameter to aliyun-cs.
example:cc7a37ee31aea4ed1a059eff8034b****
@NameInMap(value="ClusterName") public String clusterName
The name of the created cluster. This parameter is required if you set the ClusterType parameter to remote-write or ecs.
example:clusterNameOfTest
@NameInMap(value="ClusterType") public String clusterType
The type of the cluster to which the Prometheus instance belongs. Valid values:
This parameter is required.
example:remote-write
@NameInMap(value="Duration") public Integer duration
Data storage duration (in days).
example:90
@NameInMap(value="GrafanaInstanceId") public String grafanaInstanceId
The ID of the Grafana dedicated instance. This parameter is available if you set the ClusterType parameter to ecs.
example:grafana-bp1*****
@NameInMap(value="RegionId") public String regionId
The ID of the region. If you use a Prometheus instance to monitor an Alibaba Cloud service in China, this parameter must be set to cn-shanghai.
This parameter is required.
example:cn-shanghai
@NameInMap(value="ResourceGroupId") public String resourceGroupId
The ID of the custom resource group. You can configure this parameter to bind the instance to the resource group.
example:rg-acfmxyexli2****
@NameInMap(value="SecurityGroupId") public String securityGroupId
The ID of the security group. This parameter is required if you set the ClusterType parameter to ecs.
example:sg-bp1********
@NameInMap(value="SubClustersJson") public String subClustersJson
JSON string for child instances of the globalView instance.
example:When the clusterType is global view, this parameter needs to be passed: a list of information about the clusters that need to be aggregated. Example: [ { "Headers":{
},
"RegionId": "cn hangzhou",
"SourceType": "Alibaba Prometheus",
"Extras":{
},
"ClusterId": "c39a1048921e04f ****************",
"SourceName": "test1",
"DataSource": "",
"UserId": "1672753 ******************"
}, { "Headers":{
},
"RegionId": "cn beijing",
"SourceType": "Alibaba Prometheus",
"Extras":{
},
"ClusterId": "c6b6485496d5b40 ****************",
"SourceName": "test2",
"DataSource": "",
"UserId": "1672753 ******************"
}, { "Headers":{
},
"RegionId": "cn zhangjiakou",
"SourceType": "Alibaba Prometheus",
"Extras":{
},
"ClusterId": "c261a4f3200c446 ****************",
"SourceName": "test3",
"DataSource": "",
"UserId": "1672753 ******************"
} ]
@NameInMap(value="Tags") public List<CreatePrometheusInstanceRequest.CreatePrometheusInstanceRequestTags> tags
The tags of the instance. You can configure this parameter to manage tags for the instance.
example:[ { "labelName":"labelValue" }, { "testName":"clusterA" } ]
@NameInMap(value="VSwitchId") public String vSwitchId
The ID of the vSwitch. This parameter is required if you set the ClusterType parameter to ecs.
example:vsw-bp1*********
@NameInMap(value="VpcId") public String vpcId
The ID of virtual private cloud (VPC). This parameter is required if you set the ClusterType parameter to ecs.
example:vpc-rpn**********
public static CreatePrometheusInstanceRequest build(Map<String,?> map) throws Exception
Exceptionpublic CreatePrometheusInstanceRequest setAllSubClustersSuccess(Boolean allSubClustersSuccess)
public Boolean getAllSubClustersSuccess()
public CreatePrometheusInstanceRequest setArchiveDuration(Integer archiveDuration)
public Integer getArchiveDuration()
public CreatePrometheusInstanceRequest setClusterId(String clusterId)
public String getClusterId()
public CreatePrometheusInstanceRequest setClusterName(String clusterName)
public String getClusterName()
public CreatePrometheusInstanceRequest setClusterType(String clusterType)
public String getClusterType()
public CreatePrometheusInstanceRequest setDuration(Integer duration)
public Integer getDuration()
public CreatePrometheusInstanceRequest setGrafanaInstanceId(String grafanaInstanceId)
public String getGrafanaInstanceId()
public CreatePrometheusInstanceRequest setRegionId(String regionId)
public String getRegionId()
public CreatePrometheusInstanceRequest setResourceGroupId(String resourceGroupId)
public String getResourceGroupId()
public CreatePrometheusInstanceRequest setSecurityGroupId(String securityGroupId)
public String getSecurityGroupId()
public CreatePrometheusInstanceRequest setSubClustersJson(String subClustersJson)
public String getSubClustersJson()
public CreatePrometheusInstanceRequest setTags(List<CreatePrometheusInstanceRequest.CreatePrometheusInstanceRequestTags> tags)
public List<CreatePrometheusInstanceRequest.CreatePrometheusInstanceRequestTags> getTags()
public CreatePrometheusInstanceRequest setVSwitchId(String vSwitchId)
public String getVSwitchId()
public CreatePrometheusInstanceRequest setVpcId(String vpcId)
public String getVpcId()
Copyright © 2024. All rights reserved.