$ cat /tmp/timeperiods
[
{
"thursday" : "00:00-24:00",
"wednesday" : "00:00-24:00",
"friday" : "00:00-24:00",
"sunday" : "00:00-24:00",
"alias": "Always-2",
"monday" : "00:00-24:00",
"tuesday" : "00:00-24:00",
"timeperiod_name": "24x7-2",
"saturday" : "00:00-24:00"
}
]
$ curl -X POST -d @/tmp/timeperiods -H "content-type: application/json" 'http://admin:password@127.0.0.1:8080/timeperiod'
{
"results": [
{
"404": "unknown attribute: monday"
}
],
"summary": {
"failed": 1,
"succeeded": 0,
"total": 1
}
}
unknown attribute: monday wtf??
However, it is possible that this is related to pynag issue I've submited.