Versions Compared

Key

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

...

Code Block
GET HTTP://server/omk/opCharts/v2/inventory/interface.json

Output :- List of first 25 interface inventory objects ("_id" and "nodes.uuid") sorted by nodes.name in ascending order. 
[
	{
		"_id": "63958e8d41073d2dd381d60663195a0341073d2dd339ce47",
		"nodesnode_uuid": "08098577-5d8c-11e9-9614-8a6323fe4840"
	},
	{
		"id": "63195a0341073d2dd339ce5d",
		"node_uuid": "08098577-5d8c-11e9-9614-8a6323fe4840"
		}
	},
	{
		"_id": "63958e9441073d2dd382236563195a0341073d2dd339ce74",
		"nodesnode_uuid": "08098577-5d8c-11e9-9614-8a6323fe4840"
	},
	{
		"id": "63195a0341073d2dd339ce82",
		"node_uuid": "08098577-5d8c-11e9-9614-8a6323fe4840"
		}
	},
	{
		"_id": "63958e9041073d2dd381fbb763195a0341073d2dd339ce90",
		"nodes": {
			"node_uuid": "08098577-5d8c-11e9-9614-8a6323fe4840"
		}
	},
	{
		"_id": "63958e9641073d2dd382309563195a0341073d2dd339ceba",
		"nodes": {
			"node_uuid": "08098577-5d8c-11e9-9614-8a6323fe4840"
		}
	},
]



   

Similar requests and descriptions with subconcepts

RequestResponse
GET
HTTP
http://server/omk/opCharts/v2/inventory/interface.json?limit=50

First 50 elements sorted by nodes.name

("

_

id" and "nodes.uuid")

GET
HTTP
http://server/omk/opCharts/v2/inventory/interface.json?limit=50&page=2

Next 50 elements sorted by nodes.name

("

_

id" and "nodes.uuid")

GET
HTTP
http://server/omk/opCharts/v2/inventory/interface.json?limit=50&properties=["nodes.name"]

First 50 elements sorted by nodes.name

("

_

id" , "nodes.uuid", "nodes.name")

GET
HTTP
http://server/omk/opCharts/v2/inventory/interface.json?limit=50&page=2&properties=["inventory.data"]
First NEXT

Next 50 elements sorted by nodes.name

("

_

id" , "nodes.uuid", "inventory.data")

GET
HTTP
http://server/omk/opCharts/v2/inventory/interface.json?limit=50&properties=["nodes.name"]&filter={"inventory.data.ifIndex":3}

First 50 elements sorted by nodes.name, filtered by inventory.data.ifIndex => 3

("

_

id" , "nodes.uuid", "nodes.name")

GET http://server/en/omk/opCharts/v2/inventory/interface.json?properties=["data.ifIndex","data.ifDescr","node_name","description"]&filter={"data.ifIndex":1}

First 25 interfaces sorted by nodes.name displaying 6 properties

[
  {
    "data": {
      "ifDescr": "lo",
      "ifIndex": 1
    },
    "description": "lo",
    "id": "64250e8ef82d4b6e59e888d9",
    "node_name": "lab-primary1",
    "node_uuid": "f2163325-a2b6-4d9a-8705-0dc0397ee7e3"
  },
  {
    "data": {
      "ifDescr": "LOOPBACK",
      "ifIndex": 1
    },
    "description": "LOOPBACK",
    "id": "64cc4b8a5e13cceca7d030f7",
    "node_name": "SASINTEL_MARINA_PARK_P5_UPS01",
    "node_uuid": "9ac2e0ec-db2c-455a-9917-0471acaae231"
  },

...
]



GET of opcharts/v2/inventory/id 

...

Panel

http://server/omk/opCharts/v2/inventory/65a5b8b843c6b8c138bc9cab.json
{
  "cluster_id": "660f29ae-f150-4119-bf04-cd9296852449",
  "concept": "device",
  "configuration": {
    "group": "Lab_Servers"
  },
  "data": {
    "hrCpuLoad": 100,
    "hrDeviceDescr": "GenuineIntel: Intel(R) Xeon(R) CPU @ 2.20GHz",
    "hrDeviceType": "1.3.6.1.2.1.25.3.1.3",
    "index": "196609"
  },
  "data_info": [
    {
      "display_keys": [],
      "enabled": 0,
      "subconcept": "hrsmpcpu"
    }
  ],
  "dataset_info": [
    {
      "datasets": [
        "hrCpuLoad"
      ],
      "subconcept": "hrsmpcpu"
    }
  ],
  "description": "GenuineIntel: Intel(R) Xeon(R) CPU @ 2.20GHz",
  "enabled": 1,
  "expire_at": "2024-03-26T0627T02:4525:1901.204Z445Z",
  "historic": 0,
  "id": "65a5b8b843c6b8c138bc9cab",
  "lastupdate": 1705359544.17113,
  "node_name": "vrouter_host",
  "node_uuid": "a8ac3d79-aa7c-496f-ae19-f6df04c58a21",
  "path": [
    "660f29ae-f150-4119-bf04-cd9296852449",
    "a8ac3d79-aa7c-496f-ae19-f6df04c58a21",
    "device",
    196609
  ],
  "path_keys": [
    "index"
  ],
  "server_name": "localhost",
  "storage": {
    "hrsmpcpu": {
      "rrd": "/nodes/vrouter_host/health/hrsmpcpu196609.rrd"
    }
  },
  "subconcepts": [
    "hrsmpcpu"
  ]
}

Code Block
http://server/omk/opCharts/v2/inventory/65a5b8b843c6b8c138bc9cab.json { "cluster_id": "660f29ae-f150-4119-bf04-cd9296852449", "concept": "device", "configuration": { "group": "Lab_Servers" }, "data": { "hrCpuLoad": 100, "hrDeviceDescr": "GenuineIntel: Intel(R) Xeon(R) CPU @ 2.20GHz", "hrDeviceType": "1.3.6.1.2.1.25.3.1.3", "index": "196609" }, "data_info": [ { "display_keys": [], "enabled": 0, "subconcept": "hrsmpcpu" } ], "dataset_info": [ { "datasets": [ "hrCpuLoad" ], "subconcept": "hrsmpcpu" } ], "description": "GenuineIntel: Intel(R) Xeon(R) CPU @ 2.20GHz", "enabled": 1, "expire_at": "2024-03-26T06:45:19.204Z", "historic": 0, "id": "65a5b8b843c6b8c138bc9cab", "lastupdate": 1705359544.17113, "node_name": "vrouter_host", "node_uuid": "a8ac3d79-aa7c-496f-ae19-f6df04c58a21", "path": [ "660f29ae-f150-4119-bf04-cd9296852449", "a8ac3d79-aa7c-496f-ae19-f6df04c58a21", "device", 196609 ], "path_keys": [ "index" ], "server_name": "localhost", "storage": { "hrsmpcpu": { "rrd": "/nodes/vrouter_host/health/hrsmpcpu196609.rrd" } }, "subconcepts": [ "hrsmpcpu" ] }




Similar requests and descriptions with inventory id

...