ConnectorFilter#
- class cegalprizm.hub.ConnectorFilter(target_connector_id: Optional[str] = None, labels_dict=None)#
A filter to target a particular instance of a Connector that is joined to Cegal Hub Server. If a target_connector_id is provided this ensures that a connector with given id will be addressed. Alternatively a dictionary of labels may be provided. This dictionary of strings are key - value pairs for labels that a Connector has. Any specified labels must be satisfied by the Connector for that Connector to be targeted. A target_connector_id is always used in preference to any labels that are defined.
Creates a ConnectionFilter from the given parameters
- Parameters
target_connector_id (str, optional) – the unique guid representing a particular connector instance. Defaults to None.
labels_dict – key-value pairs for labels that must be satisfied to target a particular Connector instance. Defaults to None.
- property labels#
The current labels dictionary key values
- Returns
The current key-values labels dictionary
- Return type
[type]
- property labels_dict#
The current labels dictionary key values
- Returns
The current key-values labels dictionary
- Return type
[type]
- property target_connector_id#
Gets the target connector id that the ConnectorFilter will use to target a specific Connector instance
- Returns
The identifier representing the target connector for the ConnectorFilter
- Return type
[str]