类 CreateAlertRulesRequest
- java.lang.Object
-
- com.baidubce.model.AbstractBceRequest
-
- com.baidubce.services.cnap.model.monitoring.CreateAlertRulesRequest
-
public class CreateAlertRulesRequest extends AbstractBceRequest
The request for create alert rules.
-
-
构造器概要
构造器 构造器 说明 CreateAlertRulesRequest()
-
方法概要
-
从类继承的方法 com.baidubce.model.AbstractBceRequest
getRequestCredentials, setRequestCredentials
-
-
-
-
方法详细资料
-
getName
public String getName()
-
setName
public void setName(String name)
-
getDuration
public String getDuration()
-
setDuration
public void setDuration(String duration)
-
getPromql
public String getPromql()
-
setPromql
public void setPromql(String promql)
-
getOp
public String getOp()
-
setOp
public void setOp(String op)
-
getRepeatInterval
public String getRepeatInterval()
-
setRepeatInterval
public void setRepeatInterval(String repeatInterval)
-
getThreshold
public int getThreshold()
-
setThreshold
public void setThreshold(int threshold)
-
getContacts
public AlertContacts getContacts()
-
setContacts
public void setContacts(AlertContacts contacts)
-
getLabels
public Object getLabels()
-
setLabels
public void setLabels(Object labels)
-
getDescription
public String getDescription()
-
setDescription
public void setDescription(String description)
-
withName
public CreateAlertRulesRequest withName(String name)
-
withDuration
public CreateAlertRulesRequest withDuration(String duration)
-
withPromql
public CreateAlertRulesRequest withPromql(String promql)
-
withOp
public CreateAlertRulesRequest withOp(String op)
-
withRepeatInterval
public CreateAlertRulesRequest withRepeatInterval(String repeatInterval)
-
withThreshold
public CreateAlertRulesRequest withThreshold(int threshold)
-
withContacts
public CreateAlertRulesRequest withContacts(AlertContacts alertContacts)
-
withLabels
public CreateAlertRulesRequest withLabels(Object labels)
-
withDescription
public CreateAlertRulesRequest withDescription(String description)
-
withRequestCredentials
public CreateAlertRulesRequest withRequestCredentials(BceCredentials credentials)
Configure request credential for the request.- 指定者:
withRequestCredentials在类中AbstractBceRequest- 参数:
credentials- a valid instance of BceCredentials.- 返回:
- request with credentials.
-
-