public class PrometheusAlertPolicyItem extends AbstractModel
Constructor and Description |
---|
PrometheusAlertPolicyItem() |
PrometheusAlertPolicyItem(PrometheusAlertPolicyItem 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 |
---|---|
String |
getClusterId()
Get If the alerting rule comes from the user cluster CRD resource definition, `ClusterId` is the cluster ID.
|
String |
getId()
Get Alerting rule ID
Note: This field may return null, indicating that no valid values can be obtained.
|
String |
getName()
Get Rule name
|
PrometheusNotificationItem |
getNotification()
Get Alert channel, which may be returned as null if used in a template.
|
PrometheusAlertRule[] |
getRules()
Get List of rules
|
String |
getTemplateId()
Get If the alert comes from a template, `TemplateId` is the template ID.
|
String |
getUpdatedAt()
Get Last modification time
Note: This field may return null, indicating that no valid values can be obtained.
|
void |
setClusterId(String ClusterId)
Set If the alerting rule comes from the user cluster CRD resource definition, `ClusterId` is the cluster ID.
|
void |
setId(String Id)
Set Alerting rule ID
Note: This field may return null, indicating that no valid values can be obtained.
|
void |
setName(String Name)
Set Rule name
|
void |
setNotification(PrometheusNotificationItem Notification)
Set Alert channel, which may be returned as null if used in a template.
|
void |
setRules(PrometheusAlertRule[] Rules)
Set List of rules
|
void |
setTemplateId(String TemplateId)
Set If the alert comes from a template, `TemplateId` is the template ID.
|
void |
setUpdatedAt(String UpdatedAt)
Set Last modification time
Note: This field may return null, indicating that no valid values can be obtained.
|
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 PrometheusAlertPolicyItem()
public PrometheusAlertPolicyItem(PrometheusAlertPolicyItem source)
public String getName()
public void setName(String Name)
Name
- Rule namepublic PrometheusAlertRule[] getRules()
public void setRules(PrometheusAlertRule[] Rules)
Rules
- List of rulespublic String getId()
public void setId(String Id)
Id
- Alerting rule ID
Note: This field may return null, indicating that no valid values can be obtained.public String getTemplateId()
public void setTemplateId(String TemplateId)
TemplateId
- If the alert comes from a template, `TemplateId` is the template ID.
Note: This field may return null, indicating that no valid values can be obtained.public PrometheusNotificationItem getNotification()
public void setNotification(PrometheusNotificationItem Notification)
Notification
- Alert channel, which may be returned as null if used in a template.
Note: This field may return null, indicating that no valid values can be obtained.public String getUpdatedAt()
public void setUpdatedAt(String UpdatedAt)
UpdatedAt
- Last modification time
Note: This field may return null, indicating that no valid values can be obtained.public String getClusterId()
public void setClusterId(String ClusterId)
ClusterId
- If the alerting rule comes from the user cluster CRD resource definition, `ClusterId` is the cluster ID.
Note: This field may return null, indicating that no valid values can be obtained.Copyright © 2023. All rights reserved.