sdk.project_filter.create_mapping()
elements.sdk.api.filter
Create a project filter mapping.
Map a filter to a project analysis configuration. This allows filters to be applied at the project level.
Parameters
- filter_id (str) - The filter ID to map
- analysis_config_id (str) - The analysis configuration ID
- node_name (str) - The name of the node in the analysis DAG to apply the filter to
- project_id (str) - The project ID
- input_filter (bool) - Whether this is an input filter (True) or output filter (False)
Returns
None
Example(s)
# Create a project filter mapping for input filtering
await sdk.project_filter.create_mapping(
filter_id="filter-uuid",
analysis_config_id="analysis-config-uuid",
node_name="detection_algorithm",
project_id="project-uuid",
input_filter=True
)
# Create a project filter mapping for output filtering
await sdk.project_filter.create_mapping(
filter_id="filter-uuid",
analysis_config_id="analysis-config-uuid",
node_name="detection_algorithm",
project_id="project-uuid",
input_filter=False
)Updated 6 months ago