com.baidubce.services.cnap.model.monitoring
Class 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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CreateAlertRulesRequest
public CreateAlertRulesRequest()
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.
- Specified by:
withRequestCredentials in class AbstractBceRequest
- Parameters:
credentials - a valid instance of BceCredentials.
- Returns:
- request with credentials.
Copyright © 2020. All rights reserved.