
Introduces the time_sync object which can sync time with an external time service (like the time_sync service in notigen). This is used for playback of old events. It prevents premature expiry triggers. Also some tweaks to the UsageHandler, work in progress and used for testing. Change-Id: I45033fbd9c12d98f96816a4f90cf7dc8c915ef51
24 lines
565 B
YAML
24 lines
565 B
YAML
---
|
|
- name: test_trigger
|
|
debug_level: 2
|
|
distinguished_by:
|
|
- instance_id
|
|
- timestamp: "day"
|
|
expiration: "$last + 1h"
|
|
fire_pipeline: "test_pipeline"
|
|
expire_pipeline: "test_expire_pipeline"
|
|
match_criteria:
|
|
- event_type:
|
|
- compute.instance.*
|
|
- "!compute.instance.exists"
|
|
#### Traits are optional.
|
|
# traits:
|
|
# os_distro: ubuntu
|
|
# memory_mb:
|
|
# numeric: "> 4096"
|
|
- event_type: compute.instance.exists
|
|
map_distingushed_by:
|
|
timestamp: audit_period_beginning
|
|
fire_criteria:
|
|
- event_type: compute.instance.exists
|