
com.tencentcloudapi.monitor.v20180724.models.PrometheusTempModify 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.tencentcloudapi.common.SSEResponseModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class PrometheusTempModify extends AbstractModel {
/**
* Name
*/
@SerializedName("Name")
@Expose
private String Name;
/**
* Description
Note: This field may return null, indicating that no valid values can be obtained.
*/
@SerializedName("Describe")
@Expose
private String Describe;
/**
* This parameter is valid if `Level` is `cluster`.
List of ServiceMonitor rules in the template.
Note: This field may return null, indicating that no valid values can be obtained.
*/
@SerializedName("ServiceMonitors")
@Expose
private PrometheusConfigItem [] ServiceMonitors;
/**
* This parameter is valid if `Level` is `cluster`.
List of PodMonitor rules in the template.
Note: This field may return null, indicating that no valid values can be obtained.
*/
@SerializedName("PodMonitors")
@Expose
private PrometheusConfigItem [] PodMonitors;
/**
* This parameter is valid if `Level` is `cluster`.
List of RawJob rules in the template.
Note: This field may return null, indicating that no valid values can be obtained.
*/
@SerializedName("RawJobs")
@Expose
private PrometheusConfigItem [] RawJobs;
/**
* This parameter is valid if `Level` is `instance`.
List of recording rules in the template
Note: This field may return null, indicating that no valid values can be obtained.
*/
@SerializedName("RecordRules")
@Expose
private PrometheusConfigItem [] RecordRules;
/**
* Modification content, which is valid only if template type is `Alert`.
Note: This field may return null, indicating that no valid values can be obtained.
*/
@SerializedName("AlertDetailRules")
@Expose
private PrometheusAlertPolicyItem [] AlertDetailRules;
/**
* Get Name
* @return Name Name
*/
public String getName() {
return this.Name;
}
/**
* Set Name
* @param Name Name
*/
public void setName(String Name) {
this.Name = Name;
}
/**
* Get Description
Note: This field may return null, indicating that no valid values can be obtained.
* @return Describe Description
Note: This field may return null, indicating that no valid values can be obtained.
*/
public String getDescribe() {
return this.Describe;
}
/**
* Set Description
Note: This field may return null, indicating that no valid values can be obtained.
* @param Describe Description
Note: This field may return null, indicating that no valid values can be obtained.
*/
public void setDescribe(String Describe) {
this.Describe = Describe;
}
/**
* Get This parameter is valid if `Level` is `cluster`.
List of ServiceMonitor rules in the template.
Note: This field may return null, indicating that no valid values can be obtained.
* @return ServiceMonitors This parameter is valid if `Level` is `cluster`.
List of ServiceMonitor rules in the template.
Note: This field may return null, indicating that no valid values can be obtained.
*/
public PrometheusConfigItem [] getServiceMonitors() {
return this.ServiceMonitors;
}
/**
* Set This parameter is valid if `Level` is `cluster`.
List of ServiceMonitor rules in the template.
Note: This field may return null, indicating that no valid values can be obtained.
* @param ServiceMonitors This parameter is valid if `Level` is `cluster`.
List of ServiceMonitor rules in the template.
Note: This field may return null, indicating that no valid values can be obtained.
*/
public void setServiceMonitors(PrometheusConfigItem [] ServiceMonitors) {
this.ServiceMonitors = ServiceMonitors;
}
/**
* Get This parameter is valid if `Level` is `cluster`.
List of PodMonitor rules in the template.
Note: This field may return null, indicating that no valid values can be obtained.
* @return PodMonitors This parameter is valid if `Level` is `cluster`.
List of PodMonitor rules in the template.
Note: This field may return null, indicating that no valid values can be obtained.
*/
public PrometheusConfigItem [] getPodMonitors() {
return this.PodMonitors;
}
/**
* Set This parameter is valid if `Level` is `cluster`.
List of PodMonitor rules in the template.
Note: This field may return null, indicating that no valid values can be obtained.
* @param PodMonitors This parameter is valid if `Level` is `cluster`.
List of PodMonitor rules in the template.
Note: This field may return null, indicating that no valid values can be obtained.
*/
public void setPodMonitors(PrometheusConfigItem [] PodMonitors) {
this.PodMonitors = PodMonitors;
}
/**
* Get This parameter is valid if `Level` is `cluster`.
List of RawJob rules in the template.
Note: This field may return null, indicating that no valid values can be obtained.
* @return RawJobs This parameter is valid if `Level` is `cluster`.
List of RawJob rules in the template.
Note: This field may return null, indicating that no valid values can be obtained.
*/
public PrometheusConfigItem [] getRawJobs() {
return this.RawJobs;
}
/**
* Set This parameter is valid if `Level` is `cluster`.
List of RawJob rules in the template.
Note: This field may return null, indicating that no valid values can be obtained.
* @param RawJobs This parameter is valid if `Level` is `cluster`.
List of RawJob rules in the template.
Note: This field may return null, indicating that no valid values can be obtained.
*/
public void setRawJobs(PrometheusConfigItem [] RawJobs) {
this.RawJobs = RawJobs;
}
/**
* Get This parameter is valid if `Level` is `instance`.
List of recording rules in the template
Note: This field may return null, indicating that no valid values can be obtained.
* @return RecordRules This parameter is valid if `Level` is `instance`.
List of recording rules in the template
Note: This field may return null, indicating that no valid values can be obtained.
*/
public PrometheusConfigItem [] getRecordRules() {
return this.RecordRules;
}
/**
* Set This parameter is valid if `Level` is `instance`.
List of recording rules in the template
Note: This field may return null, indicating that no valid values can be obtained.
* @param RecordRules This parameter is valid if `Level` is `instance`.
List of recording rules in the template
Note: This field may return null, indicating that no valid values can be obtained.
*/
public void setRecordRules(PrometheusConfigItem [] RecordRules) {
this.RecordRules = RecordRules;
}
/**
* Get Modification content, which is valid only if template type is `Alert`.
Note: This field may return null, indicating that no valid values can be obtained.
* @return AlertDetailRules Modification content, which is valid only if template type is `Alert`.
Note: This field may return null, indicating that no valid values can be obtained.
*/
public PrometheusAlertPolicyItem [] getAlertDetailRules() {
return this.AlertDetailRules;
}
/**
* Set Modification content, which is valid only if template type is `Alert`.
Note: This field may return null, indicating that no valid values can be obtained.
* @param AlertDetailRules Modification content, which is valid only if template type is `Alert`.
Note: This field may return null, indicating that no valid values can be obtained.
*/
public void setAlertDetailRules(PrometheusAlertPolicyItem [] AlertDetailRules) {
this.AlertDetailRules = AlertDetailRules;
}
public PrometheusTempModify() {
}
/**
* 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 PrometheusTempModify(PrometheusTempModify source) {
if (source.Name != null) {
this.Name = new String(source.Name);
}
if (source.Describe != null) {
this.Describe = new String(source.Describe);
}
if (source.ServiceMonitors != null) {
this.ServiceMonitors = new PrometheusConfigItem[source.ServiceMonitors.length];
for (int i = 0; i < source.ServiceMonitors.length; i++) {
this.ServiceMonitors[i] = new PrometheusConfigItem(source.ServiceMonitors[i]);
}
}
if (source.PodMonitors != null) {
this.PodMonitors = new PrometheusConfigItem[source.PodMonitors.length];
for (int i = 0; i < source.PodMonitors.length; i++) {
this.PodMonitors[i] = new PrometheusConfigItem(source.PodMonitors[i]);
}
}
if (source.RawJobs != null) {
this.RawJobs = new PrometheusConfigItem[source.RawJobs.length];
for (int i = 0; i < source.RawJobs.length; i++) {
this.RawJobs[i] = new PrometheusConfigItem(source.RawJobs[i]);
}
}
if (source.RecordRules != null) {
this.RecordRules = new PrometheusConfigItem[source.RecordRules.length];
for (int i = 0; i < source.RecordRules.length; i++) {
this.RecordRules[i] = new PrometheusConfigItem(source.RecordRules[i]);
}
}
if (source.AlertDetailRules != null) {
this.AlertDetailRules = new PrometheusAlertPolicyItem[source.AlertDetailRules.length];
for (int i = 0; i < source.AlertDetailRules.length; i++) {
this.AlertDetailRules[i] = new PrometheusAlertPolicyItem(source.AlertDetailRules[i]);
}
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "Name", this.Name);
this.setParamSimple(map, prefix + "Describe", this.Describe);
this.setParamArrayObj(map, prefix + "ServiceMonitors.", this.ServiceMonitors);
this.setParamArrayObj(map, prefix + "PodMonitors.", this.PodMonitors);
this.setParamArrayObj(map, prefix + "RawJobs.", this.RawJobs);
this.setParamArrayObj(map, prefix + "RecordRules.", this.RecordRules);
this.setParamArrayObj(map, prefix + "AlertDetailRules.", this.AlertDetailRules);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy