Files
osmedeus/test/testdata/workflows/test-debounce-dedupe.yaml
T
j3ssie 777fb7c2bf chore: update ui build artifacts and refactor event trigger input syntax
- Update Next.js build IDs and chunk hashes in workflow upload static files
- Replace deprecated 'input' field syntax with new exports-style variables in event triggers (e.g., 'Target: event_data.value' instead of type/field/name)
- Simplify parameter override syntax in test workflows (remove nested 'default' structure)
2026-01-24 16:24:50 +08:00

45 lines
1.1 KiB
YAML

name: test-debounce-dedupe
kind: module
desc: Test workflow for debounce and deduplication features
params:
- name: output
default: "/tmp/debounce-dedupe-test"
triggers:
# Watch trigger with debounce - waits 500ms after last change before triggering
- name: on-asset-change
on: watch
path: "{{output}}/assets.txt"
debounce: 500ms
enabled: true
# Event trigger with deduplication - ignores duplicate events within 10s window
- name: on-new-asset
on: event
event:
topic: "assets.new"
dedupe_key: "{{event.source}}-{{event.data.url}}"
dedupe_window: 10s
enabled: true
# Event trigger with filters and deduplication
- name: on-critical-vuln
on: event
event:
topic: "vulnerabilities.new"
filters:
- "event.data.severity == 'critical'"
dedupe_key: "{{event.data.template}}-{{event.data.host}}"
dedupe_window: 5m
enabled: true
steps:
- name: log-event
type: function
call: log_info("Trigger fired: {{_step_name}}")
- name: process-target
type: bash
run: echo "Processing target: {{target}}"