com.baidubce.services.cnap.model.monitoring
Class CreateAlertRulesRequest

java.lang.Object
  extended by com.baidubce.model.AbstractBceRequest
      extended by com.baidubce.services.cnap.model.monitoring.CreateAlertRulesRequest

public class CreateAlertRulesRequest
extends AbstractBceRequest

The request for create alert rules.


Constructor Summary
CreateAlertRulesRequest()
           
 
Method Summary
 AlertContacts getContacts()
           
 String getDescription()
           
 String getDuration()
           
 Object getLabels()
           
 String getName()
           
 String getOp()
           
 String getPromql()
           
 String getRepeatInterval()
           
 int getThreshold()
           
 void setContacts(AlertContacts contacts)
           
 void setDescription(String description)
           
 void setDuration(String duration)
           
 void setLabels(Object labels)
           
 void setName(String name)
           
 void setOp(String op)
           
 void setPromql(String promql)
           
 void setRepeatInterval(String repeatInterval)
           
 void setThreshold(int threshold)
           
 CreateAlertRulesRequest withContacts(AlertContacts alertContacts)
           
 CreateAlertRulesRequest withDescription(String description)
           
 CreateAlertRulesRequest withDuration(String duration)
           
 CreateAlertRulesRequest withLabels(Object labels)
           
 CreateAlertRulesRequest withName(String name)
           
 CreateAlertRulesRequest withOp(String op)
           
 CreateAlertRulesRequest withPromql(String promql)
           
 CreateAlertRulesRequest withRepeatInterval(String repeatInterval)
           
 CreateAlertRulesRequest withRequestCredentials(BceCredentials credentials)
          Configure request credential for the request.
 CreateAlertRulesRequest withThreshold(int threshold)
           
 
Methods inherited from class com.baidubce.model.AbstractBceRequest
getRequestCredentials, setRequestCredentials
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CreateAlertRulesRequest

public CreateAlertRulesRequest()
Method Detail

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.