public class AdminSendAlertRequest extends Object implements org.apache.avro.generic.IndexedRecord
GPUdb.adminSendAlert
.
Sends a user generated alert to the monitoring system.
Modifier and Type | Class and Description |
---|---|
static class |
AdminSendAlertRequest.LogLevel
A set of string constants for the
AdminSendAlertRequest
parameter logLevel . |
Constructor and Description |
---|
AdminSendAlertRequest()
Constructs an AdminSendAlertRequest object with default parameters.
|
AdminSendAlertRequest(String message,
String label,
String logLevel,
Map<String,String> options)
Constructs an AdminSendAlertRequest object with the specified
parameters.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Object |
get(int index)
This method supports the Avro framework and is not intended to be called
directly by the user.
|
static org.apache.avro.Schema |
getClassSchema()
This method supports the Avro framework and is not intended to be called
directly by the user.
|
String |
getLabel()
Label to add to alert message.
|
String |
getLogLevel()
Alert message logging criteria.
|
String |
getMessage()
Alert message body.
|
Map<String,String> |
getOptions()
Optional parameters.
|
org.apache.avro.Schema |
getSchema()
This method supports the Avro framework and is not intended to be called
directly by the user.
|
int |
hashCode() |
void |
put(int index,
Object value)
This method supports the Avro framework and is not intended to be called
directly by the user.
|
AdminSendAlertRequest |
setLabel(String label)
Label to add to alert message.
|
AdminSendAlertRequest |
setLogLevel(String logLevel)
Alert message logging criteria.
|
AdminSendAlertRequest |
setMessage(String message)
Alert message body.
|
AdminSendAlertRequest |
setOptions(Map<String,String> options)
Optional parameters.
|
String |
toString() |
public AdminSendAlertRequest()
public static org.apache.avro.Schema getClassSchema()
public String getMessage()
message
.public AdminSendAlertRequest setMessage(String message)
message
- The new value for message
.this
to mimic the builder pattern.public String getLabel()
label
.public AdminSendAlertRequest setLabel(String label)
label
- The new value for label
.this
to mimic the builder pattern.public String getLogLevel()
logLevel
.public AdminSendAlertRequest setLogLevel(String logLevel)
logLevel
- The new value for logLevel
.this
to mimic the builder pattern.public Map<String,String> getOptions()
Map
.options
.public AdminSendAlertRequest setOptions(Map<String,String> options)
Map
.options
- The new value for options
.this
to mimic the builder pattern.public org.apache.avro.Schema getSchema()
getSchema
in interface org.apache.avro.generic.GenericContainer
public Object get(int index)
get
in interface org.apache.avro.generic.IndexedRecord
index
- the position of the field to getIndexOutOfBoundsException
public void put(int index, Object value)
put
in interface org.apache.avro.generic.IndexedRecord
index
- the position of the field to setvalue
- the value to setIndexOutOfBoundsException
Copyright © 2025. All rights reserved.