...
Retrieves the nodes available to opCharts. No parameters are accepted.
Successful Response
Returns an array of strings containing the node names
...
Retrieves all resources for the specified node. A resource is required when requesting specific datasets or indexed datasets.
Successful Response
Returns an array of resource objects. Each resource object has a value it can be identified by(which can be used in later requests) and a url that the resource value can be appended to in order to fetch information about this resource and it's name which can be displayed to users.
...
Retrieves all datasets for the specified node & resource.
Successful Response
An array of dataset objects. Each dataset object lists it's resource, the value it can be identified by, a url that the value can be appended to (if not ending in .json), tokens used for searching and it's name which can be used for displaying to users.
...
Retrieve all indexes available from a resource. This is only required if the dataset you wish to load is indexed.
Successful Response
Returns a hash, with the name of the resource. A datum array of index objects, these hold the data you are likely looking for. The value attribute holds the identifier for this object. Name is the attribute which can be displayed to users. The "active" property tells you if this index is being collected.
...
The request structure is not simple. The required inputs are resource, dataset, possibly index.
Required Parameters
Parameters | |||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{ | |||||||||||||||||||||||||||||||||||||||||||||||
requestData (struct)
|
| ||||||||||||||||||||||||||||||||||||||||||||||
} |
Request Example
Code Block |
---|
{ "requestData": { "model": "nmis_rrd", "model_view": "graph", "data_source": "local_nmis", "parameters": { "start_date_raw": 1401346748, "end_date_raw": 1401951548, "node": "asgard", "graph_type": "nodehealth", "field": "avgBusy5", "resource_index": "", "index_graph_type": "", "axis": "0" }, "options": { } } } |
Successful Response
A successful response will be a hash with 2 objects. The requestObject that was submitted along with a responseObject :
...