All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aliyun.arms20190808.models.CreatePrometheusAlertRuleResponseBody Maven / Gradle / Ivy

Go to download

Alibaba Cloud Application Real-Time Monitoring Service (20190808) SDK for Java

There is a newer version: 9.1.1
Show newest version
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.arms20190808.models;

import com.aliyun.tea.*;

public class CreatePrometheusAlertRuleResponseBody extends TeaModel {
    @NameInMap("Code")
    public Long code;

    @NameInMap("Message")
    public String message;

    @NameInMap("PrometheusAlertRule")
    public CreatePrometheusAlertRuleResponseBodyPrometheusAlertRule prometheusAlertRule;

    /**
     * example:
     * 

9FEA6D00-317F-45E3-9004-7FB8B0B7****

*/ @NameInMap("RequestId") public String requestId; @NameInMap("Success") public Boolean success; public static CreatePrometheusAlertRuleResponseBody build(java.util.Map map) throws Exception { CreatePrometheusAlertRuleResponseBody self = new CreatePrometheusAlertRuleResponseBody(); return TeaModel.build(map, self); } public CreatePrometheusAlertRuleResponseBody setCode(Long code) { this.code = code; return this; } public Long getCode() { return this.code; } public CreatePrometheusAlertRuleResponseBody setMessage(String message) { this.message = message; return this; } public String getMessage() { return this.message; } public CreatePrometheusAlertRuleResponseBody setPrometheusAlertRule(CreatePrometheusAlertRuleResponseBodyPrometheusAlertRule prometheusAlertRule) { this.prometheusAlertRule = prometheusAlertRule; return this; } public CreatePrometheusAlertRuleResponseBodyPrometheusAlertRule getPrometheusAlertRule() { return this.prometheusAlertRule; } public CreatePrometheusAlertRuleResponseBody setRequestId(String requestId) { this.requestId = requestId; return this; } public String getRequestId() { return this.requestId; } public CreatePrometheusAlertRuleResponseBody setSuccess(Boolean success) { this.success = success; return this; } public Boolean getSuccess() { return this.success; } public static class CreatePrometheusAlertRuleResponseBodyPrometheusAlertRuleAnnotations extends TeaModel { /** * example: *

message

*/ @NameInMap("Name") public String name; @NameInMap("Value") public String value; public static CreatePrometheusAlertRuleResponseBodyPrometheusAlertRuleAnnotations build(java.util.Map map) throws Exception { CreatePrometheusAlertRuleResponseBodyPrometheusAlertRuleAnnotations self = new CreatePrometheusAlertRuleResponseBodyPrometheusAlertRuleAnnotations(); return TeaModel.build(map, self); } public CreatePrometheusAlertRuleResponseBodyPrometheusAlertRuleAnnotations setName(String name) { this.name = name; return this; } public String getName() { return this.name; } public CreatePrometheusAlertRuleResponseBodyPrometheusAlertRuleAnnotations setValue(String value) { this.value = value; return this; } public String getValue() { return this.value; } } public static class CreatePrometheusAlertRuleResponseBodyPrometheusAlertRuleLabels extends TeaModel { /** * example: *

severity

*/ @NameInMap("Name") public String name; /** * example: *

critical

*/ @NameInMap("Value") public String value; public static CreatePrometheusAlertRuleResponseBodyPrometheusAlertRuleLabels build(java.util.Map map) throws Exception { CreatePrometheusAlertRuleResponseBodyPrometheusAlertRuleLabels self = new CreatePrometheusAlertRuleResponseBodyPrometheusAlertRuleLabels(); return TeaModel.build(map, self); } public CreatePrometheusAlertRuleResponseBodyPrometheusAlertRuleLabels setName(String name) { this.name = name; return this; } public String getName() { return this.name; } public CreatePrometheusAlertRuleResponseBodyPrometheusAlertRuleLabels setValue(String value) { this.value = value; return this; } public String getValue() { return this.value; } } public static class CreatePrometheusAlertRuleResponseBodyPrometheusAlertRule 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; @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 CreatePrometheusAlertRuleResponseBodyPrometheusAlertRule build(java.util.Map map) throws Exception { CreatePrometheusAlertRuleResponseBodyPrometheusAlertRule self = new CreatePrometheusAlertRuleResponseBodyPrometheusAlertRule(); return TeaModel.build(map, self); } public CreatePrometheusAlertRuleResponseBodyPrometheusAlertRule setAlertId(Long alertId) { this.alertId = alertId; return this; } public Long getAlertId() { return this.alertId; } public CreatePrometheusAlertRuleResponseBodyPrometheusAlertRule setAlertName(String alertName) { this.alertName = alertName; return this; } public String getAlertName() { return this.alertName; } public CreatePrometheusAlertRuleResponseBodyPrometheusAlertRule setAnnotations(java.util.List annotations) { this.annotations = annotations; return this; } public java.util.List getAnnotations() { return this.annotations; } public CreatePrometheusAlertRuleResponseBodyPrometheusAlertRule setClusterId(String clusterId) { this.clusterId = clusterId; return this; } public String getClusterId() { return this.clusterId; } public CreatePrometheusAlertRuleResponseBodyPrometheusAlertRule setDispatchRuleId(Long dispatchRuleId) { this.dispatchRuleId = dispatchRuleId; return this; } public Long getDispatchRuleId() { return this.dispatchRuleId; } public CreatePrometheusAlertRuleResponseBodyPrometheusAlertRule setDuration(String duration) { this.duration = duration; return this; } public String getDuration() { return this.duration; } public CreatePrometheusAlertRuleResponseBodyPrometheusAlertRule setExpression(String expression) { this.expression = expression; return this; } public String getExpression() { return this.expression; } public CreatePrometheusAlertRuleResponseBodyPrometheusAlertRule setLabels(java.util.List labels) { this.labels = labels; return this; } public java.util.List getLabels() { return this.labels; } public CreatePrometheusAlertRuleResponseBodyPrometheusAlertRule setMessage(String message) { this.message = message; return this; } public String getMessage() { return this.message; } public CreatePrometheusAlertRuleResponseBodyPrometheusAlertRule setNotifyType(String notifyType) { this.notifyType = notifyType; return this; } public String getNotifyType() { return this.notifyType; } public CreatePrometheusAlertRuleResponseBodyPrometheusAlertRule setStatus(Integer status) { this.status = status; return this; } public Integer getStatus() { return this.status; } public CreatePrometheusAlertRuleResponseBodyPrometheusAlertRule setType(String type) { this.type = type; return this; } public String getType() { return this.type; } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy