Commit f3a2deed authored by Łukasz Nowak's avatar Łukasz Nowak

Define report format.

Additionaly convert all to JSON.
parent cfa53750
...@@ -346,22 +346,22 @@ Get the status of a computer ...@@ -346,22 +346,22 @@ Get the status of a computer
"computer_id": "COMP-0", "computer_id": "COMP-0",
"software": [ "software": [
{ {
software_release="http://example.com/example.cfg", "software_release": "http://example.com/example.cfg",
status="install", # one of: install, uninstall "status": "install" # one of: install, uninstall
}, },
], ],
"partition": [ "partition": [
{ {
title="slapart1", "title": "slapart1",
instance_id="foo", "instance_id": "foo",
status="start", # one of: start, stop, destroy "status": "start", # one of: start, stop, destroy
software_release="http://example.com/example.cfg", "software_release": "http://example.com/example.cfg"
}, },
{ {
title="slapart2", "title": "slapart2",
instance_id="bar", "instance_id": "bar",
status="stop", # one of: start, stop, destroy "status": "stop", # one of: start, stop, destroy
software_release="http://example.com/example.cfg", "software_release": "http://example.com/example.cfg"
}, },
], ],
} }
...@@ -393,9 +393,9 @@ Modify computer information in the system ...@@ -393,9 +393,9 @@ Modify computer information in the system
], ],
"software": [ "software": [
{ {
software_release="http://example.com/example.cfg", "software_release": "http://example.com/example.cfg",
status="installed", # one of: installed, uninstalled, error "status": "installed", # one of: installed, uninstalled, error
log="Installation log" "log": "Installation log"
}, },
], ],
} }
...@@ -474,7 +474,17 @@ Report computer usage ...@@ -474,7 +474,17 @@ Report computer usage
`Expected Request Body`:: `Expected Request Body`::
{ {
"tiosafe": "...", "title": "Resource consumptions",
"start_date": "2011/11/15",
"stop_date": "2011/11/16",
"movement": [
{
"resource": "CPU Consumption",
"title": "line 1",
"reference": "slappart0",
"quantity": 42.42
}
]
} }
`Expected Response`:: `Expected Response`::
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment