com.aliyun.arms20190808.models.DescribeAddonMetricsResponseBody 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 DescribeAddonMetricsResponseBody extends TeaModel {
/**
* The HTTP status code. The status code 200 indicates that the request was successful.
*
* example:
* 200
*/
@NameInMap("Code")
public Integer code;
/**
* The metric details.
*/
@NameInMap("Data")
public java.util.List data;
/**
* The returned message.
*
* example:
* success
*/
@NameInMap("Message")
public String message;
/**
* Id of the request
*
* example:
* B6A00968-82A8-4F14-9D1B-B53827DB****
*/
@NameInMap("RequestId")
public String requestId;
/**
* Indicates whether the request was successful.
*
* example:
* true
*/
@NameInMap("Success")
public Boolean success;
public static DescribeAddonMetricsResponseBody build(java.util.Map map) throws Exception {
DescribeAddonMetricsResponseBody self = new DescribeAddonMetricsResponseBody();
return TeaModel.build(map, self);
}
public DescribeAddonMetricsResponseBody setCode(Integer code) {
this.code = code;
return this;
}
public Integer getCode() {
return this.code;
}
public DescribeAddonMetricsResponseBody setData(java.util.List data) {
this.data = data;
return this;
}
public java.util.List getData() {
return this.data;
}
public DescribeAddonMetricsResponseBody setMessage(String message) {
this.message = message;
return this;
}
public String getMessage() {
return this.message;
}
public DescribeAddonMetricsResponseBody setRequestId(String requestId) {
this.requestId = requestId;
return this;
}
public String getRequestId() {
return this.requestId;
}
public DescribeAddonMetricsResponseBody setSuccess(Boolean success) {
this.success = success;
return this;
}
public Boolean getSuccess() {
return this.success;
}
public static class DescribeAddonMetricsResponseBodyDataLabels extends TeaModel {
/**
* The description of the tag.
*
* example:
* The number of times a B-tree page of size PAGE_SIZE was successfully compressed.
*/
@NameInMap("Description")
public String description;
/**
* The tag key.
*
* example:
* page_size
*/
@NameInMap("Key")
public String key;
/**
* The source of the tag.
*
* example:
* db
*/
@NameInMap("Source")
public String source;
public static DescribeAddonMetricsResponseBodyDataLabels build(java.util.Map map) throws Exception {
DescribeAddonMetricsResponseBodyDataLabels self = new DescribeAddonMetricsResponseBodyDataLabels();
return TeaModel.build(map, self);
}
public DescribeAddonMetricsResponseBodyDataLabels setDescription(String description) {
this.description = description;
return this;
}
public String getDescription() {
return this.description;
}
public DescribeAddonMetricsResponseBodyDataLabels setKey(String key) {
this.key = key;
return this;
}
public String getKey() {
return this.key;
}
public DescribeAddonMetricsResponseBodyDataLabels setSource(String source) {
this.source = source;
return this;
}
public String getSource() {
return this.source;
}
}
public static class DescribeAddonMetricsResponseBodyDataMetricsLabels extends TeaModel {
/**
* The description of the tag.
*
* example:
* PAGE_SIZE
*/
@NameInMap("Description")
public String description;
/**
* The tag key.
*
* example:
* page_size
*/
@NameInMap("Key")
public String key;
/**
* The source of the tag.
*
* example:
* db
*/
@NameInMap("Source")
public String source;
public static DescribeAddonMetricsResponseBodyDataMetricsLabels build(java.util.Map map) throws Exception {
DescribeAddonMetricsResponseBodyDataMetricsLabels self = new DescribeAddonMetricsResponseBodyDataMetricsLabels();
return TeaModel.build(map, self);
}
public DescribeAddonMetricsResponseBodyDataMetricsLabels setDescription(String description) {
this.description = description;
return this;
}
public String getDescription() {
return this.description;
}
public DescribeAddonMetricsResponseBodyDataMetricsLabels setKey(String key) {
this.key = key;
return this;
}
public String getKey() {
return this.key;
}
public DescribeAddonMetricsResponseBodyDataMetricsLabels setSource(String source) {
this.source = source;
return this;
}
public String getSource() {
return this.source;
}
}
public static class DescribeAddonMetricsResponseBodyDataMetrics extends TeaModel {
/**
* The description of the metric.
*
* example:
* The number of times a B-tree page of size PAGE_SIZE was successfully compressed.
*/
@NameInMap("Description")
public String description;
/**
* The tags.
*/
@NameInMap("Labels")
public java.util.List labels;
/**
* The metric name.
*
* example:
* mysql_exporter_collector_duration_seconds
*/
@NameInMap("Metric")
public String metric;
/**
* The type of the metric.
*
* example:
* GAUGE
*/
@NameInMap("Type")
public String type;
/**
* The unit of the metric.
*
* example:
* bytes
*/
@NameInMap("Unit")
public String unit;
public static DescribeAddonMetricsResponseBodyDataMetrics build(java.util.Map map) throws Exception {
DescribeAddonMetricsResponseBodyDataMetrics self = new DescribeAddonMetricsResponseBodyDataMetrics();
return TeaModel.build(map, self);
}
public DescribeAddonMetricsResponseBodyDataMetrics setDescription(String description) {
this.description = description;
return this;
}
public String getDescription() {
return this.description;
}
public DescribeAddonMetricsResponseBodyDataMetrics setLabels(java.util.List labels) {
this.labels = labels;
return this;
}
public java.util.List getLabels() {
return this.labels;
}
public DescribeAddonMetricsResponseBodyDataMetrics setMetric(String metric) {
this.metric = metric;
return this;
}
public String getMetric() {
return this.metric;
}
public DescribeAddonMetricsResponseBodyDataMetrics setType(String type) {
this.type = type;
return this;
}
public String getType() {
return this.type;
}
public DescribeAddonMetricsResponseBodyDataMetrics setUnit(String unit) {
this.unit = unit;
return this;
}
public String getUnit() {
return this.unit;
}
}
public static class DescribeAddonMetricsResponseBodyData extends TeaModel {
/**
* The metric group.
*
* example:
* Common
*/
@NameInMap("Group")
public String group;
/**
* The tags.
*/
@NameInMap("Labels")
public java.util.List labels;
/**
* The metrics.
*/
@NameInMap("Metrics")
public java.util.List metrics;
public static DescribeAddonMetricsResponseBodyData build(java.util.Map map) throws Exception {
DescribeAddonMetricsResponseBodyData self = new DescribeAddonMetricsResponseBodyData();
return TeaModel.build(map, self);
}
public DescribeAddonMetricsResponseBodyData setGroup(String group) {
this.group = group;
return this;
}
public String getGroup() {
return this.group;
}
public DescribeAddonMetricsResponseBodyData setLabels(java.util.List labels) {
this.labels = labels;
return this;
}
public java.util.List getLabels() {
return this.labels;
}
public DescribeAddonMetricsResponseBodyData setMetrics(java.util.List metrics) {
this.metrics = metrics;
return this;
}
public java.util.List getMetrics() {
return this.metrics;
}
}
}