com.aliyun.arms20190808.models.UpdatePrometheusAlertRuleResponseBody Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of arms20190808 Show documentation
Show all versions of arms20190808 Show documentation
Alibaba Cloud Application Real-Time Monitoring Service (20190808) SDK for Java
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.arms20190808.models;
import com.aliyun.tea.*;
public class UpdatePrometheusAlertRuleResponseBody extends TeaModel {
/**
* The HTTP status code. The status code 200 indicates that the request was successful. Other status codes indicate that the request failed.
*
* example:
* 200
*/
@NameInMap("Code")
public Long code;
/**
* The returned message.
*
* example:
* success
*/
@NameInMap("Message")
public String message;
@NameInMap("PrometheusAlertRule")
public UpdatePrometheusAlertRuleResponseBodyPrometheusAlertRule prometheusAlertRule;
/**
* example:
* 9FEA6D00-317F-45E3-9004-7FB8B0B7****
*/
@NameInMap("RequestId")
public String requestId;
/**
* Indicates whether the request was successful. Valid values:
*
* true
* false
*
*
* example:
* True
*/
@NameInMap("Success")
public Boolean success;
public static UpdatePrometheusAlertRuleResponseBody build(java.util.Map map) throws Exception {
UpdatePrometheusAlertRuleResponseBody self = new UpdatePrometheusAlertRuleResponseBody();
return TeaModel.build(map, self);
}
public UpdatePrometheusAlertRuleResponseBody setCode(Long code) {
this.code = code;
return this;
}
public Long getCode() {
return this.code;
}
public UpdatePrometheusAlertRuleResponseBody setMessage(String message) {
this.message = message;
return this;
}
public String getMessage() {
return this.message;
}
public UpdatePrometheusAlertRuleResponseBody setPrometheusAlertRule(UpdatePrometheusAlertRuleResponseBodyPrometheusAlertRule prometheusAlertRule) {
this.prometheusAlertRule = prometheusAlertRule;
return this;
}
public UpdatePrometheusAlertRuleResponseBodyPrometheusAlertRule getPrometheusAlertRule() {
return this.prometheusAlertRule;
}
public UpdatePrometheusAlertRuleResponseBody setRequestId(String requestId) {
this.requestId = requestId;
return this;
}
public String getRequestId() {
return this.requestId;
}
public UpdatePrometheusAlertRuleResponseBody setSuccess(Boolean success) {
this.success = success;
return this;
}
public Boolean getSuccess() {
return this.success;
}
public static class UpdatePrometheusAlertRuleResponseBodyPrometheusAlertRuleAnnotations extends TeaModel {
/**
* example:
* message
*/
@NameInMap("Name")
public String name;
@NameInMap("Value")
public String value;
public static UpdatePrometheusAlertRuleResponseBodyPrometheusAlertRuleAnnotations build(java.util.Map map) throws Exception {
UpdatePrometheusAlertRuleResponseBodyPrometheusAlertRuleAnnotations self = new UpdatePrometheusAlertRuleResponseBodyPrometheusAlertRuleAnnotations();
return TeaModel.build(map, self);
}
public UpdatePrometheusAlertRuleResponseBodyPrometheusAlertRuleAnnotations setName(String name) {
this.name = name;
return this;
}
public String getName() {
return this.name;
}
public UpdatePrometheusAlertRuleResponseBodyPrometheusAlertRuleAnnotations setValue(String value) {
this.value = value;
return this;
}
public String getValue() {
return this.value;
}
}
public static class UpdatePrometheusAlertRuleResponseBodyPrometheusAlertRuleLabels extends TeaModel {
/**
* example:
* severity
*/
@NameInMap("Name")
public String name;
/**
* example:
* critical
*/
@NameInMap("Value")
public String value;
public static UpdatePrometheusAlertRuleResponseBodyPrometheusAlertRuleLabels build(java.util.Map map) throws Exception {
UpdatePrometheusAlertRuleResponseBodyPrometheusAlertRuleLabels self = new UpdatePrometheusAlertRuleResponseBodyPrometheusAlertRuleLabels();
return TeaModel.build(map, self);
}
public UpdatePrometheusAlertRuleResponseBodyPrometheusAlertRuleLabels setName(String name) {
this.name = name;
return this;
}
public String getName() {
return this.name;
}
public UpdatePrometheusAlertRuleResponseBodyPrometheusAlertRuleLabels setValue(String value) {
this.value = value;
return this;
}
public String getValue() {
return this.value;
}
}
public static class UpdatePrometheusAlertRuleResponseBodyPrometheusAlertRule extends TeaModel {
/**
* example:
* 3888704
*/
@NameInMap("AlertId")
public Long alertId;
/**
* example:
* Prometheus_Alert
*/
@NameInMap("AlertName")
public String alertName;
@NameInMap("Annotations")
public java.util.List annotations;
/**
* example:
* c0bad479465464e1d8c1e641b0afb****
*/
@NameInMap("ClusterId")
public String clusterId;
/**
* example:
* 10282
*/
@NameInMap("DispatchRuleId")
public Long dispatchRuleId;
/**
* example:
* 1
*/
@NameInMap("Duration")
public String duration;
/**
* example:
* 100 * (sum(rate(container_cpu_usage_seconds_total[1m])) by (pod_name) / sum(label_replace(kube_pod_container_resource_limits_cpu_cores, \"pod_name\", \"$1\", \"pod\", \"(.*)\")) by (pod_name))>75
*/
@NameInMap("Expression")
public String expression;
@NameInMap("Labels")
public java.util.List labels;
@NameInMap("Message")
public String message;
/**
* example:
* ALERT_MANAGER
*/
@NameInMap("NotifyType")
public String notifyType;
/**
* example:
* 1
*/
@NameInMap("Status")
public Integer status;
@NameInMap("Type")
public String type;
public static UpdatePrometheusAlertRuleResponseBodyPrometheusAlertRule build(java.util.Map map) throws Exception {
UpdatePrometheusAlertRuleResponseBodyPrometheusAlertRule self = new UpdatePrometheusAlertRuleResponseBodyPrometheusAlertRule();
return TeaModel.build(map, self);
}
public UpdatePrometheusAlertRuleResponseBodyPrometheusAlertRule setAlertId(Long alertId) {
this.alertId = alertId;
return this;
}
public Long getAlertId() {
return this.alertId;
}
public UpdatePrometheusAlertRuleResponseBodyPrometheusAlertRule setAlertName(String alertName) {
this.alertName = alertName;
return this;
}
public String getAlertName() {
return this.alertName;
}
public UpdatePrometheusAlertRuleResponseBodyPrometheusAlertRule setAnnotations(java.util.List annotations) {
this.annotations = annotations;
return this;
}
public java.util.List getAnnotations() {
return this.annotations;
}
public UpdatePrometheusAlertRuleResponseBodyPrometheusAlertRule setClusterId(String clusterId) {
this.clusterId = clusterId;
return this;
}
public String getClusterId() {
return this.clusterId;
}
public UpdatePrometheusAlertRuleResponseBodyPrometheusAlertRule setDispatchRuleId(Long dispatchRuleId) {
this.dispatchRuleId = dispatchRuleId;
return this;
}
public Long getDispatchRuleId() {
return this.dispatchRuleId;
}
public UpdatePrometheusAlertRuleResponseBodyPrometheusAlertRule setDuration(String duration) {
this.duration = duration;
return this;
}
public String getDuration() {
return this.duration;
}
public UpdatePrometheusAlertRuleResponseBodyPrometheusAlertRule setExpression(String expression) {
this.expression = expression;
return this;
}
public String getExpression() {
return this.expression;
}
public UpdatePrometheusAlertRuleResponseBodyPrometheusAlertRule setLabels(java.util.List labels) {
this.labels = labels;
return this;
}
public java.util.List getLabels() {
return this.labels;
}
public UpdatePrometheusAlertRuleResponseBodyPrometheusAlertRule setMessage(String message) {
this.message = message;
return this;
}
public String getMessage() {
return this.message;
}
public UpdatePrometheusAlertRuleResponseBodyPrometheusAlertRule setNotifyType(String notifyType) {
this.notifyType = notifyType;
return this;
}
public String getNotifyType() {
return this.notifyType;
}
public UpdatePrometheusAlertRuleResponseBodyPrometheusAlertRule setStatus(Integer status) {
this.status = status;
return this;
}
public Integer getStatus() {
return this.status;
}
public UpdatePrometheusAlertRuleResponseBodyPrometheusAlertRule setType(String type) {
this.type = type;
return this;
}
public String getType() {
return this.type;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy