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

com.tencentcloudapi.monitor.v20180724.models.MetricConfig 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 MetricConfig extends AbstractModel{

    /**
    * 允许使用的运算符
    */
    @SerializedName("Operator")
    @Expose
    private String [] Operator;

    /**
    * 允许配置的数据周期,以秒为单位
    */
    @SerializedName("Period")
    @Expose
    private Long [] Period;

    /**
    * 允许配置的持续周期个数
    */
    @SerializedName("ContinuePeriod")
    @Expose
    private Long [] ContinuePeriod;

    /**
     * Get 允许使用的运算符 
     * @return Operator 允许使用的运算符
     */
    public String [] getOperator() {
        return this.Operator;
    }

    /**
     * Set 允许使用的运算符
     * @param Operator 允许使用的运算符
     */
    public void setOperator(String [] Operator) {
        this.Operator = Operator;
    }

    /**
     * Get 允许配置的数据周期,以秒为单位 
     * @return Period 允许配置的数据周期,以秒为单位
     */
    public Long [] getPeriod() {
        return this.Period;
    }

    /**
     * Set 允许配置的数据周期,以秒为单位
     * @param Period 允许配置的数据周期,以秒为单位
     */
    public void setPeriod(Long [] Period) {
        this.Period = Period;
    }

    /**
     * Get 允许配置的持续周期个数 
     * @return ContinuePeriod 允许配置的持续周期个数
     */
    public Long [] getContinuePeriod() {
        return this.ContinuePeriod;
    }

    /**
     * Set 允许配置的持续周期个数
     * @param ContinuePeriod 允许配置的持续周期个数
     */
    public void setContinuePeriod(Long [] ContinuePeriod) {
        this.ContinuePeriod = ContinuePeriod;
    }

    /**
     * Internal implementation, normal users should not use it.
     */
    public void toMap(HashMap map, String prefix) {
        this.setParamArraySimple(map, prefix + "Operator.", this.Operator);
        this.setParamArraySimple(map, prefix + "Period.", this.Period);
        this.setParamArraySimple(map, prefix + "ContinuePeriod.", this.ContinuePeriod);

    }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy