com.aliyun.arms20190808.models.GetPrometheusIntegrationResponseBody Maven / Gradle / Ivy
Show all versions of arms20190808 Show documentation
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.arms20190808.models;
import com.aliyun.tea.*;
public class GetPrometheusIntegrationResponseBody extends TeaModel {
/**
* The status code. The status code 200 indicates that the request was successful. If another status code is returned, the request failed.
*
* example:
* 200
*/
@NameInMap("Code")
public Integer code;
/**
* The returned struct.
*/
@NameInMap("Data")
public GetPrometheusIntegrationResponseBodyData data;
/**
* The message returned.
*
* example:
* message
*/
@NameInMap("Message")
public String message;
/**
* The ID of the request.
*
* example:
* 9BEF2832-9D95-5E3E-9B10-74887CA17B94
*/
@NameInMap("RequestId")
public String requestId;
public static GetPrometheusIntegrationResponseBody build(java.util.Map map) throws Exception {
GetPrometheusIntegrationResponseBody self = new GetPrometheusIntegrationResponseBody();
return TeaModel.build(map, self);
}
public GetPrometheusIntegrationResponseBody setCode(Integer code) {
this.code = code;
return this;
}
public Integer getCode() {
return this.code;
}
public GetPrometheusIntegrationResponseBody setData(GetPrometheusIntegrationResponseBodyData data) {
this.data = data;
return this;
}
public GetPrometheusIntegrationResponseBodyData getData() {
return this.data;
}
public GetPrometheusIntegrationResponseBody setMessage(String message) {
this.message = message;
return this;
}
public String getMessage() {
return this.message;
}
public GetPrometheusIntegrationResponseBody setRequestId(String requestId) {
this.requestId = requestId;
return this;
}
public String getRequestId() {
return this.requestId;
}
public static class GetPrometheusIntegrationResponseBodyData extends TeaModel {
/**
* Indicates whether the exporter can be deleted.
*
* example:
* true
*/
@NameInMap("CanDelete")
public Boolean canDelete;
/**
* Indicates whether the exporter can be modified.
*
* example:
* true
*/
@NameInMap("CanEditor")
public Boolean canEditor;
/**
* The ID of the Prometheus instance.
*
* example:
* c589a1b8db05c4561aefbb898ca8fb1cf
*/
@NameInMap("ClusterId")
public String clusterId;
/**
* The container name.
*
* example:
* kafka-exporter-1
*/
@NameInMap("ContainerName")
public String containerName;
/**
* The description of the exporter.
*
* example:
* "{}"
*/
@NameInMap("Describe")
public String describe;
/**
* The type of the exporter.
*
* example:
* tidb-exporter
*/
@NameInMap("ExporterType")
public String exporterType;
/**
* The ID of the exporter.
*
* example:
* 2893
*/
@NameInMap("InstanceId")
public Long instanceId;
/**
* The name of the exporter.
*
* example:
* lpd-skyeye
*/
@NameInMap("InstanceName")
public String instanceName;
/**
* The integration type. Valid values: kafka, mysql, redis, snmp, emr, nubela, and tidb.
*
* example:
* tidb
*/
@NameInMap("IntegrationType")
public String integrationType;
/**
* The namespace.
*
* example:
* arms-prom
*/
@NameInMap("Namespace")
public String namespace;
/**
* Indicates whether an upgrade is required.
*
* example:
* True
*/
@NameInMap("NeedUpgrade")
public Boolean needUpgrade;
/**
* The parameters of the exporter. Format: JSON string.
*
* example:
* {
* "port": "5554",
* "name": "kafka-test12",
* "kafka_instance": "kafka-test",
* "__label_value": "kafka-test",
* "scrape_interval": 33,
* "metrics_path": "/metrics",
* "__label_key": "kafka-test"
* }
*/
@NameInMap("Param")
public String param;
/**
* Indicates whether the description is displayed.
*
* example:
* true
*/
@NameInMap("ShowDescribe")
public Boolean showDescribe;
/**
* Indicates whether the exporter logs are displayed.
*
* example:
* true
*/
@NameInMap("ShowLog")
public String showLog;
/**
* The status of the exporter.
*
* example:
* installed
*/
@NameInMap("Status")
public String status;
/**
* The monitored IP address.
*
* example:
* 127.0.0.1:3422
*/
@NameInMap("Target")
public String target;
/**
* The version information.
*
* example:
* 1.0.0
*/
@NameInMap("Version")
public String version;
public static GetPrometheusIntegrationResponseBodyData build(java.util.Map map) throws Exception {
GetPrometheusIntegrationResponseBodyData self = new GetPrometheusIntegrationResponseBodyData();
return TeaModel.build(map, self);
}
public GetPrometheusIntegrationResponseBodyData setCanDelete(Boolean canDelete) {
this.canDelete = canDelete;
return this;
}
public Boolean getCanDelete() {
return this.canDelete;
}
public GetPrometheusIntegrationResponseBodyData setCanEditor(Boolean canEditor) {
this.canEditor = canEditor;
return this;
}
public Boolean getCanEditor() {
return this.canEditor;
}
public GetPrometheusIntegrationResponseBodyData setClusterId(String clusterId) {
this.clusterId = clusterId;
return this;
}
public String getClusterId() {
return this.clusterId;
}
public GetPrometheusIntegrationResponseBodyData setContainerName(String containerName) {
this.containerName = containerName;
return this;
}
public String getContainerName() {
return this.containerName;
}
public GetPrometheusIntegrationResponseBodyData setDescribe(String describe) {
this.describe = describe;
return this;
}
public String getDescribe() {
return this.describe;
}
public GetPrometheusIntegrationResponseBodyData setExporterType(String exporterType) {
this.exporterType = exporterType;
return this;
}
public String getExporterType() {
return this.exporterType;
}
public GetPrometheusIntegrationResponseBodyData setInstanceId(Long instanceId) {
this.instanceId = instanceId;
return this;
}
public Long getInstanceId() {
return this.instanceId;
}
public GetPrometheusIntegrationResponseBodyData setInstanceName(String instanceName) {
this.instanceName = instanceName;
return this;
}
public String getInstanceName() {
return this.instanceName;
}
public GetPrometheusIntegrationResponseBodyData setIntegrationType(String integrationType) {
this.integrationType = integrationType;
return this;
}
public String getIntegrationType() {
return this.integrationType;
}
public GetPrometheusIntegrationResponseBodyData setNamespace(String namespace) {
this.namespace = namespace;
return this;
}
public String getNamespace() {
return this.namespace;
}
public GetPrometheusIntegrationResponseBodyData setNeedUpgrade(Boolean needUpgrade) {
this.needUpgrade = needUpgrade;
return this;
}
public Boolean getNeedUpgrade() {
return this.needUpgrade;
}
public GetPrometheusIntegrationResponseBodyData setParam(String param) {
this.param = param;
return this;
}
public String getParam() {
return this.param;
}
public GetPrometheusIntegrationResponseBodyData setShowDescribe(Boolean showDescribe) {
this.showDescribe = showDescribe;
return this;
}
public Boolean getShowDescribe() {
return this.showDescribe;
}
public GetPrometheusIntegrationResponseBodyData setShowLog(String showLog) {
this.showLog = showLog;
return this;
}
public String getShowLog() {
return this.showLog;
}
public GetPrometheusIntegrationResponseBodyData setStatus(String status) {
this.status = status;
return this;
}
public String getStatus() {
return this.status;
}
public GetPrometheusIntegrationResponseBodyData setTarget(String target) {
this.target = target;
return this;
}
public String getTarget() {
return this.target;
}
public GetPrometheusIntegrationResponseBodyData setVersion(String version) {
this.version = version;
return this;
}
public String getVersion() {
return this.version;
}
}
}