com.aliyuncs.arms.model.v20190808.CreatePrometheusAlertRuleRequest Maven / Gradle / Ivy
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.arms.model.v20190808;
import com.aliyuncs.RpcAcsRequest;
import com.aliyuncs.http.MethodType;
import com.aliyuncs.arms.Endpoint;
/**
* @author auto create
* @version
*/
public class CreatePrometheusAlertRuleRequest extends RpcAcsRequest {
private String expression;
private String alertName;
private String annotations;
private String clusterId;
private Long dispatchRuleId;
private String type;
private String message;
private String labels;
private String duration;
private String notifyType;
public CreatePrometheusAlertRuleRequest() {
super("ARMS", "2019-08-08", "CreatePrometheusAlertRule", "arms");
setMethod(MethodType.POST);
try {
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType);
} catch (Exception e) {}
}
public String getExpression() {
return this.expression;
}
public void setExpression(String expression) {
this.expression = expression;
if(expression != null){
putQueryParameter("Expression", expression);
}
}
public String getAlertName() {
return this.alertName;
}
public void setAlertName(String alertName) {
this.alertName = alertName;
if(alertName != null){
putQueryParameter("AlertName", alertName);
}
}
public String getAnnotations() {
return this.annotations;
}
public void setAnnotations(String annotations) {
this.annotations = annotations;
if(annotations != null){
putQueryParameter("Annotations", annotations);
}
}
public String getClusterId() {
return this.clusterId;
}
public void setClusterId(String clusterId) {
this.clusterId = clusterId;
if(clusterId != null){
putQueryParameter("ClusterId", clusterId);
}
}
public Long getDispatchRuleId() {
return this.dispatchRuleId;
}
public void setDispatchRuleId(Long dispatchRuleId) {
this.dispatchRuleId = dispatchRuleId;
if(dispatchRuleId != null){
putQueryParameter("DispatchRuleId", dispatchRuleId.toString());
}
}
public String getType() {
return this.type;
}
public void setType(String type) {
this.type = type;
if(type != null){
putQueryParameter("Type", type);
}
}
public String getMessage() {
return this.message;
}
public void setMessage(String message) {
this.message = message;
if(message != null){
putQueryParameter("Message", message);
}
}
public String getLabels() {
return this.labels;
}
public void setLabels(String labels) {
this.labels = labels;
if(labels != null){
putQueryParameter("Labels", labels);
}
}
public String getDuration() {
return this.duration;
}
public void setDuration(String duration) {
this.duration = duration;
if(duration != null){
putQueryParameter("Duration", duration);
}
}
public String getNotifyType() {
return this.notifyType;
}
public void setNotifyType(String notifyType) {
this.notifyType = notifyType;
if(notifyType != null){
putQueryParameter("NotifyType", notifyType);
}
}
@Override
public Class getResponseClass() {
return CreatePrometheusAlertRuleResponse.class;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy