Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Update get node resources, added active_indexes explaination

...

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.

The resource block also contains an entry called "active_indexes", if this section is null the resource is not indexed, if it is an empty array the resource is indexed but no indexes exist.  If the entry contains array entries then these indexes are actively collected (to get a full list use the resource indicies below)

Code Block
[
  {
    "active_indexes": null,
    "value": "nodehealth",
    "url": "/omk/opCharts/nodes/asgard/resources",
    "name": "nodehealth"
  },
  {
    "active_indexes": [ "192.168.90.17" ],
    "value": "bgpPeer",
    "url": "/omk/opCharts/nodes/asgard/resources",
    "name": "bgpPeer"
  },
  {
    "active_indexes": null,
    "value": "mib2ip",
    "url": "/omk/opCharts/nodes/asgard/resources",
    "name": "mib2ip"
  },
  {
    "active_indexes": [ "2"],
Code Block
[
  {
    "value": "nodehealthcbqos-out",
    "url": "/omk/opCharts/nodes/asgard/resources",
    "name": "nodehealthcbqos-out"
  },
  { },
  {
    "active_indexes": [ "2", "1" ],
    "value": "mib2ippkts_hc",
    "url": "/omk/opCharts/nodes/asgard/resources",
    "name": "mib2ippkts_hc"
  },
  {
    "active_indexes": [ "2", "1" ],
    "value": "interface",
    "url": "/omk/opCharts/nodes/asgard/resources",
    "name": "interface"
  },
  ....
]

GET node resource datasets (fetch datasets for a single node & resource)

...