> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kinetica.com/llms.txt
> Use this file to discover all available pages before exploring further.

# create_table_monitor

### create\_table\_monitor

<ul>
  <li>
    create\_table\_monitor(\
    &#x20;table\_name: string,\
    &#x20;options?: Record\<string, string>,\
    &#x20;callback?: [GPUdbCallback](https://docs.kinetica.com/content/api/typescript/types/GPUdbCallback.md),\
    ): Promise\<[CreateTableMonitorResponse](https://docs.kinetica.com/content/api/typescript/interfaces/CreateTableMonitorResponse.md)>

    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 `clear_table_monitor`.For more information on table monitors, see Table Monitors.

    #### Parameters

    <ul>
      <li>
        table\_name: string

        Name of the table to monitor, in \[schema\_name.]table\_name format, using standard name resolution rules.
      </li>

      <li>
        `Optional`options: Record\<string, string>

        Optional parameters.
      </li>

      <li>
        `Optional`callback: [GPUdbCallback](https://docs.kinetica.com/content/api/typescript/types/GPUdbCallback.md)

        Optional callback function
      </li>
    </ul>

    #### Returns Promise\<[CreateTableMonitorResponse](https://docs.kinetica.com/content/api/typescript/interfaces/CreateTableMonitorResponse.md)>

    Promise\<Types.CreateTableMonitorResponse> - Promise resolving to the response

    <ul>
      <li>Defined in [src/GPUdb.ts:7102](https://github.com/kineticadb/kinetica-api-typescript/blob/master/src/GPUdb.ts#L7102)</li>
    </ul>
  </li>
</ul>

### create\_table\_monitor\_request

<ul>
  <li>
    create\_table\_monitor\_request(\
    &#x20;request: [CreateTableMonitorRequest](https://docs.kinetica.com/content/api/typescript/interfaces/CreateTableMonitorRequest.md),\
    &#x20;callback?: [GPUdbCallback](https://docs.kinetica.com/content/api/typescript/types/GPUdbCallback.md),\
    ): Promise\<[CreateTableMonitorResponse](https://docs.kinetica.com/content/api/typescript/interfaces/CreateTableMonitorResponse.md)>

    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 `clear_table_monitor`.For more information on table monitors, see Table Monitors.

    #### Parameters

    <ul>
      <li>
        request: [CreateTableMonitorRequest](https://docs.kinetica.com/content/api/typescript/interfaces/CreateTableMonitorRequest.md)

        Request object containing the parameters for the operation
      </li>

      <li>
        `Optional`callback: [GPUdbCallback](https://docs.kinetica.com/content/api/typescript/types/GPUdbCallback.md)

        Optional callback function
      </li>
    </ul>

    #### Returns Promise\<[CreateTableMonitorResponse](https://docs.kinetica.com/content/api/typescript/interfaces/CreateTableMonitorResponse.md)>

    Promise\<Types.CreateTableMonitorResponse> - Promise resolving to the response

    <ul>
      <li>Defined in [src/GPUdb.ts:7067](https://github.com/kineticadb/kinetica-api-typescript/blob/master/src/GPUdb.ts#L7067)</li>
    </ul>
  </li>
</ul>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.