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

com.tencentcloudapi.monitor.v20180724.models.DescribeAlertRulesRequest Maven / Gradle / Ivy

There is a newer version: 3.0.1076
Show newest version
/*
 * 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.monitor.v20180724.models;

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

public class DescribeAlertRulesRequest extends AbstractModel {

    /**
    * Prometheus instance ID
    */
    @SerializedName("InstanceId")
    @Expose
    private String InstanceId;

    /**
    * Number of returned results. Default value: 20. Maximum value: 100.
    */
    @SerializedName("Limit")
    @Expose
    private Long Limit;

    /**
    * Offset. Default value: 0.
    */
    @SerializedName("Offset")
    @Expose
    private Long Offset;

    /**
    * Rule ID
    */
    @SerializedName("RuleId")
    @Expose
    private String RuleId;

    /**
    * Rule status code. Valid values:
  • 2=RuleEnabled
  • 3=RuleDisabled
  • */ @SerializedName("RuleState") @Expose private Long RuleState; /** * Rule name */ @SerializedName("RuleName") @Expose private String RuleName; /** * Alerting rule template category */ @SerializedName("Type") @Expose private String Type; /** * Get Prometheus instance ID * @return InstanceId Prometheus instance ID */ public String getInstanceId() { return this.InstanceId; } /** * Set Prometheus instance ID * @param InstanceId Prometheus instance ID */ public void setInstanceId(String InstanceId) { this.InstanceId = InstanceId; } /** * Get Number of returned results. Default value: 20. Maximum value: 100. * @return Limit Number of returned results. Default value: 20. Maximum value: 100. */ public Long getLimit() { return this.Limit; } /** * Set Number of returned results. Default value: 20. Maximum value: 100. * @param Limit Number of returned results. Default value: 20. Maximum value: 100. */ public void setLimit(Long Limit) { this.Limit = Limit; } /** * Get Offset. Default value: 0. * @return Offset Offset. Default value: 0. */ public Long getOffset() { return this.Offset; } /** * Set Offset. Default value: 0. * @param Offset Offset. Default value: 0. */ public void setOffset(Long Offset) { this.Offset = Offset; } /** * Get Rule ID * @return RuleId Rule ID */ public String getRuleId() { return this.RuleId; } /** * Set Rule ID * @param RuleId Rule ID */ public void setRuleId(String RuleId) { this.RuleId = RuleId; } /** * Get Rule status code. Valid values:
  • 2=RuleEnabled
  • 3=RuleDisabled
  • * @return RuleState Rule status code. Valid values:
  • 2=RuleEnabled
  • 3=RuleDisabled
  • */ public Long getRuleState() { return this.RuleState; } /** * Set Rule status code. Valid values:
  • 2=RuleEnabled
  • 3=RuleDisabled
  • * @param RuleState Rule status code. Valid values:
  • 2=RuleEnabled
  • 3=RuleDisabled
  • */ public void setRuleState(Long RuleState) { this.RuleState = RuleState; } /** * Get Rule name * @return RuleName Rule name */ public String getRuleName() { return this.RuleName; } /** * Set Rule name * @param RuleName Rule name */ public void setRuleName(String RuleName) { this.RuleName = RuleName; } /** * Get Alerting rule template category * @return Type Alerting rule template category */ public String getType() { return this.Type; } /** * Set Alerting rule template category * @param Type Alerting rule template category */ public void setType(String Type) { this.Type = Type; } public DescribeAlertRulesRequest() { } /** * NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy, * and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy. */ public DescribeAlertRulesRequest(DescribeAlertRulesRequest source) { if (source.InstanceId != null) { this.InstanceId = new String(source.InstanceId); } if (source.Limit != null) { this.Limit = new Long(source.Limit); } if (source.Offset != null) { this.Offset = new Long(source.Offset); } if (source.RuleId != null) { this.RuleId = new String(source.RuleId); } if (source.RuleState != null) { this.RuleState = new Long(source.RuleState); } if (source.RuleName != null) { this.RuleName = new String(source.RuleName); } if (source.Type != null) { this.Type = new String(source.Type); } } /** * Internal implementation, normal users should not use it. */ public void toMap(HashMap map, String prefix) { this.setParamSimple(map, prefix + "InstanceId", this.InstanceId); this.setParamSimple(map, prefix + "Limit", this.Limit); this.setParamSimple(map, prefix + "Offset", this.Offset); this.setParamSimple(map, prefix + "RuleId", this.RuleId); this.setParamSimple(map, prefix + "RuleState", this.RuleState); this.setParamSimple(map, prefix + "RuleName", this.RuleName); this.setParamSimple(map, prefix + "Type", this.Type); } }




    © 2015 - 2025 Weber Informatics LLC | Privacy Policy