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

com.tencentcloudapi.tke.v20180525.models.PrometheusAlertRule Maven / Gradle / Ivy

/*
 * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
 *
 * 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.tencentcloudapi.tke.v20180525.models;

import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;

public class PrometheusAlertRule extends AbstractModel{

    /**
    * 规则名称
    */
    @SerializedName("Name")
    @Expose
    private String Name;

    /**
    * prometheus语句
    */
    @SerializedName("Rule")
    @Expose
    private String Rule;

    /**
    * 额外标签
    */
    @SerializedName("Labels")
    @Expose
    private Label [] Labels;

    /**
    * 告警发送模板
    */
    @SerializedName("Template")
    @Expose
    private String Template;

    /**
    * 持续时间
    */
    @SerializedName("For")
    @Expose
    private String For;

    /**
    * 该条规则的描述信息
注意:此字段可能返回 null,表示取不到有效值。
    */
    @SerializedName("Describe")
    @Expose
    private String Describe;

    /**
     * Get 规则名称 
     * @return Name 规则名称
     */
    public String getName() {
        return this.Name;
    }

    /**
     * Set 规则名称
     * @param Name 规则名称
     */
    public void setName(String Name) {
        this.Name = Name;
    }

    /**
     * Get prometheus语句 
     * @return Rule prometheus语句
     */
    public String getRule() {
        return this.Rule;
    }

    /**
     * Set prometheus语句
     * @param Rule prometheus语句
     */
    public void setRule(String Rule) {
        this.Rule = Rule;
    }

    /**
     * Get 额外标签 
     * @return Labels 额外标签
     */
    public Label [] getLabels() {
        return this.Labels;
    }

    /**
     * Set 额外标签
     * @param Labels 额外标签
     */
    public void setLabels(Label [] Labels) {
        this.Labels = Labels;
    }

    /**
     * Get 告警发送模板 
     * @return Template 告警发送模板
     */
    public String getTemplate() {
        return this.Template;
    }

    /**
     * Set 告警发送模板
     * @param Template 告警发送模板
     */
    public void setTemplate(String Template) {
        this.Template = Template;
    }

    /**
     * Get 持续时间 
     * @return For 持续时间
     */
    public String getFor() {
        return this.For;
    }

    /**
     * Set 持续时间
     * @param For 持续时间
     */
    public void setFor(String For) {
        this.For = For;
    }

    /**
     * Get 该条规则的描述信息
注意:此字段可能返回 null,表示取不到有效值。 
     * @return Describe 该条规则的描述信息
注意:此字段可能返回 null,表示取不到有效值。
     */
    public String getDescribe() {
        return this.Describe;
    }

    /**
     * Set 该条规则的描述信息
注意:此字段可能返回 null,表示取不到有效值。
     * @param Describe 该条规则的描述信息
注意:此字段可能返回 null,表示取不到有效值。
     */
    public void setDescribe(String Describe) {
        this.Describe = Describe;
    }

    /**
     * Internal implementation, normal users should not use it.
     */
    public void toMap(HashMap map, String prefix) {
        this.setParamSimple(map, prefix + "Name", this.Name);
        this.setParamSimple(map, prefix + "Rule", this.Rule);
        this.setParamArrayObj(map, prefix + "Labels.", this.Labels);
        this.setParamSimple(map, prefix + "Template", this.Template);
        this.setParamSimple(map, prefix + "For", this.For);
        this.setParamSimple(map, prefix + "Describe", this.Describe);

    }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy