GPUdb C++ API  Version 7.2.2.4
show_table_monitors.h
Go to the documentation of this file.
1 /*
2  * This file was autogenerated by the Kinetica schema processor.
3  *
4  * DO NOT EDIT DIRECTLY.
5  */
6 #ifndef __SHOW_TABLE_MONITORS_H__
7 #define __SHOW_TABLE_MONITORS_H__
8 
9 namespace gpudb
10 {
23  {
29  monitorIds(std::vector<std::string>()),
30  options(std::map<std::string, std::string>())
31  {
32  }
33 
44  ShowTableMonitorsRequest(const std::vector<std::string>& monitorIds_, const std::map<std::string, std::string>& options_):
45  monitorIds( monitorIds_ ),
46  options( options_ )
47  {
48  }
49 
54  std::vector<std::string> monitorIds;
55 
59  std::map<std::string, std::string> options;
60  };
61 } // end namespace gpudb
62 
63 namespace avro
64 {
65  template<> struct codec_traits<gpudb::ShowTableMonitorsRequest>
66  {
67  static void encode(Encoder& e, const gpudb::ShowTableMonitorsRequest& v)
68  {
69  ::avro::encode(e, v.monitorIds);
70  ::avro::encode(e, v.options);
71  }
72 
73  static void decode(Decoder& d, gpudb::ShowTableMonitorsRequest& v)
74  {
75  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
76  {
77  const std::vector<size_t> fo = rd->fieldOrder();
78 
79  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
80  {
81  switch (*it)
82  {
83  case 0:
84  ::avro::decode(d, v.monitorIds);
85  break;
86 
87  case 1:
88  ::avro::decode(d, v.options);
89  break;
90 
91  default:
92  break;
93  }
94  }
95  }
96  else
97  {
98  ::avro::decode(d, v.monitorIds);
99  ::avro::decode(d, v.options);
100  }
101  }
102  };
103 } // end namespace avro
104 
105 namespace gpudb
106 {
113  {
119  monitorIds(std::vector<std::string>()),
120  tableNames(std::vector<std::string>()),
121  events(std::vector<std::string>()),
122  increasingColumns(std::vector<std::string>()),
123  filterExpressions(std::vector<std::string>()),
124  refreshMethod(std::vector<std::string>()),
125  refreshPeriod(std::vector<std::string>()),
126  refreshStartTime(std::vector<std::string>()),
127  datasinkNames(std::vector<std::string>()),
128  additionalInfo(std::vector<std::map<std::string, std::string> >()),
129  info(std::map<std::string, std::string>())
130  {
131  }
132 
136  std::vector<std::string> monitorIds;
137 
142  std::vector<std::string> tableNames;
143 
147  std::vector<std::string> events;
148 
153  std::vector<std::string> increasingColumns;
154 
159  std::vector<std::string> filterExpressions;
160 
165  std::vector<std::string> refreshMethod;
166 
171  std::vector<std::string> refreshPeriod;
172 
177  std::vector<std::string> refreshStartTime;
178 
183  std::vector<std::string> datasinkNames;
184 
214  std::vector<std::map<std::string, std::string> > additionalInfo;
215 
219  std::map<std::string, std::string> info;
220  };
221 } // end namespace gpudb
222 
223 namespace avro
224 {
225  template<> struct codec_traits<gpudb::ShowTableMonitorsResponse>
226  {
227  static void encode(Encoder& e, const gpudb::ShowTableMonitorsResponse& v)
228  {
229  ::avro::encode(e, v.monitorIds);
230  ::avro::encode(e, v.tableNames);
231  ::avro::encode(e, v.events);
232  ::avro::encode(e, v.increasingColumns);
233  ::avro::encode(e, v.filterExpressions);
234  ::avro::encode(e, v.refreshMethod);
235  ::avro::encode(e, v.refreshPeriod);
236  ::avro::encode(e, v.refreshStartTime);
237  ::avro::encode(e, v.datasinkNames);
238  ::avro::encode(e, v.additionalInfo);
239  ::avro::encode(e, v.info);
240  }
241 
242  static void decode(Decoder& d, gpudb::ShowTableMonitorsResponse& v)
243  {
244  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
245  {
246  const std::vector<size_t> fo = rd->fieldOrder();
247 
248  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
249  {
250  switch (*it)
251  {
252  case 0:
253  ::avro::decode(d, v.monitorIds);
254  break;
255 
256  case 1:
257  ::avro::decode(d, v.tableNames);
258  break;
259 
260  case 2:
261  ::avro::decode(d, v.events);
262  break;
263 
264  case 3:
265  ::avro::decode(d, v.increasingColumns);
266  break;
267 
268  case 4:
269  ::avro::decode(d, v.filterExpressions);
270  break;
271 
272  case 5:
273  ::avro::decode(d, v.refreshMethod);
274  break;
275 
276  case 6:
277  ::avro::decode(d, v.refreshPeriod);
278  break;
279 
280  case 7:
281  ::avro::decode(d, v.refreshStartTime);
282  break;
283 
284  case 8:
285  ::avro::decode(d, v.datasinkNames);
286  break;
287 
288  case 9:
289  ::avro::decode(d, v.additionalInfo);
290  break;
291 
292  case 10:
293  ::avro::decode(d, v.info);
294  break;
295 
296  default:
297  break;
298  }
299  }
300  }
301  else
302  {
303  ::avro::decode(d, v.monitorIds);
304  ::avro::decode(d, v.tableNames);
305  ::avro::decode(d, v.events);
306  ::avro::decode(d, v.increasingColumns);
307  ::avro::decode(d, v.filterExpressions);
308  ::avro::decode(d, v.refreshMethod);
309  ::avro::decode(d, v.refreshPeriod);
310  ::avro::decode(d, v.refreshStartTime);
311  ::avro::decode(d, v.datasinkNames);
312  ::avro::decode(d, v.additionalInfo);
313  ::avro::decode(d, v.info);
314  }
315  }
316  };
317 } // end namespace avro
318 
319 #endif // __SHOW_TABLE_MONITORS_H__
std::vector< std::string > monitorIds
List of monitors to be shown.
std::map< std::string, std::string > options
Optional parameters.
std::vector< std::string > refreshPeriod
List of refresh periods used on the respective tables in tableNames.
std::vector< std::string > events
List of notification events for the respective monitorIds.
ShowTableMonitorsRequest(const std::vector< std::string > &monitorIds_, const std::map< std::string, std::string > &options_)
Constructs a ShowTableMonitorsRequest object with the specified parameters.
std::vector< std::string > refreshMethod
List of refresh methods used on the respective tables in tableNames.
ShowTableMonitorsRequest()
Constructs a ShowTableMonitorsRequest object with default parameters.
A set of results returned by GPUdb::showTableMonitors.
std::vector< std::string > datasinkNames
List of datasink names for the respective monitorIds if one is defined.
std::vector< std::string > monitorIds
List of monitor IDs.
std::vector< std::string > refreshStartTime
List of refresh start times used on the respective tables in tableNames.
ShowTableMonitorsResponse()
Constructs a ShowTableMonitorsResponse object with default parameters.
std::vector< std::string > increasingColumns
List of columns used on the respective tables in tableNames that will increase for new records.
std::vector< std::string > tableNames
List of source tables being monitored for the respective monitorIds.
A set of parameters for GPUdb::showTableMonitors.
std::map< std::string, std::string > info
Additional information.
std::vector< std::string > filterExpressions
List of filter expressions used on the respective tables in tableNames to limit records for notificat...
std::vector< std::map< std::string, std::string > > additionalInfo
Additional information about the respective monitors in monitorIds.