filter_variants
Filter event logs to retain or remove trace variants by their frequency or specific activity sequences. Use top-K to ignore rare noise or specify variants to keep or remove.
Instructions
Filter a log by trace variant.
Exactly one of top_k and variants must be given:
top_k=N— keep (or remove, ifretain=False) the N most frequent variants. Useful for ignoring rare noise.variants=[[act1, act2, ...], ...]— keep/remove specific variants by their full activity sequence.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top_k | No | ||
| log_id | Yes | ||
| retain | No | ||
| variants | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||