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

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

There is a newer version: 3.1.1087
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.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;

public class PutMonitorDataRequest extends AbstractModel{

    /**
    * 一组指标和数据
    */
    @SerializedName("Metrics")
    @Expose
    private MetricDatum [] Metrics;

    /**
    * 上报时自行指定的 IP
    */
    @SerializedName("AnnounceIp")
    @Expose
    private String AnnounceIp;

    /**
    * 上报时自行指定的时间戳
    */
    @SerializedName("AnnounceTimestamp")
    @Expose
    private Long AnnounceTimestamp;

    /**
    * 上报时自行指定的 IP 或 产品实例ID
    */
    @SerializedName("AnnounceInstance")
    @Expose
    private String AnnounceInstance;

    /**
     * Get 一组指标和数据 
     * @return Metrics 一组指标和数据
     */
    public MetricDatum [] getMetrics() {
        return this.Metrics;
    }

    /**
     * Set 一组指标和数据
     * @param Metrics 一组指标和数据
     */
    public void setMetrics(MetricDatum [] Metrics) {
        this.Metrics = Metrics;
    }

    /**
     * Get 上报时自行指定的 IP 
     * @return AnnounceIp 上报时自行指定的 IP
     */
    public String getAnnounceIp() {
        return this.AnnounceIp;
    }

    /**
     * Set 上报时自行指定的 IP
     * @param AnnounceIp 上报时自行指定的 IP
     */
    public void setAnnounceIp(String AnnounceIp) {
        this.AnnounceIp = AnnounceIp;
    }

    /**
     * Get 上报时自行指定的时间戳 
     * @return AnnounceTimestamp 上报时自行指定的时间戳
     */
    public Long getAnnounceTimestamp() {
        return this.AnnounceTimestamp;
    }

    /**
     * Set 上报时自行指定的时间戳
     * @param AnnounceTimestamp 上报时自行指定的时间戳
     */
    public void setAnnounceTimestamp(Long AnnounceTimestamp) {
        this.AnnounceTimestamp = AnnounceTimestamp;
    }

    /**
     * Get 上报时自行指定的 IP 或 产品实例ID 
     * @return AnnounceInstance 上报时自行指定的 IP 或 产品实例ID
     */
    public String getAnnounceInstance() {
        return this.AnnounceInstance;
    }

    /**
     * Set 上报时自行指定的 IP 或 产品实例ID
     * @param AnnounceInstance 上报时自行指定的 IP 或 产品实例ID
     */
    public void setAnnounceInstance(String AnnounceInstance) {
        this.AnnounceInstance = AnnounceInstance;
    }

    public PutMonitorDataRequest() {
    }

    /**
     * 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 PutMonitorDataRequest(PutMonitorDataRequest source) {
        if (source.Metrics != null) {
            this.Metrics = new MetricDatum[source.Metrics.length];
            for (int i = 0; i < source.Metrics.length; i++) {
                this.Metrics[i] = new MetricDatum(source.Metrics[i]);
            }
        }
        if (source.AnnounceIp != null) {
            this.AnnounceIp = new String(source.AnnounceIp);
        }
        if (source.AnnounceTimestamp != null) {
            this.AnnounceTimestamp = new Long(source.AnnounceTimestamp);
        }
        if (source.AnnounceInstance != null) {
            this.AnnounceInstance = new String(source.AnnounceInstance);
        }
    }


    /**
     * Internal implementation, normal users should not use it.
     */
    public void toMap(HashMap map, String prefix) {
        this.setParamArrayObj(map, prefix + "Metrics.", this.Metrics);
        this.setParamSimple(map, prefix + "AnnounceIp", this.AnnounceIp);
        this.setParamSimple(map, prefix + "AnnounceTimestamp", this.AnnounceTimestamp);
        this.setParamSimple(map, prefix + "AnnounceInstance", this.AnnounceInstance);

    }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy