public class PrometheusTemp extends AbstractModel
Constructor and Description |
---|
PrometheusTemp() |
PrometheusTemp(PrometheusTemp 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 |
---|---|
PrometheusAlertPolicyItem[] |
getAlertDetailRules()
Get This parameter is valid if `Level` is `instance`.
|
String |
getDescribe()
Get Template description
Note: This field may return null, indicating that no valid values can be obtained.
|
Boolean |
getIsDefault()
Get Whether it is the default template provided by the system, which is used as an output parameter.
|
String |
getLevel()
Get Template dimension.
|
String |
getName()
Get Template name
|
PrometheusConfigItem[] |
getPodMonitors()
Get This parameter is valid if `Level` is `cluster`.
|
PrometheusConfigItem[] |
getRawJobs()
Get This parameter is valid if `Level` is `cluster`.
|
PrometheusConfigItem[] |
getRecordRules()
Get This parameter is valid if `Level` is `instance`.
|
PrometheusConfigItem[] |
getServiceMonitors()
Get This parameter is valid if `Level` is `cluster`.
|
Long |
getTargetsTotal()
Get Number of associated instances
Note: This field may return null, indicating that no valid values can be obtained.
|
String |
getTemplateId()
Get Template ID, which is used as an output parameter.
|
String |
getUpdateTime()
Get Last update time, which is used as an output parameter.
|
String |
getVersion()
Get The current version, which is used as an output parameter.
|
void |
setAlertDetailRules(PrometheusAlertPolicyItem[] AlertDetailRules)
Set This parameter is valid if `Level` is `instance`.
|
void |
setDescribe(String Describe)
Set Template description
Note: This field may return null, indicating that no valid values can be obtained.
|
void |
setIsDefault(Boolean IsDefault)
Set Whether it is the default template provided by the system, which is used as an output parameter.
|
void |
setLevel(String Level)
Set Template dimension.
|
void |
setName(String Name)
Set Template name
|
void |
setPodMonitors(PrometheusConfigItem[] PodMonitors)
Set This parameter is valid if `Level` is `cluster`.
|
void |
setRawJobs(PrometheusConfigItem[] RawJobs)
Set This parameter is valid if `Level` is `cluster`.
|
void |
setRecordRules(PrometheusConfigItem[] RecordRules)
Set This parameter is valid if `Level` is `instance`.
|
void |
setServiceMonitors(PrometheusConfigItem[] ServiceMonitors)
Set This parameter is valid if `Level` is `cluster`.
|
void |
setTargetsTotal(Long TargetsTotal)
Set Number of associated instances
Note: This field may return null, indicating that no valid values can be obtained.
|
void |
setTemplateId(String TemplateId)
Set Template ID, which is used as an output parameter.
|
void |
setUpdateTime(String UpdateTime)
Set Last update time, which is used as an output parameter.
|
void |
setVersion(String Version)
Set The current version, which is used as an output parameter.
|
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 PrometheusTemp()
public PrometheusTemp(PrometheusTemp source)
public String getName()
public void setName(String Name)
Name
- Template namepublic String getLevel()
public void setLevel(String Level)
Level
- Template dimension. Valid values:
`instance`
`cluster`public String getDescribe()
public void setDescribe(String Describe)
Describe
- Template description
Note: This field may return null, indicating that no valid values can be obtained.public PrometheusConfigItem[] getRecordRules()
public void setRecordRules(PrometheusConfigItem[] RecordRules)
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[] getServiceMonitors()
public void setServiceMonitors(PrometheusConfigItem[] ServiceMonitors)
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[] getPodMonitors()
public void setPodMonitors(PrometheusConfigItem[] PodMonitors)
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[] getRawJobs()
public void setRawJobs(PrometheusConfigItem[] RawJobs)
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 String getTemplateId()
public void setTemplateId(String TemplateId)
TemplateId
- Template ID, which is used as an output parameter.
Note: This field may return null, indicating that no valid values can be obtained.public String getUpdateTime()
public void setUpdateTime(String UpdateTime)
UpdateTime
- Last update time, which is used as an output parameter.
Note: This field may return null, indicating that no valid values can be obtained.public String getVersion()
public void setVersion(String Version)
Version
- The current version, which is used as an output parameter.
Note: This field may return null, indicating that no valid values can be obtained.public Boolean getIsDefault()
public void setIsDefault(Boolean IsDefault)
IsDefault
- Whether it is the default template provided by the system, which is used as an output parameter.
Note: This field may return null, indicating that no valid values can be obtained.public PrometheusAlertPolicyItem[] getAlertDetailRules()
public void setAlertDetailRules(PrometheusAlertPolicyItem[] AlertDetailRules)
AlertDetailRules
- This parameter is valid if `Level` is `instance`.
List of alert configurations in the template
Note: This field may return null, indicating that no valid values can be obtained.public Long getTargetsTotal()
public void setTargetsTotal(Long TargetsTotal)
TargetsTotal
- Number of associated instances
Note: This field may return null, indicating that no valid values can be obtained.Copyright © 2023. All rights reserved.