Kinetica   C#   API  Version 7.2.3.0
kinetica.CreateTableMonitorRequest Class Reference

A set of parameters for Kinetica.createTableMonitor. More...

+ Inheritance diagram for kinetica.CreateTableMonitorRequest:
+ Collaboration diagram for kinetica.CreateTableMonitorRequest:

Classes

struct  Options
 A set of string constants for the parameter options. More...
 

Public Member Functions

 CreateTableMonitorRequest ()
 Constructs a CreateTableMonitorRequest object with default parameters. More...
 
 CreateTableMonitorRequest (string table_name, IDictionary< string, string > options=null)
 Constructs a CreateTableMonitorRequest object with the specified parameters. More...
 
- Public Member Functions inherited from kinetica.KineticaData
 KineticaData (KineticaType type)
 Constructor from Kinetica Type More...
 
 KineticaData (System.Type type=null)
 Default constructor, with optional System.Type More...
 
object Get (int fieldPos)
 Retrieve a specific property from this object More...
 
void Put (int fieldPos, object fieldValue)
 Write a specific property to this object More...
 

Properties

string table_name [get, set]
 Name of the table to monitor, in [schema_name. More...
 
IDictionary< string, string > options = new Dictionary<string, string>() [get, set]
 Optional parameters. More...
 
- Properties inherited from kinetica.KineticaData
Schema Schema [get]
 Avro Schema for this class More...
 

Additional Inherited Members

- Static Public Member Functions inherited from kinetica.KineticaData
static ? RecordSchema SchemaFromType (System.Type t, KineticaType? ktype=null)
 Create an Avro Schema from a System.Type and a KineticaType. More...
 

Detailed Description

A set of parameters for Kinetica.createTableMonitor.

Creates a monitor that watches for a single table modification event type (insert, update, or delete) on a particular table (identified by table_name) and forwards event notifications to subscribers via ZMQ. After this call completes, subscribe to the returned topic_id on the ZMQ table monitor port (default 9002). Each time an operation of the given type on the table completes, a multipart message is published for that topic; the first part contains only the topic ID, and each subsequent part contains one binary-encoded Avro object that corresponds to the event and can be decoded using type_schema. The monitor will continue to run (regardless of whether or not there are any subscribers) until deactivated with Kinetica.clearTableMonitor.

For more information on table monitors, see Table Monitors.

Definition at line 32 of file CreateTableMonitor.cs.

Constructor & Destructor Documentation

◆ CreateTableMonitorRequest() [1/2]

kinetica.CreateTableMonitorRequest.CreateTableMonitorRequest ( )
inline

Constructs a CreateTableMonitorRequest object with default parameters.

Definition at line 285 of file CreateTableMonitor.cs.

◆ CreateTableMonitorRequest() [2/2]

kinetica.CreateTableMonitorRequest.CreateTableMonitorRequest ( string  table_name,
IDictionary< string, string >  options = null 
)
inline

Constructs a CreateTableMonitorRequest object with the specified parameters.

Parameters
table_nameName of the table to monitor, in [schema_name.]table_name format, using standard name resolution rules.
optionsOptional parameters.
  • EVENT: Type of modification event on the target table to be monitored by this table monitor. Supported values:
    • INSERT: Get notifications of new record insertions. The new row images are forwarded to the subscribers.
    • UPDATE: Get notifications of update operations. The modified row count information is forwarded to the subscribers.
    • DELETE: Get notifications of delete operations. The deleted row count information is forwarded to the subscribers.
    The default value is INSERT.
  • MONITOR_ID: ID to use for this monitor instead of a randomly generated one
  • DATASINK_NAME: Name of an existing data sink to send change data notifications to
  • DESTINATION: Destination for the output data in format 'destination_type://path[:port]'. Supported destination types are 'http', 'https' and 'kafka'.
  • KAFKA_TOPIC_NAME: Name of the Kafka topic to publish to if DESTINATION in options is specified and is a Kafka broker
  • INCREASING_COLUMN: Column on subscribed table that will increase for new records (e.g., TIMESTAMP).
  • EXPRESSION: Filter expression to limit records for notification
  • REFRESH_METHOD: Method controlling when the table monitor reports changes to the table_name . Supported values: The default value is ON_CHANGE.
  • REFRESH_PERIOD: When REFRESH_METHOD is PERIODIC, specifies the period in seconds at which changes are reported.
  • REFRESH_START_TIME: When REFRESH_METHOD is PERIODIC, specifies the first time at which changes are reported. Value is a datetime string with format 'YYYY-MM-DD HH:MM:SS'.
The default value is an empty Dictionary.

Definition at line 415 of file CreateTableMonitor.cs.

Property Documentation

◆ options

IDictionary<string, string> kinetica.CreateTableMonitorRequest.options = new Dictionary<string, string>()
getset

Optional parameters.

  • EVENT: Type of modification event on the target table to be monitored by this table monitor. Supported values:
    • INSERT: Get notifications of new record insertions. The new row images are forwarded to the subscribers.
    • UPDATE: Get notifications of update operations. The modified row count information is forwarded to the subscribers.
    • DELETE: Get notifications of delete operations. The deleted row count information is forwarded to the subscribers.
    The default value is INSERT.
  • MONITOR_ID: ID to use for this monitor instead of a randomly generated one
  • DATASINK_NAME: Name of an existing data sink to send change data notifications to
  • DESTINATION: Destination for the output data in format 'destination_type://path[:port]'. Supported destination types are 'http', 'https' and 'kafka'.
  • KAFKA_TOPIC_NAME: Name of the Kafka topic to publish to if DESTINATION in options is specified and is a Kafka broker
  • INCREASING_COLUMN: Column on subscribed table that will increase for new records (e.g., TIMESTAMP).
  • EXPRESSION: Filter expression to limit records for notification
  • REFRESH_METHOD: Method controlling when the table monitor reports changes to the table_name. Supported values: The default value is ON_CHANGE.
  • REFRESH_PERIOD: When REFRESH_METHOD is PERIODIC, specifies the period in seconds at which changes are reported.
  • REFRESH_START_TIME: When REFRESH_METHOD is PERIODIC, specifies the first time at which changes are reported. Value is a datetime string with format 'YYYY-MM-DD HH:MM:SS'.

The default value is an empty Dictionary.

Definition at line 281 of file CreateTableMonitor.cs.

◆ table_name

string kinetica.CreateTableMonitorRequest.table_name
getset

Name of the table to monitor, in [schema_name.

]table_name format, using standard name resolution rules.

Definition at line 158 of file CreateTableMonitor.cs.


The documentation for this class was generated from the following file: