6 #ifndef __ADMIN_SHOW_ALERTS_H__ 7 #define __ADMIN_SHOW_ALERTS_H__ 26 options(std::map<std::string, std::string>())
58 std::map<std::string, std::string>
options;
64 template<>
struct codec_traits<
gpudb::AdminShowAlertsRequest>
74 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
76 const std::vector<size_t> fo = rd->fieldOrder();
78 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
119 types(std::vector<std::string>()),
120 params(std::vector<std::map<std::string, std::string> >()),
121 info(std::map<std::string, std::string>())
144 std::vector<std::map<std::string, std::string> >
params;
149 std::map<std::string, std::string>
info;
155 template<>
struct codec_traits<
gpudb::AdminShowAlertsResponse>
160 ::avro::encode(e, v.
types);
161 ::avro::encode(e, v.
params);
162 ::avro::encode(e, v.
info);
167 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
169 const std::vector<size_t> fo = rd->fieldOrder();
171 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
180 ::avro::decode(d, v.
types);
184 ::avro::decode(d, v.
params);
188 ::avro::decode(d, v.
info);
199 ::avro::decode(d, v.
types);
200 ::avro::decode(d, v.
params);
201 ::avro::decode(d, v.
info);
207 #endif // __ADMIN_SHOW_ALERTS_H__ std::map< std::string, std::string > options
Optional parameters.
AdminShowAlertsRequest(const int32_t numAlerts_, const std::map< std::string, std::string > &options_)
Constructs an AdminShowAlertsRequest object with the specified parameters.
std::vector< std::string > timestamps
Timestamp for when the alert occurred, sorted from most recent to least recent.
std::vector< std::string > types
Type of system alert, sorted from most recent to least recent.
int32_t numAlerts
Number of most recent alerts to request.
std::map< std::string, std::string > info
Additional information.
AdminShowAlertsResponse()
Constructs an AdminShowAlertsResponse object with default parameters.
std::vector< std::map< std::string, std::string > > params
Parameters for each alert, sorted from most recent to least recent.
AdminShowAlertsRequest()
Constructs an AdminShowAlertsRequest object with default parameters.
A set of parameters for GPUdb::adminShowAlerts.
A set of results returned by GPUdb::adminShowAlerts.