GPUdb C++ API  Version 7.2.3.0
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  joinTableNames(std::vector<std::string>()),
125  joinColumnNames(std::vector<std::string>()),
126  joinExpressions(std::vector<std::string>()),
127  refreshMethod(std::vector<std::string>()),
128  refreshPeriod(std::vector<std::string>()),
129  refreshStartTime(std::vector<std::string>()),
130  datasinkNames(std::vector<std::string>()),
131  maxConsecutiveFailures(std::vector<int32_t>()),
132  failedNotificationsTableNames(std::vector<std::string>()),
133  statuses(std::vector<std::string>()),
134  additionalInfo(std::vector<std::map<std::string, std::string> >()),
135  info(std::map<std::string, std::string>())
136  {
137  }
138 
142  std::vector<std::string> monitorIds;
143 
148  std::vector<std::string> tableNames;
149 
153  std::vector<std::string> events;
154 
159  std::vector<std::string> increasingColumns;
160 
165  std::vector<std::string> filterExpressions;
166 
170  std::vector<std::string> joinTableNames;
171 
175  std::vector<std::string> joinColumnNames;
176 
180  std::vector<std::string> joinExpressions;
181 
186  std::vector<std::string> refreshMethod;
187 
192  std::vector<std::string> refreshPeriod;
193 
198  std::vector<std::string> refreshStartTime;
199 
204  std::vector<std::string> datasinkNames;
205 
210  std::vector<int32_t> maxConsecutiveFailures;
211 
216  std::vector<std::string> failedNotificationsTableNames;
217 
221  std::vector<std::string> statuses;
222 
252  std::vector<std::map<std::string, std::string> > additionalInfo;
253 
257  std::map<std::string, std::string> info;
258  };
259 } // end namespace gpudb
260 
261 namespace avro
262 {
263  template<> struct codec_traits<gpudb::ShowTableMonitorsResponse>
264  {
265  static void encode(Encoder& e, const gpudb::ShowTableMonitorsResponse& v)
266  {
267  ::avro::encode(e, v.monitorIds);
268  ::avro::encode(e, v.tableNames);
269  ::avro::encode(e, v.events);
270  ::avro::encode(e, v.increasingColumns);
271  ::avro::encode(e, v.filterExpressions);
272  ::avro::encode(e, v.joinTableNames);
273  ::avro::encode(e, v.joinColumnNames);
274  ::avro::encode(e, v.joinExpressions);
275  ::avro::encode(e, v.refreshMethod);
276  ::avro::encode(e, v.refreshPeriod);
277  ::avro::encode(e, v.refreshStartTime);
278  ::avro::encode(e, v.datasinkNames);
279  ::avro::encode(e, v.maxConsecutiveFailures);
280  ::avro::encode(e, v.failedNotificationsTableNames);
281  ::avro::encode(e, v.statuses);
282  ::avro::encode(e, v.additionalInfo);
283  ::avro::encode(e, v.info);
284  }
285 
286  static void decode(Decoder& d, gpudb::ShowTableMonitorsResponse& v)
287  {
288  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
289  {
290  const std::vector<size_t> fo = rd->fieldOrder();
291 
292  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
293  {
294  switch (*it)
295  {
296  case 0:
297  ::avro::decode(d, v.monitorIds);
298  break;
299 
300  case 1:
301  ::avro::decode(d, v.tableNames);
302  break;
303 
304  case 2:
305  ::avro::decode(d, v.events);
306  break;
307 
308  case 3:
309  ::avro::decode(d, v.increasingColumns);
310  break;
311 
312  case 4:
313  ::avro::decode(d, v.filterExpressions);
314  break;
315 
316  case 5:
317  ::avro::decode(d, v.joinTableNames);
318  break;
319 
320  case 6:
321  ::avro::decode(d, v.joinColumnNames);
322  break;
323 
324  case 7:
325  ::avro::decode(d, v.joinExpressions);
326  break;
327 
328  case 8:
329  ::avro::decode(d, v.refreshMethod);
330  break;
331 
332  case 9:
333  ::avro::decode(d, v.refreshPeriod);
334  break;
335 
336  case 10:
337  ::avro::decode(d, v.refreshStartTime);
338  break;
339 
340  case 11:
341  ::avro::decode(d, v.datasinkNames);
342  break;
343 
344  case 12:
345  ::avro::decode(d, v.maxConsecutiveFailures);
346  break;
347 
348  case 13:
349  ::avro::decode(d, v.failedNotificationsTableNames);
350  break;
351 
352  case 14:
353  ::avro::decode(d, v.statuses);
354  break;
355 
356  case 15:
357  ::avro::decode(d, v.additionalInfo);
358  break;
359 
360  case 16:
361  ::avro::decode(d, v.info);
362  break;
363 
364  default:
365  break;
366  }
367  }
368  }
369  else
370  {
371  ::avro::decode(d, v.monitorIds);
372  ::avro::decode(d, v.tableNames);
373  ::avro::decode(d, v.events);
374  ::avro::decode(d, v.increasingColumns);
375  ::avro::decode(d, v.filterExpressions);
376  ::avro::decode(d, v.joinTableNames);
377  ::avro::decode(d, v.joinColumnNames);
378  ::avro::decode(d, v.joinExpressions);
379  ::avro::decode(d, v.refreshMethod);
380  ::avro::decode(d, v.refreshPeriod);
381  ::avro::decode(d, v.refreshStartTime);
382  ::avro::decode(d, v.datasinkNames);
383  ::avro::decode(d, v.maxConsecutiveFailures);
384  ::avro::decode(d, v.failedNotificationsTableNames);
385  ::avro::decode(d, v.statuses);
386  ::avro::decode(d, v.additionalInfo);
387  ::avro::decode(d, v.info);
388  }
389  }
390  };
391 } // end namespace avro
392 
393 #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< int32_t > maxConsecutiveFailures
Maximum number of consecutive failures for the respective monitorIds before stream is automatically s...
std::vector< std::string > joinColumnNames
List of join_column_names.
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 > statuses
Status of stream for the respective monitorIds.
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 > joinTableNames
List of join_table_names.
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::string > failedNotificationsTableNames
List of table names that will hold failed notification events when the respective monitorIds is suspe...
std::vector< std::map< std::string, std::string > > additionalInfo
Additional information about the respective monitors in monitorIds.
std::vector< std::string > joinExpressions
List of join expressions.