resources: msg: Introduce new resource type to log arbitrary messages

Untested things:
* systemd journal

Unimplemented things:
* syslog
This commit is contained in:
Felix Frank
2016-09-22 00:31:51 +02:00
committed by James Shubin
parent 41b3db7d6b
commit 30d93cfde7
4 changed files with 297 additions and 0 deletions

18
examples/msg1.yaml Normal file
View File

@@ -0,0 +1,18 @@
---
graph: mygraph
comment: timer example
resources:
timer:
- name: timer1
interval: 30
msg:
- name: msg1
body: mgmt logged this message
edges:
- name: e1
from:
kind: timer
name: timer1
to:
kind: msg
name: msg1