Skip to main content
alter_table_monitor(topic_id=None, monitor_updates_map=None, options=)[source]

Alters a table monitor previously created with GPUdb.create_table_monitor().

Parameters

topic_id (str) –

The topic ID returned by GPUdb.create_table_monitor().

monitor_updates_map (dict of str to str) –

Map containing the properties of the table monitor to be updated. Error if empty. Allowed keys are:

  • schema_name – Updates the schema name. If schema_name doesn’t exist, an error will be thrown. If schema_name is empty, then the user’s default schema will be used.

  • max_consecutive_failures – Updates the maximum number of consecutive failures before suspending the stream. A value of ‘-1’ to disables auto-suspend. This value is by rank and not overall.

  • notifications – Updates the state of the monitor. Allowed values are:

    • resume

    • suspend

    The default value is an empty dict ( ).

options (dict of str to str) –

Optional parameters. The default value is an empty dict ( ).

Returns

A dict with the following entries–

topic_id (str) –

Value of input parameter topic_id.

info (dict of str to str) –

Additional information.