Seitenverzeichnis:
shd.maps.read
Beschreibung
Auslesen aller Maps.
Parameter
Parameter | Typ | Version |
---|---|---|
user_id (optional) | string | ab Version 1.0 |
Rückgabewert
Wert | Typ | Beschreibung | Version |
---|---|---|---|
content | array | Array von Map-Objekten | ab Version 1.0 |
Beispiel
Beispielaufruf | Beispielantwort |
---|---|
{ "method": "shd.maps", "params": { "apikey": "24174j3tqj", "language": "en" }, "id": 1, "version": "2.0" } | { "jsonrpc": "2.0", "result": { "content": [ { "map_id": "1", "title": "Map Deutschland 202", "imagepath": null, "monitoring_object_id": null, "isys_cats_person_list__id": "191", "map_link": null }, { "map_id": "2", "title": "Schranketage (3)", "imagepath": null, "monitoring_object_id": null, "isys_cats_person_list__id": "19", "map_link": { "1": "1", "3": "3" } }, [...] ], "count": 25 }, "id": 1 } |
shd.maps.status
Beschreibung
Auslesen aller Status der Maps.
Parameter
Parameter | Typ | Beschreibung | Version |
---|---|---|---|
user_id (optional) | string | - | ab Version 1.0 |
to_force (optional) | bool | Berechnet den Status ohne Memcached | ab Version 1.0 |
Rückgabewert
Wert | Typ | Beschreibung | Version |
---|---|---|---|
content | array | Array von Map-Status-Objekten | ab Version 1.0 |
Beispiel
Beispielaufruf | Beispielantwort |
---|---|
{ "method": "shd.maps.status", "params": { "apikey": "1ialbgclm9", "language": "en" }, "id": 1, "version": "2.0" } | { "jsonrpc": "2.0", "result": { "maps": { "3": { "output": "Remote command execution failed: Could not create directory '/var/lib/nagios/.ssh'.", "text": "DOWN", "color": "#E7A1A2", "status": 2, "service_status": "14|0|0|16", "name": "4. Neue Map" }, "38": { "output": "Remote command execution failed: Could not create directory '/var/lib/nagios/.ssh'.", "text": "DOWN", "color": "#E7A1A2", "status": 2, "service_status": "14|0|0|16", "name": "Map IT Doku" }, "39": { "text": "n/a", "status": "-1", "output": "", "color": "#E6E6E6", "service_status": "0|0|0|0", "name": "Map IT Doku" }, "40": { "output": "Remote command execution failed: Could not create directory '/var/lib/nagios/.ssh'.", "text": "DOWN", "color": "#E7A1A2", "status": 2, "service_status": "14|0|0|16", "name": "Neue Map" } }, "count": 4 }, "id": 1 } |