![JAR search and dependency download from the Maven repository](/logo.png)
com.tencentcloudapi.monitor.v20180724.models.AlarmPolicyRule Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tencentcloud-sdk-java-intl-en Show documentation
Show all versions of tencentcloud-sdk-java-intl-en Show documentation
Tencent Cloud API SDK for Java
/*
* 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 AlarmPolicyRule extends AbstractModel {
/**
* Metric name or event name. The supported metrics can be queried via [DescribeAlarmMetrics](https://intl.cloud.tencent.com/document/product/248/51283?from_cn_redirect=1) and the supported events via [DescribeAlarmEvents](https://intl.cloud.tencent.com/document/product/248/51284?from_cn_redirect=1).
Note: this field may return `null`, indicating that no valid value is obtained.
*/
@SerializedName("MetricName")
@Expose
private String MetricName;
/**
* Statistical period in seconds. The valid values can be queried via [DescribeAlarmMetrics](https://intl.cloud.tencent.com/document/product/248/51283?from_cn_redirect=1).
Note: this field may return `null`, indicating that no valid value is obtained.
*/
@SerializedName("Period")
@Expose
private Long Period;
/**
* Operator
intelligent = intelligent detection without threshold
eq = equal to
ge = greater than or equal to
gt = greater than
le = less than or equal to
lt = less than
ne = not equal to
day_increase = day-on-day increase
day_decrease = day-on-day decrease
day_wave = day-on-day fluctuation
week_increase = week-on-week increase
week_decrease = week-on-week decrease
week_wave = week-on-week fluctuation
cycle_increase = cyclical increase
cycle_decrease = cyclical decrease
cycle_wave = cyclical fluctuation
re = regex match
The valid values can be queried via [DescribeAlarmMetrics](https://intl.cloud.tencent.com/document/product/248/51283?from_cn_redirect=1).
Note: this field may return `null`, indicating that no valid value is obtained.
*/
@SerializedName("Operator")
@Expose
private String Operator;
/**
* Threshold. The valid value range can be queried via [DescribeAlarmMetrics](https://intl.cloud.tencent.com/document/product/248/51283?from_cn_redirect=1).
Note: this field may return `null`, indicating that no valid value is obtained.
*/
@SerializedName("Value")
@Expose
private String Value;
/**
* Number of periods. `1`: continue for one period; `2`: continue for two periods; and so on. The valid values can be queried via [DescribeAlarmMetrics](https://intl.cloud.tencent.com/document/product/248/51283?from_cn_redirect=1).
Note: this field may return `null`, indicating that no valid value is obtained.
*/
@SerializedName("ContinuePeriod")
@Expose
private Long ContinuePeriod;
/**
* Alarm interval in seconds. Valid values: 0 (do not repeat), 300 (alarm once every 5 minutes), 600 (alarm once every 10 minutes), 900 (alarm once every 15 minutes), 1800 (alarm once every 30 minutes), 3600 (alarm once every hour), 7200 (alarm once every 2 hours), 10800 (alarm once every 3 hours), 21600 (alarm once every 6 hours), 43200 (alarm once every 12 hours), 86400 (alarm once every day)
Note: this field may return null, indicating that no valid values can be obtained.
*/
@SerializedName("NoticeFrequency")
@Expose
private Long NoticeFrequency;
/**
* Whether the alarm frequency increases exponentially. Valid values: 0 (no), 1 (yes)
Note: this field may return null, indicating that no valid values can be obtained.
*/
@SerializedName("IsPowerNotice")
@Expose
private Long IsPowerNotice;
/**
* Filter condition for one single trigger rule
Note: this field may return null, indicating that no valid values can be obtained.
*/
@SerializedName("Filter")
@Expose
private AlarmPolicyFilter Filter;
/**
* Metric display name, which is used in the output parameter
Note: this field may return null, indicating that no valid values can be obtained.
*/
@SerializedName("Description")
@Expose
private String Description;
/**
* Unit, which is used in the output parameter
Note: this field may return null, indicating that no valid values can be obtained.
*/
@SerializedName("Unit")
@Expose
private String Unit;
/**
* Trigger condition type. `STATIC`: static threshold; `dynamic`: dynamic threshold. If you do not specify this parameter when creating or editing a policy, `STATIC` is used by default.
Note: this field may return `null`, indicating that no valid value is obtained.
*/
@SerializedName("RuleType")
@Expose
private String RuleType;
/**
* Whether it is an advanced metric. 0: No; 1: Yes.
Note: This field may return `null`, indicating that no valid values can be obtained.
*/
@SerializedName("IsAdvanced")
@Expose
private Long IsAdvanced;
/**
* Whether the advanced metric feature is enabled. 0: No; 1: Yes.
Note: This field may return `null`, indicating that no valid values can be obtained.
*/
@SerializedName("IsOpen")
@Expose
private Long IsOpen;
/**
* Integration center product ID.
Note: This field may return `null`, indicating that no valid values can be obtained.
*/
@SerializedName("ProductId")
@Expose
private String ProductId;
/**
* Maximum value
Note: This field may return null, indicating that no valid values can be obtained.
*/
@SerializedName("ValueMax")
@Expose
private Float ValueMax;
/**
* Minimum value
Note: This field may return null, indicating that no valid values can be obtained.
*/
@SerializedName("ValueMin")
@Expose
private Float ValueMin;
/**
* The configuration of alarm level threshold
Note: This field may return null, indicating that no valid values can be obtained.
*/
@SerializedName("HierarchicalValue")
@Expose
private AlarmHierarchicalValue HierarchicalValue;
/**
* Get Metric name or event name. The supported metrics can be queried via [DescribeAlarmMetrics](https://intl.cloud.tencent.com/document/product/248/51283?from_cn_redirect=1) and the supported events via [DescribeAlarmEvents](https://intl.cloud.tencent.com/document/product/248/51284?from_cn_redirect=1).
Note: this field may return `null`, indicating that no valid value is obtained.
* @return MetricName Metric name or event name. The supported metrics can be queried via [DescribeAlarmMetrics](https://intl.cloud.tencent.com/document/product/248/51283?from_cn_redirect=1) and the supported events via [DescribeAlarmEvents](https://intl.cloud.tencent.com/document/product/248/51284?from_cn_redirect=1).
Note: this field may return `null`, indicating that no valid value is obtained.
*/
public String getMetricName() {
return this.MetricName;
}
/**
* Set Metric name or event name. The supported metrics can be queried via [DescribeAlarmMetrics](https://intl.cloud.tencent.com/document/product/248/51283?from_cn_redirect=1) and the supported events via [DescribeAlarmEvents](https://intl.cloud.tencent.com/document/product/248/51284?from_cn_redirect=1).
Note: this field may return `null`, indicating that no valid value is obtained.
* @param MetricName Metric name or event name. The supported metrics can be queried via [DescribeAlarmMetrics](https://intl.cloud.tencent.com/document/product/248/51283?from_cn_redirect=1) and the supported events via [DescribeAlarmEvents](https://intl.cloud.tencent.com/document/product/248/51284?from_cn_redirect=1).
Note: this field may return `null`, indicating that no valid value is obtained.
*/
public void setMetricName(String MetricName) {
this.MetricName = MetricName;
}
/**
* Get Statistical period in seconds. The valid values can be queried via [DescribeAlarmMetrics](https://intl.cloud.tencent.com/document/product/248/51283?from_cn_redirect=1).
Note: this field may return `null`, indicating that no valid value is obtained.
* @return Period Statistical period in seconds. The valid values can be queried via [DescribeAlarmMetrics](https://intl.cloud.tencent.com/document/product/248/51283?from_cn_redirect=1).
Note: this field may return `null`, indicating that no valid value is obtained.
*/
public Long getPeriod() {
return this.Period;
}
/**
* Set Statistical period in seconds. The valid values can be queried via [DescribeAlarmMetrics](https://intl.cloud.tencent.com/document/product/248/51283?from_cn_redirect=1).
Note: this field may return `null`, indicating that no valid value is obtained.
* @param Period Statistical period in seconds. The valid values can be queried via [DescribeAlarmMetrics](https://intl.cloud.tencent.com/document/product/248/51283?from_cn_redirect=1).
Note: this field may return `null`, indicating that no valid value is obtained.
*/
public void setPeriod(Long Period) {
this.Period = Period;
}
/**
* Get Operator
intelligent = intelligent detection without threshold
eq = equal to
ge = greater than or equal to
gt = greater than
le = less than or equal to
lt = less than
ne = not equal to
day_increase = day-on-day increase
day_decrease = day-on-day decrease
day_wave = day-on-day fluctuation
week_increase = week-on-week increase
week_decrease = week-on-week decrease
week_wave = week-on-week fluctuation
cycle_increase = cyclical increase
cycle_decrease = cyclical decrease
cycle_wave = cyclical fluctuation
re = regex match
The valid values can be queried via [DescribeAlarmMetrics](https://intl.cloud.tencent.com/document/product/248/51283?from_cn_redirect=1).
Note: this field may return `null`, indicating that no valid value is obtained.
* @return Operator Operator
intelligent = intelligent detection without threshold
eq = equal to
ge = greater than or equal to
gt = greater than
le = less than or equal to
lt = less than
ne = not equal to
day_increase = day-on-day increase
day_decrease = day-on-day decrease
day_wave = day-on-day fluctuation
week_increase = week-on-week increase
week_decrease = week-on-week decrease
week_wave = week-on-week fluctuation
cycle_increase = cyclical increase
cycle_decrease = cyclical decrease
cycle_wave = cyclical fluctuation
re = regex match
The valid values can be queried via [DescribeAlarmMetrics](https://intl.cloud.tencent.com/document/product/248/51283?from_cn_redirect=1).
Note: this field may return `null`, indicating that no valid value is obtained.
*/
public String getOperator() {
return this.Operator;
}
/**
* Set Operator
intelligent = intelligent detection without threshold
eq = equal to
ge = greater than or equal to
gt = greater than
le = less than or equal to
lt = less than
ne = not equal to
day_increase = day-on-day increase
day_decrease = day-on-day decrease
day_wave = day-on-day fluctuation
week_increase = week-on-week increase
week_decrease = week-on-week decrease
week_wave = week-on-week fluctuation
cycle_increase = cyclical increase
cycle_decrease = cyclical decrease
cycle_wave = cyclical fluctuation
re = regex match
The valid values can be queried via [DescribeAlarmMetrics](https://intl.cloud.tencent.com/document/product/248/51283?from_cn_redirect=1).
Note: this field may return `null`, indicating that no valid value is obtained.
* @param Operator Operator
intelligent = intelligent detection without threshold
eq = equal to
ge = greater than or equal to
gt = greater than
le = less than or equal to
lt = less than
ne = not equal to
day_increase = day-on-day increase
day_decrease = day-on-day decrease
day_wave = day-on-day fluctuation
week_increase = week-on-week increase
week_decrease = week-on-week decrease
week_wave = week-on-week fluctuation
cycle_increase = cyclical increase
cycle_decrease = cyclical decrease
cycle_wave = cyclical fluctuation
re = regex match
The valid values can be queried via [DescribeAlarmMetrics](https://intl.cloud.tencent.com/document/product/248/51283?from_cn_redirect=1).
Note: this field may return `null`, indicating that no valid value is obtained.
*/
public void setOperator(String Operator) {
this.Operator = Operator;
}
/**
* Get Threshold. The valid value range can be queried via [DescribeAlarmMetrics](https://intl.cloud.tencent.com/document/product/248/51283?from_cn_redirect=1).
Note: this field may return `null`, indicating that no valid value is obtained.
* @return Value Threshold. The valid value range can be queried via [DescribeAlarmMetrics](https://intl.cloud.tencent.com/document/product/248/51283?from_cn_redirect=1).
Note: this field may return `null`, indicating that no valid value is obtained.
*/
public String getValue() {
return this.Value;
}
/**
* Set Threshold. The valid value range can be queried via [DescribeAlarmMetrics](https://intl.cloud.tencent.com/document/product/248/51283?from_cn_redirect=1).
Note: this field may return `null`, indicating that no valid value is obtained.
* @param Value Threshold. The valid value range can be queried via [DescribeAlarmMetrics](https://intl.cloud.tencent.com/document/product/248/51283?from_cn_redirect=1).
Note: this field may return `null`, indicating that no valid value is obtained.
*/
public void setValue(String Value) {
this.Value = Value;
}
/**
* Get Number of periods. `1`: continue for one period; `2`: continue for two periods; and so on. The valid values can be queried via [DescribeAlarmMetrics](https://intl.cloud.tencent.com/document/product/248/51283?from_cn_redirect=1).
Note: this field may return `null`, indicating that no valid value is obtained.
* @return ContinuePeriod Number of periods. `1`: continue for one period; `2`: continue for two periods; and so on. The valid values can be queried via [DescribeAlarmMetrics](https://intl.cloud.tencent.com/document/product/248/51283?from_cn_redirect=1).
Note: this field may return `null`, indicating that no valid value is obtained.
*/
public Long getContinuePeriod() {
return this.ContinuePeriod;
}
/**
* Set Number of periods. `1`: continue for one period; `2`: continue for two periods; and so on. The valid values can be queried via [DescribeAlarmMetrics](https://intl.cloud.tencent.com/document/product/248/51283?from_cn_redirect=1).
Note: this field may return `null`, indicating that no valid value is obtained.
* @param ContinuePeriod Number of periods. `1`: continue for one period; `2`: continue for two periods; and so on. The valid values can be queried via [DescribeAlarmMetrics](https://intl.cloud.tencent.com/document/product/248/51283?from_cn_redirect=1).
Note: this field may return `null`, indicating that no valid value is obtained.
*/
public void setContinuePeriod(Long ContinuePeriod) {
this.ContinuePeriod = ContinuePeriod;
}
/**
* Get Alarm interval in seconds. Valid values: 0 (do not repeat), 300 (alarm once every 5 minutes), 600 (alarm once every 10 minutes), 900 (alarm once every 15 minutes), 1800 (alarm once every 30 minutes), 3600 (alarm once every hour), 7200 (alarm once every 2 hours), 10800 (alarm once every 3 hours), 21600 (alarm once every 6 hours), 43200 (alarm once every 12 hours), 86400 (alarm once every day)
Note: this field may return null, indicating that no valid values can be obtained.
* @return NoticeFrequency Alarm interval in seconds. Valid values: 0 (do not repeat), 300 (alarm once every 5 minutes), 600 (alarm once every 10 minutes), 900 (alarm once every 15 minutes), 1800 (alarm once every 30 minutes), 3600 (alarm once every hour), 7200 (alarm once every 2 hours), 10800 (alarm once every 3 hours), 21600 (alarm once every 6 hours), 43200 (alarm once every 12 hours), 86400 (alarm once every day)
Note: this field may return null, indicating that no valid values can be obtained.
*/
public Long getNoticeFrequency() {
return this.NoticeFrequency;
}
/**
* Set Alarm interval in seconds. Valid values: 0 (do not repeat), 300 (alarm once every 5 minutes), 600 (alarm once every 10 minutes), 900 (alarm once every 15 minutes), 1800 (alarm once every 30 minutes), 3600 (alarm once every hour), 7200 (alarm once every 2 hours), 10800 (alarm once every 3 hours), 21600 (alarm once every 6 hours), 43200 (alarm once every 12 hours), 86400 (alarm once every day)
Note: this field may return null, indicating that no valid values can be obtained.
* @param NoticeFrequency Alarm interval in seconds. Valid values: 0 (do not repeat), 300 (alarm once every 5 minutes), 600 (alarm once every 10 minutes), 900 (alarm once every 15 minutes), 1800 (alarm once every 30 minutes), 3600 (alarm once every hour), 7200 (alarm once every 2 hours), 10800 (alarm once every 3 hours), 21600 (alarm once every 6 hours), 43200 (alarm once every 12 hours), 86400 (alarm once every day)
Note: this field may return null, indicating that no valid values can be obtained.
*/
public void setNoticeFrequency(Long NoticeFrequency) {
this.NoticeFrequency = NoticeFrequency;
}
/**
* Get Whether the alarm frequency increases exponentially. Valid values: 0 (no), 1 (yes)
Note: this field may return null, indicating that no valid values can be obtained.
* @return IsPowerNotice Whether the alarm frequency increases exponentially. Valid values: 0 (no), 1 (yes)
Note: this field may return null, indicating that no valid values can be obtained.
*/
public Long getIsPowerNotice() {
return this.IsPowerNotice;
}
/**
* Set Whether the alarm frequency increases exponentially. Valid values: 0 (no), 1 (yes)
Note: this field may return null, indicating that no valid values can be obtained.
* @param IsPowerNotice Whether the alarm frequency increases exponentially. Valid values: 0 (no), 1 (yes)
Note: this field may return null, indicating that no valid values can be obtained.
*/
public void setIsPowerNotice(Long IsPowerNotice) {
this.IsPowerNotice = IsPowerNotice;
}
/**
* Get Filter condition for one single trigger rule
Note: this field may return null, indicating that no valid values can be obtained.
* @return Filter Filter condition for one single trigger rule
Note: this field may return null, indicating that no valid values can be obtained.
*/
public AlarmPolicyFilter getFilter() {
return this.Filter;
}
/**
* Set Filter condition for one single trigger rule
Note: this field may return null, indicating that no valid values can be obtained.
* @param Filter Filter condition for one single trigger rule
Note: this field may return null, indicating that no valid values can be obtained.
*/
public void setFilter(AlarmPolicyFilter Filter) {
this.Filter = Filter;
}
/**
* Get Metric display name, which is used in the output parameter
Note: this field may return null, indicating that no valid values can be obtained.
* @return Description Metric display name, which is used in the output parameter
Note: this field may return null, indicating that no valid values can be obtained.
*/
public String getDescription() {
return this.Description;
}
/**
* Set Metric display name, which is used in the output parameter
Note: this field may return null, indicating that no valid values can be obtained.
* @param Description Metric display name, which is used in the output parameter
Note: this field may return null, indicating that no valid values can be obtained.
*/
public void setDescription(String Description) {
this.Description = Description;
}
/**
* Get Unit, which is used in the output parameter
Note: this field may return null, indicating that no valid values can be obtained.
* @return Unit Unit, which is used in the output parameter
Note: this field may return null, indicating that no valid values can be obtained.
*/
public String getUnit() {
return this.Unit;
}
/**
* Set Unit, which is used in the output parameter
Note: this field may return null, indicating that no valid values can be obtained.
* @param Unit Unit, which is used in the output parameter
Note: this field may return null, indicating that no valid values can be obtained.
*/
public void setUnit(String Unit) {
this.Unit = Unit;
}
/**
* Get Trigger condition type. `STATIC`: static threshold; `dynamic`: dynamic threshold. If you do not specify this parameter when creating or editing a policy, `STATIC` is used by default.
Note: this field may return `null`, indicating that no valid value is obtained.
* @return RuleType Trigger condition type. `STATIC`: static threshold; `dynamic`: dynamic threshold. If you do not specify this parameter when creating or editing a policy, `STATIC` is used by default.
Note: this field may return `null`, indicating that no valid value is obtained.
*/
public String getRuleType() {
return this.RuleType;
}
/**
* Set Trigger condition type. `STATIC`: static threshold; `dynamic`: dynamic threshold. If you do not specify this parameter when creating or editing a policy, `STATIC` is used by default.
Note: this field may return `null`, indicating that no valid value is obtained.
* @param RuleType Trigger condition type. `STATIC`: static threshold; `dynamic`: dynamic threshold. If you do not specify this parameter when creating or editing a policy, `STATIC` is used by default.
Note: this field may return `null`, indicating that no valid value is obtained.
*/
public void setRuleType(String RuleType) {
this.RuleType = RuleType;
}
/**
* Get Whether it is an advanced metric. 0: No; 1: Yes.
Note: This field may return `null`, indicating that no valid values can be obtained.
* @return IsAdvanced Whether it is an advanced metric. 0: No; 1: Yes.
Note: This field may return `null`, indicating that no valid values can be obtained.
*/
public Long getIsAdvanced() {
return this.IsAdvanced;
}
/**
* Set Whether it is an advanced metric. 0: No; 1: Yes.
Note: This field may return `null`, indicating that no valid values can be obtained.
* @param IsAdvanced Whether it is an advanced metric. 0: No; 1: Yes.
Note: This field may return `null`, indicating that no valid values can be obtained.
*/
public void setIsAdvanced(Long IsAdvanced) {
this.IsAdvanced = IsAdvanced;
}
/**
* Get Whether the advanced metric feature is enabled. 0: No; 1: Yes.
Note: This field may return `null`, indicating that no valid values can be obtained.
* @return IsOpen Whether the advanced metric feature is enabled. 0: No; 1: Yes.
Note: This field may return `null`, indicating that no valid values can be obtained.
*/
public Long getIsOpen() {
return this.IsOpen;
}
/**
* Set Whether the advanced metric feature is enabled. 0: No; 1: Yes.
Note: This field may return `null`, indicating that no valid values can be obtained.
* @param IsOpen Whether the advanced metric feature is enabled. 0: No; 1: Yes.
Note: This field may return `null`, indicating that no valid values can be obtained.
*/
public void setIsOpen(Long IsOpen) {
this.IsOpen = IsOpen;
}
/**
* Get Integration center product ID.
Note: This field may return `null`, indicating that no valid values can be obtained.
* @return ProductId Integration center product ID.
Note: This field may return `null`, indicating that no valid values can be obtained.
*/
public String getProductId() {
return this.ProductId;
}
/**
* Set Integration center product ID.
Note: This field may return `null`, indicating that no valid values can be obtained.
* @param ProductId Integration center product ID.
Note: This field may return `null`, indicating that no valid values can be obtained.
*/
public void setProductId(String ProductId) {
this.ProductId = ProductId;
}
/**
* Get Maximum value
Note: This field may return null, indicating that no valid values can be obtained.
* @return ValueMax Maximum value
Note: This field may return null, indicating that no valid values can be obtained.
*/
public Float getValueMax() {
return this.ValueMax;
}
/**
* Set Maximum value
Note: This field may return null, indicating that no valid values can be obtained.
* @param ValueMax Maximum value
Note: This field may return null, indicating that no valid values can be obtained.
*/
public void setValueMax(Float ValueMax) {
this.ValueMax = ValueMax;
}
/**
* Get Minimum value
Note: This field may return null, indicating that no valid values can be obtained.
* @return ValueMin Minimum value
Note: This field may return null, indicating that no valid values can be obtained.
*/
public Float getValueMin() {
return this.ValueMin;
}
/**
* Set Minimum value
Note: This field may return null, indicating that no valid values can be obtained.
* @param ValueMin Minimum value
Note: This field may return null, indicating that no valid values can be obtained.
*/
public void setValueMin(Float ValueMin) {
this.ValueMin = ValueMin;
}
/**
* Get The configuration of alarm level threshold
Note: This field may return null, indicating that no valid values can be obtained.
* @return HierarchicalValue The configuration of alarm level threshold
Note: This field may return null, indicating that no valid values can be obtained.
*/
public AlarmHierarchicalValue getHierarchicalValue() {
return this.HierarchicalValue;
}
/**
* Set The configuration of alarm level threshold
Note: This field may return null, indicating that no valid values can be obtained.
* @param HierarchicalValue The configuration of alarm level threshold
Note: This field may return null, indicating that no valid values can be obtained.
*/
public void setHierarchicalValue(AlarmHierarchicalValue HierarchicalValue) {
this.HierarchicalValue = HierarchicalValue;
}
public AlarmPolicyRule() {
}
/**
* 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 AlarmPolicyRule(AlarmPolicyRule source) {
if (source.MetricName != null) {
this.MetricName = new String(source.MetricName);
}
if (source.Period != null) {
this.Period = new Long(source.Period);
}
if (source.Operator != null) {
this.Operator = new String(source.Operator);
}
if (source.Value != null) {
this.Value = new String(source.Value);
}
if (source.ContinuePeriod != null) {
this.ContinuePeriod = new Long(source.ContinuePeriod);
}
if (source.NoticeFrequency != null) {
this.NoticeFrequency = new Long(source.NoticeFrequency);
}
if (source.IsPowerNotice != null) {
this.IsPowerNotice = new Long(source.IsPowerNotice);
}
if (source.Filter != null) {
this.Filter = new AlarmPolicyFilter(source.Filter);
}
if (source.Description != null) {
this.Description = new String(source.Description);
}
if (source.Unit != null) {
this.Unit = new String(source.Unit);
}
if (source.RuleType != null) {
this.RuleType = new String(source.RuleType);
}
if (source.IsAdvanced != null) {
this.IsAdvanced = new Long(source.IsAdvanced);
}
if (source.IsOpen != null) {
this.IsOpen = new Long(source.IsOpen);
}
if (source.ProductId != null) {
this.ProductId = new String(source.ProductId);
}
if (source.ValueMax != null) {
this.ValueMax = new Float(source.ValueMax);
}
if (source.ValueMin != null) {
this.ValueMin = new Float(source.ValueMin);
}
if (source.HierarchicalValue != null) {
this.HierarchicalValue = new AlarmHierarchicalValue(source.HierarchicalValue);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "MetricName", this.MetricName);
this.setParamSimple(map, prefix + "Period", this.Period);
this.setParamSimple(map, prefix + "Operator", this.Operator);
this.setParamSimple(map, prefix + "Value", this.Value);
this.setParamSimple(map, prefix + "ContinuePeriod", this.ContinuePeriod);
this.setParamSimple(map, prefix + "NoticeFrequency", this.NoticeFrequency);
this.setParamSimple(map, prefix + "IsPowerNotice", this.IsPowerNotice);
this.setParamObj(map, prefix + "Filter.", this.Filter);
this.setParamSimple(map, prefix + "Description", this.Description);
this.setParamSimple(map, prefix + "Unit", this.Unit);
this.setParamSimple(map, prefix + "RuleType", this.RuleType);
this.setParamSimple(map, prefix + "IsAdvanced", this.IsAdvanced);
this.setParamSimple(map, prefix + "IsOpen", this.IsOpen);
this.setParamSimple(map, prefix + "ProductId", this.ProductId);
this.setParamSimple(map, prefix + "ValueMax", this.ValueMax);
this.setParamSimple(map, prefix + "ValueMin", this.ValueMin);
this.setParamObj(map, prefix + "HierarchicalValue.", this.HierarchicalValue);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy