com.tencentcloudapi.monitor.v20180724.models.Metric 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.monitor.v20180724.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class Metric extends AbstractModel{
/**
* Alarm policy type
*/
@SerializedName("Namespace")
@Expose
private String Namespace;
/**
* Metric name
*/
@SerializedName("MetricName")
@Expose
private String MetricName;
/**
* Metric display name
*/
@SerializedName("Description")
@Expose
private String Description;
/**
* Minimum value
*/
@SerializedName("Min")
@Expose
private Float Min;
/**
* Maximum value
*/
@SerializedName("Max")
@Expose
private Float Max;
/**
* Dimension list
*/
@SerializedName("Dimensions")
@Expose
private String [] Dimensions;
/**
* Unit
*/
@SerializedName("Unit")
@Expose
private String Unit;
/**
* Metric configuration
Note: this field may return null, indicating that no valid values can be obtained.
*/
@SerializedName("MetricConfig")
@Expose
private MetricConfig MetricConfig;
/**
* Get Alarm policy type
* @return Namespace Alarm policy type
*/
public String getNamespace() {
return this.Namespace;
}
/**
* Set Alarm policy type
* @param Namespace Alarm policy type
*/
public void setNamespace(String Namespace) {
this.Namespace = Namespace;
}
/**
* Get Metric name
* @return MetricName Metric name
*/
public String getMetricName() {
return this.MetricName;
}
/**
* Set Metric name
* @param MetricName Metric name
*/
public void setMetricName(String MetricName) {
this.MetricName = MetricName;
}
/**
* Get Metric display name
* @return Description Metric display name
*/
public String getDescription() {
return this.Description;
}
/**
* Set Metric display name
* @param Description Metric display name
*/
public void setDescription(String Description) {
this.Description = Description;
}
/**
* Get Minimum value
* @return Min Minimum value
*/
public Float getMin() {
return this.Min;
}
/**
* Set Minimum value
* @param Min Minimum value
*/
public void setMin(Float Min) {
this.Min = Min;
}
/**
* Get Maximum value
* @return Max Maximum value
*/
public Float getMax() {
return this.Max;
}
/**
* Set Maximum value
* @param Max Maximum value
*/
public void setMax(Float Max) {
this.Max = Max;
}
/**
* Get Dimension list
* @return Dimensions Dimension list
*/
public String [] getDimensions() {
return this.Dimensions;
}
/**
* Set Dimension list
* @param Dimensions Dimension list
*/
public void setDimensions(String [] Dimensions) {
this.Dimensions = Dimensions;
}
/**
* Get Unit
* @return Unit Unit
*/
public String getUnit() {
return this.Unit;
}
/**
* Set Unit
* @param Unit Unit
*/
public void setUnit(String Unit) {
this.Unit = Unit;
}
/**
* Get Metric configuration
Note: this field may return null, indicating that no valid values can be obtained.
* @return MetricConfig Metric configuration
Note: this field may return null, indicating that no valid values can be obtained.
*/
public MetricConfig getMetricConfig() {
return this.MetricConfig;
}
/**
* Set Metric configuration
Note: this field may return null, indicating that no valid values can be obtained.
* @param MetricConfig Metric configuration
Note: this field may return null, indicating that no valid values can be obtained.
*/
public void setMetricConfig(MetricConfig MetricConfig) {
this.MetricConfig = MetricConfig;
}
public Metric() {
}
/**
* 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 Metric(Metric source) {
if (source.Namespace != null) {
this.Namespace = new String(source.Namespace);
}
if (source.MetricName != null) {
this.MetricName = new String(source.MetricName);
}
if (source.Description != null) {
this.Description = new String(source.Description);
}
if (source.Min != null) {
this.Min = new Float(source.Min);
}
if (source.Max != null) {
this.Max = new Float(source.Max);
}
if (source.Dimensions != null) {
this.Dimensions = new String[source.Dimensions.length];
for (int i = 0; i < source.Dimensions.length; i++) {
this.Dimensions[i] = new String(source.Dimensions[i]);
}
}
if (source.Unit != null) {
this.Unit = new String(source.Unit);
}
if (source.MetricConfig != null) {
this.MetricConfig = new MetricConfig(source.MetricConfig);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "Namespace", this.Namespace);
this.setParamSimple(map, prefix + "MetricName", this.MetricName);
this.setParamSimple(map, prefix + "Description", this.Description);
this.setParamSimple(map, prefix + "Min", this.Min);
this.setParamSimple(map, prefix + "Max", this.Max);
this.setParamArraySimple(map, prefix + "Dimensions.", this.Dimensions);
this.setParamSimple(map, prefix + "Unit", this.Unit);
this.setParamObj(map, prefix + "MetricConfig.", this.MetricConfig);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy