6 #ifndef __ADMIN_SEND_ALERT_H__ 7 #define __ADMIN_SEND_ALERT_H__ 27 options(std::map<std::string, std::string>())
55 AdminSendAlertRequest(
const std::string& message_,
const std::string& label_,
const std::string& logLevel_,
const std::map<std::string, std::string>& options_):
89 std::map<std::string, std::string>
options;
95 template<>
struct codec_traits<
gpudb::AdminSendAlertRequest>
100 ::avro::encode(e, v.
label);
107 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
109 const std::vector<size_t> fo = rd->fieldOrder();
111 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
120 ::avro::decode(d, v.
label);
139 ::avro::decode(d, v.
label);
160 info(std::map<std::string, std::string>())
167 std::map<std::string, std::string>
info;
173 template<>
struct codec_traits<
gpudb::AdminSendAlertResponse>
177 ::avro::encode(e, v.
info);
182 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
184 const std::vector<size_t> fo = rd->fieldOrder();
186 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
191 ::avro::decode(d, v.
info);
201 ::avro::decode(d, v.
info);
207 #endif // __ADMIN_SEND_ALERT_H__ A set of results returned by GPUdb::adminSendAlert.
std::map< std::string, std::string > info
Additional information.
A set of parameters for GPUdb::adminSendAlert.
std::map< std::string, std::string > options
Optional parameters.
AdminSendAlertResponse()
Constructs an AdminSendAlertResponse object with default parameters.
std::string logLevel
Alert message logging criteria.
std::string label
Label to add to alert message.
std::string message
Alert message body.
AdminSendAlertRequest(const std::string &message_, const std::string &label_, const std::string &logLevel_, const std::map< std::string, std::string > &options_)
Constructs an AdminSendAlertRequest object with the specified parameters.
AdminSendAlertRequest()
Constructs an AdminSendAlertRequest object with default parameters.