Kinetica   C#   API  Version 7.2.3.1
CreateTableMonitor.cs
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 
7 using System.Collections.Generic;
8 
9 namespace kinetica;
10 
32 {
36  public struct Options
37  {
63  public const string EVENT = "event";
64 
68  public const string INSERT = "insert";
69 
73  public const string UPDATE = "update";
74 
78  public const string DELETE = "delete";
79 
82  public const string MONITOR_ID = "monitor_id";
83 
87  public const string DATASINK_NAME = "datasink_name";
88 
93  public const string MAX_CONSECUTIVE_FAILURES = "max_consecutive_failures";
94 
104  public const string FAILED_NOTIFICATIONS_TABLE_NAME = "failed_notifications_table_name";
105 
110  public const string DESTINATION = "destination";
111 
115  public const string KAFKA_TOPIC_NAME = "kafka_topic_name";
116 
119  public const string INCREASING_COLUMN = "increasing_column";
120 
123  public const string EXPRESSION = "expression";
124 
132  public const string JOIN_TABLE_NAMES = "join_table_names";
133 
140  public const string JOIN_COLUMN_NAMES = "join_column_names";
141 
148  public const string JOIN_EXPRESSIONS = "join_expressions";
149 
167  public const string REFRESH_METHOD = "refresh_method";
168 
170  public const string ON_CHANGE = "on_change";
171 
174  public const string PERIODIC = "periodic";
175 
180  public const string REFRESH_PERIOD = "refresh_period";
181 
188  public const string REFRESH_START_TIME = "refresh_start_time";
189  } // end struct Options
190 
195  public string table_name { get; set; }
196 
363  public IDictionary<string, string> options { get; set; } = new Dictionary<string, string>();
364 
368 
543  IDictionary<string, string> options = null)
544  {
545  this.table_name = table_name ?? "";
546  this.options = options ?? new Dictionary<string, string>();
547  } // end constructor
548 } // end class CreateTableMonitorRequest
549 
554 {
558  public struct Info
559  {
562  public const string TTL = "ttl";
563 
567  public const string INSERT_TOPIC_ID = "insert_topic_id";
568 
572  public const string UPDATE_TOPIC_ID = "update_topic_id";
573 
577  public const string DELETE_TOPIC_ID = "delete_topic_id";
578 
581  public const string INSERT_TYPE_SCHEMA = "insert_type_schema";
582 
584  public const string UPDATE_TYPE_SCHEMA = "update_type_schema";
585 
587  public const string DELETE_TYPE_SCHEMA = "delete_type_schema";
588  } // end struct Info
589 
591  public string topic_id { get; set; }
592 
595  public string table_name { get; set; }
596 
599  public string type_schema { get; set; }
600 
652  public IDictionary<string, string> info { get; set; } = new Dictionary<string, string>();
653 } // end class CreateTableMonitorResponse
const string INSERT
Get notifications of new record insertions.
const string REFRESH_PERIOD
When REFRESH_METHOD is PERIODIC, specifies the period in seconds at which changes are reported.
const string REFRESH_START_TIME
When REFRESH_METHOD is PERIODIC, specifies the first time at which changes are reported.
const string EVENT
Type of modification event on the target table to be monitored by this table monitor.
const string FAILED_NOTIFICATIONS_TABLE_NAME
Name of a table to which failed stream notifications are written when the stream is suspended.
IDictionary< string, string > info
Additional information.
A set of parameters for Kinetica.createTableMonitor.
const string UPDATE_TYPE_SCHEMA
The JSON Avro schema for 'update' events.
const string INCREASING_COLUMN
Column on subscribed table that will increase for new records (e.g., TIMESTAMP).
string type_schema
JSON Avro schema of the table, for use in decoding published records.
A set of string constants for the parameter options.
KineticaData - class to help with Avro Encoding for Kinetica
Definition: KineticaData.cs:14
const string TTL
For insert_table/delete_table events, the ttl of the table.
const string REFRESH_METHOD
Method controlling when the table monitor reports changes to the table_name.
string table_name
Name of the table to monitor, in [schema_name.
const string UPDATE_TOPIC_ID
The topic id for 'update' EVENT in options.
const string JOIN_TABLE_NAMES
A comma-separated list of tables (optionally with aliases) to include in the join.
const string EXPRESSION
Filter expression to limit records for notification.
const string DESTINATION
Destination for the output data in format 'destination_type://path[:port]'.
A set of results returned by Kinetica.createTableMonitor.
CreateTableMonitorRequest()
Constructs a CreateTableMonitorRequest object with default parameters.
const string DELETE_TOPIC_ID
The topic id for 'delete' EVENT in options.
const string DATASINK_NAME
Name of an existing data sink to send change data notifications to.
string table_name
Value of table_name.
const string DELETE
Get notifications of delete operations.
const string JOIN_EXPRESSIONS
Filter or join expressions to apply when combining the tables.
const string INSERT_TYPE_SCHEMA
The JSON Avro schema of the table in table_name.
CreateTableMonitorRequest(string table_name, IDictionary< string, string > options=null)
Constructs a CreateTableMonitorRequest object with the specified parameters.
string topic_id
The ZMQ topic ID to subscribe to for table events.
const string DELETE_TYPE_SCHEMA
The JSON Avro schema for 'delete' events.
IDictionary< string, string > options
Optional parameters.
const string JOIN_COLUMN_NAMES
A comma-separated list of columns or expressions to include from the joined tables.
const string KAFKA_TOPIC_NAME
Name of the Kafka topic to publish to if DESTINATION in options is specified and is a Kafka broker.
const string PERIODIC
Report changes periodically at rate specified by REFRESH_PERIOD.
const string INSERT_TOPIC_ID
The topic id for 'insert' EVENT in options.
const string MONITOR_ID
ID to use for this monitor instead of a randomly generated one.
const string ON_CHANGE
Report changes as they occur.
A set of string constants for the parameter info.
const string UPDATE
Get notifications of update operations.
const string MAX_CONSECUTIVE_FAILURES
Maximum number of consecutive failed notification attempts before suspending the stream.