Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  BODY WITH JSON OBJECT = { requestData: { contents listed below } }

Request data from a dataset.  There are 2 basic ways to request data.

...

Request  Example

Code Block
{
  "requestData": { # remove "requestData" here if posting
    "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 : 

...