pub async fn create_trigger_by_area( &self, request_id: String, table_names: Vec<String>, x_column_name: String, x_vector: Vec<f64>, y_column_name: String, y_vector: Vec<f64>, ) -> Result<CreateTriggerByAreaResponse, KineticaError>
Create a table trigger for new records falling within a 2-D boundary
Sets up an area trigger mechanism for two column_names for one or more tables. (This function is essentially the two-dimensional version of /create/trigger/byrange.) Once the trigger has been activated, any record added to the listed tables(s) via /insert/records with the chosen columns’ values falling within the specified region will trip the trigger. All such records will be queued at the trigger port (by default ‘9001’ but able to be retrieved via /show/system/status) for any listening client to collect. Active triggers can be cancelled by using the /clear/trigger endpoint or by clearing all relevant tables.
The output returns the trigger handle as well as indicating success or failure of the trigger activation.
request_id- User-created ID for the trigger. The ID can be alphanumeric, contain symbols, and must contain at least one character.table_names- Names of the tables on which the trigger will be activated and maintained, each in [schema_name.]table_name format, using standard name resolution rules.x_column_name- Name of a numeric column on which the trigger is activated. Usually ‘x’ for geospatial data points.x_vector- The respective coordinate values for the region on which the trigger is activated. This usually translates to the x-coordinates of a geospatial region.y_column_name- Name of a second numeric column on which the trigger is activated. Usually ‘y’ for geospatial data points.y_vector- The respective coordinate values for the region on which the trigger is activated. This usually translates to the y-coordinates of a geospatial region. Must be the same length as xvals.
pub async fn create_trigger_by_area_with_opts( &self, request_id: String, table_names: Vec<String>, x_column_name: String, x_vector: Vec<f64>, y_column_name: String, y_vector: Vec<f64>, options: CreateTriggerByAreaRequestOptions, ) -> Result<CreateTriggerByAreaResponse, KineticaError>
Create a table trigger for new records falling within a 2-D boundary
Sets up an area trigger mechanism for two column_names for one or more tables. (This function is essentially the two-dimensional version of /create/trigger/byrange.) Once the trigger has been activated, any record added to the listed tables(s) via /insert/records with the chosen columns’ values falling within the specified region will trip the trigger. All such records will be queued at the trigger port (by default ‘9001’ but able to be retrieved via /show/system/status) for any listening client to collect. Active triggers can be cancelled by using the /clear/trigger endpoint or by clearing all relevant tables.
The output returns the trigger handle as well as indicating success or failure of the trigger activation.
request_id- User-created ID for the trigger. The ID can be alphanumeric, contain symbols, and must contain at least one character.table_names- Names of the tables on which the trigger will be activated and maintained, each in [schema_name.]table_name format, using standard name resolution rules.x_column_name- Name of a numeric column on which the trigger is activated. Usually ‘x’ for geospatial data points.x_vector- The respective coordinate values for the region on which the trigger is activated. This usually translates to the x-coordinates of a geospatial region.y_column_name- Name of a second numeric column on which the trigger is activated. Usually ‘y’ for geospatial data points.y_vector- The respective coordinate values for the region on which the trigger is activated. This usually translates to the y-coordinates of a geospatial region. Must be the same length as xvals.options- The optional parameters; any left unset take the server’s defaults.
pub async fn create_trigger_by_area_raw( &self, request: &CreateTriggerByAreaRequest, ) -> Result<CreateTriggerByAreaResponse, KineticaError>
Sends a pre-built CreateTriggerByAreaRequest to the /create/trigger/byarea endpoint.
pub async fn create_trigger_by_area_from_url( &self, url: &str, request: &CreateTriggerByAreaRequest, ) -> Result<CreateTriggerByAreaResponse, KineticaError>
Sends a pre-built CreateTriggerByAreaRequest to a specific worker URL, bypassing HA head-node selection. Used for multi-head access.