# README
snap REST API
Task Schema
This is used in REST, and in a file format for the cli.
---
version: 1
task:
schedule:
type: simple
interval: 5s
deadline: 5s
config:
/intel/mock:
- key: password
value: j3rr
workflow:
collect:
metric_types:
- namespace: /intel/mock/foo
- namespace: /intel/mock/bar
publish:
- plugin:
name: "influx"
version: 2
process:
- plugin:
name: "averager"
publish:
- plugin:
name: "rabbitmq"
version: 1
{
"version": 1,
"task": {
"schedule": {
"type": "simple",
"interval": "5s"
},
"deadline": "5s",
"config": {
"/intel/mock": [
{
"key": "password",
"value": "j3rr"
}
]
},
"workflow": {
"collect": {
"metric_types": [
{
"namespace": "/intel/mock/foo"
},
{
"namespace": "/intel/mock/bar"
}
],
"publish": [
{
"plugin": {
"name": "influx",
"version": 2
}
}
],
"process": [
{
"plugin": {
"name": "averager"
},
"publish": [
{
"plugin": {
"name": "rabbitmq",
"version": 1
}
}
]
}
]
}
}
}
}