Package com.gpudb.protocol
Class AdminShowAlertsRequest
java.lang.Object
com.gpudb.protocol.AdminShowAlertsRequest
All Implemented Interfaces:
org.apache.avro.generic.GenericContainer, org.apache.avro.generic.IndexedRecordA set of parameters for
GPUdb.adminShowAlerts.
Requests a list of the most recent alerts. Returns lists of alert data, including timestamp and type.
Constructor Summary
ConstructorsConstructorDescriptionConstructs an AdminShowAlertsRequest object with default parameters.AdminShowAlertsRequest(int numAlerts, Map<String, String> options) Constructs an AdminShowAlertsRequest object with the specified parameters.Method Summary
Modifier and TypeMethodDescriptionbooleanget(int index) This method supports the Avro framework and is not intended to be called directly by the user.static org.apache.avro.SchemaThis method supports the Avro framework and is not intended to be called directly by the user.intNumber of most recent alerts to request.Optional parameters.org.apache.avro.SchemaThis method supports the Avro framework and is not intended to be called directly by the user.inthashCode()voidThis method supports the Avro framework and is not intended to be called directly by the user.setNumAlerts(int numAlerts) Number of most recent alerts to request.setOptions(Map<String, String> options) Optional parameters.toString()
Constructor Details
AdminShowAlertsRequest
public AdminShowAlertsRequest()Constructs an AdminShowAlertsRequest object with default parameters.AdminShowAlertsRequest
Constructs an AdminShowAlertsRequest object with the specified parameters.Parameters:numAlerts- Number of most recent alerts to request. The response will include up tonumAlertsdepending on how many alerts there are in the system. A value of 0 returns all stored alerts.options- Optional parameters. The default value is an emptyMap.
Method Details
getClassSchema
public static org.apache.avro.Schema getClassSchema()This method supports the Avro framework and is not intended to be called directly by the user.Returns:The schema for the class.setNumAlerts
Number of most recent alerts to request. The response will include up tonumAlertsdepending on how many alerts there are in the system. A value of 0 returns all stored alerts.Parameters:numAlerts- The new value fornumAlerts.Returns:thisto mimic the builder pattern.getSchema
public org.apache.avro.Schema getSchema()This method supports the Avro framework and is not intended to be called directly by the user.Specified by:getSchemain interfaceorg.apache.avro.generic.GenericContainerReturns:The schema object describing this class.get
This method supports the Avro framework and is not intended to be called directly by the user.Specified by:getin interfaceorg.apache.avro.generic.IndexedRecordParameters:index- the position of the field to getReturns:value of the field with the given index.Throws:put
This method supports the Avro framework and is not intended to be called directly by the user.Specified by:putin interfaceorg.apache.avro.generic.IndexedRecordParameters:index- the position of the field to setvalue- the value to setThrows: