public class PrometheusTemplateModify extends AbstractModel
Constructor and Description |
---|
PrometheusTemplateModify() |
PrometheusTemplateModify(PrometheusTemplateModify source)
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.
|
Modifier and Type | Method and Description |
---|---|
PrometheusAlertRuleDetail[] |
getAlertDetailRules()
Get 修改内容,只有当模板类型是Alert时生效
注意:此字段可能返回 null,表示取不到有效值。
|
PrometheusAlertRule[] |
getAlertRules()
Get 修改内容,只有当模板类型是Alert时生效
注意:此字段可能返回 null,表示取不到有效值。
|
String |
getDescribe()
Get 修改描述
注意:此字段可能返回 null,表示取不到有效值。
|
String |
getName()
Get 修改名称
|
PrometheusConfigItem[] |
getPodMonitors()
Get 当Level为cluster时有效,
模板中的PodMonitors规则列表
注意:此字段可能返回 null,表示取不到有效值。
|
PrometheusConfigItem[] |
getRawJobs()
Get 当Level为cluster时有效,
模板中的RawJobs规则列表
注意:此字段可能返回 null,表示取不到有效值。
|
PrometheusConfigItem[] |
getRecordRules()
Get 当Level为instance时有效,
模板中的聚合规则列表
注意:此字段可能返回 null,表示取不到有效值。
|
PrometheusConfigItem[] |
getServiceMonitors()
Get 当Level为cluster时有效,
模板中的ServiceMonitor规则列表
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setAlertDetailRules(PrometheusAlertRuleDetail[] AlertDetailRules)
Set 修改内容,只有当模板类型是Alert时生效
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setAlertRules(PrometheusAlertRule[] AlertRules)
Set 修改内容,只有当模板类型是Alert时生效
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setDescribe(String Describe)
Set 修改描述
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setName(String Name)
Set 修改名称
|
void |
setPodMonitors(PrometheusConfigItem[] PodMonitors)
Set 当Level为cluster时有效,
模板中的PodMonitors规则列表
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setRawJobs(PrometheusConfigItem[] RawJobs)
Set 当Level为cluster时有效,
模板中的RawJobs规则列表
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setRecordRules(PrometheusConfigItem[] RecordRules)
Set 当Level为instance时有效,
模板中的聚合规则列表
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setServiceMonitors(PrometheusConfigItem[] ServiceMonitors)
Set 当Level为cluster时有效,
模板中的ServiceMonitor规则列表
注意:此字段可能返回 null,表示取不到有效值。
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public PrometheusTemplateModify()
public PrometheusTemplateModify(PrometheusTemplateModify source)
public String getName()
public void setName(String Name)
Name
- 修改名称public String getDescribe()
public void setDescribe(String Describe)
Describe
- 修改描述
注意:此字段可能返回 null,表示取不到有效值。public PrometheusAlertRule[] getAlertRules()
public void setAlertRules(PrometheusAlertRule[] AlertRules)
AlertRules
- 修改内容,只有当模板类型是Alert时生效
注意:此字段可能返回 null,表示取不到有效值。public PrometheusConfigItem[] getRecordRules()
public void setRecordRules(PrometheusConfigItem[] RecordRules)
RecordRules
- 当Level为instance时有效,
模板中的聚合规则列表
注意:此字段可能返回 null,表示取不到有效值。public PrometheusConfigItem[] getServiceMonitors()
public void setServiceMonitors(PrometheusConfigItem[] ServiceMonitors)
ServiceMonitors
- 当Level为cluster时有效,
模板中的ServiceMonitor规则列表
注意:此字段可能返回 null,表示取不到有效值。public PrometheusConfigItem[] getPodMonitors()
public void setPodMonitors(PrometheusConfigItem[] PodMonitors)
PodMonitors
- 当Level为cluster时有效,
模板中的PodMonitors规则列表
注意:此字段可能返回 null,表示取不到有效值。public PrometheusConfigItem[] getRawJobs()
public void setRawJobs(PrometheusConfigItem[] RawJobs)
RawJobs
- 当Level为cluster时有效,
模板中的RawJobs规则列表
注意:此字段可能返回 null,表示取不到有效值。public PrometheusAlertRuleDetail[] getAlertDetailRules()
public void setAlertDetailRules(PrometheusAlertRuleDetail[] AlertDetailRules)
AlertDetailRules
- 修改内容,只有当模板类型是Alert时生效
注意:此字段可能返回 null,表示取不到有效值。Copyright © 2022. All rights reserved.