media type | data type |
---|---|
application/json | MonitorringMessage (JSON) |
code | condition |
---|---|
401 | Bad credentials |
media type | data type |
---|---|
application/json | string (JSON) |
application/xml | string (XML) |
POST /user/v1.0/monitoring_message/
Content-Type: application/json
Accept: application/json
{
"metricMame" : "cpuTotal",
"subid" : "1ccba0cc92174ce788695cfc0a027b57",
"value" : 91.0500021021063,
"messageType" : "critical",
"date" : "2017-08-25",
"time" : "11:30:00",
"owner" : "user1",
"id" : "58e3946e0fb4f562d84ba1ad",
"timestamp" : 1499793079011
}
HTTP/1.1 201 Looks Good
Content-Type: application/json
...
code | condition |
---|---|
401 | Bad credentials |
media type | data type |
---|---|
application/json | array of string (JSON) |
application/xml | list of string (XML) |
GET /user/v1.0/monitoring_message/ids Accept: application/json
HTTP/1.1 200 Looks Good
Content-Type: application/json
...
name | type | description | constraints |
---|---|---|---|
id | path | required |
code | condition |
---|---|
401 | Bad credentials |
media type | data type |
---|---|
application/json | MonitorringMessage (JSON) |
application/xml | monitorringMessage (XML) |
GET /user/v1.0/monitoring_message/{id} Accept: application/json
HTTP/1.1 200 Looks Good
Content-Type: application/json
{
"metricMame" : "cpuTotal",
"subid" : "1ccba0cc92174ce788695cfc0a027b57",
"value" : 91.0500021021063,
"messageType" : "critical",
"date" : "2017-08-25",
"time" : "11:30:00",
"owner" : "user1",
"id" : "58e3946e0fb4f562d84ba1ad",
"timestamp" : 1499793079011
}