...
HTTP Status | Body | Description |
---|---|---|
400 | JSON object with an error property | Invalid inputs, eg. malformed properties or filter |
401 Unauthorized | JSON object with an error property | You are not authenticated. |
403 Forbidden | JSON object with an error property | You are not authorized. |
Example
Code Block |
---|
GET HTTP://server/omk/opCharts/v2/events.json Output:- List of first 25 statusevent objects, sorted by id [ { "id": "648a0e4ca44a3ab377278383", "node_uuid": "8da86248-40f3-4c92-90b6-736bb66814aa" }, { "id": "648a0e4ca44a3ab377278389", "node_uuid": "8da86248-40f3-4c92-90b6-736bb66814aa" }, { "id": "648a0e4ca44a3ab37727838c", "node_uuid": "8da86248-40f3-4c92-90b6-736bb66814aa" }, { "id": "648a0e4ca44a3ab377278542", "node_uuid": "8da86248-40f3-4c92-90b6-736bb66814aa" }, . . . ] |
...
HTTP Status | Body | Description |
---|---|---|
200 OK | Possibly empty JSON array of strings | Each array element is a JSON object with all event attributes |
Unsuccessful Response
HTTP Status | Body | Description |
---|---|---|
400 |
JSON object with an error property | Invalid inputs, eg. malformed properties or filter, or node not found | |
401 Unauthorized | JSON object with an error property | You are not authenticated. |
403 Forbidden | JSON object with an error property | You are not authorized |
error
propertyerror
propertyerror
property contains an explanation of what went wrongwith your request, e.g. if you request a non-existent object.
to view the node |
Example
Code Block |
---|
GET HTTP://server/omk/opCharts/v2/events.json [
{
"ack": 0,
"active": 1,
"cluster_id": "f6faeac3-2282-465c-99fe-4ecc306a96fd",
"configuration": {
"group": "loadtest"
},
"context": {
"class": null,
"index": null,
"name": "response",
"source": "snmp",
"thresholdtype": "health",
"type": "threshold"
},
"details": "Value=155 Threshold=150",
"element": null,
"escalate": 10,
"event": "Proactive Response Time",
"historic": 0,
"id": "66026a0b366e1f1c310be917",
"lastupdate": 1711520710.86831,
"level": "Warning",
"level_previous": "Normal",
"logged": 1,
"node_name": "shire_500",
"node_uuid": "1f7a4702-3b4d-4d51-9a4c-2e29dd97b74a",
"notify": "email:contact1",
"startdate": 1711434251,
"stateless": 0
},
...
] |