com.baidubce.services.cnap.model.monitoring
Class UpdateAlertRulesRequest
java.lang.Object
com.baidubce.model.AbstractBceRequest
com.baidubce.services.cnap.model.monitoring.UpdateAlertRulesRequest
public class UpdateAlertRulesRequest
- extends AbstractBceRequest
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UpdateAlertRulesRequest
public UpdateAlertRulesRequest()
getAlertRuleID
public String getAlertRuleID()
setAlertRuleID
public void setAlertRuleID(String alertRuleID)
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)
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)
getThreshold
public int getThreshold()
setThreshold
public void setThreshold(int threshold)
withAlertRuleID
public UpdateAlertRulesRequest withAlertRuleID(String alertRuleID)
withDuration
public UpdateAlertRulesRequest withDuration(String duration)
withPromql
public UpdateAlertRulesRequest withPromql(String promql)
withOp
public UpdateAlertRulesRequest withOp(String op)
withRepeatInterval
public UpdateAlertRulesRequest withRepeatInterval(String repeatInterval)
withContacts
public UpdateAlertRulesRequest withContacts(AlertContacts alertContacts)
withLabels
public UpdateAlertRulesRequest withLabels(Object labels)
withDescription
public UpdateAlertRulesRequest withDescription(String description)
withThreshold
public UpdateAlertRulesRequest withThreshold(int threshold)
withRequestCredentials
public UpdateAlertRulesRequest 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.