Versionen im Vergleich

Schlüssel

  • Diese Zeile wurde hinzugefügt.
  • Diese Zeile wurde entfernt.
  • Formatierung wurde geändert.

Seitenverzeichnis: 

Inhalt
maxLevel2
indent10px
stylesquare


...

shd.maps.read

Beschreibung

Auslesen aller Maps.

Parameter

ParameterTypVersion
user_id (optional)stringab Version 1.0

Rückgabewert

WertTypBeschreibungVersion
contentarrayArray von Map-Objektenab Version 1.0

Beispiel 

Beispielaufruf

Beispielantwort


Codeblock
languagebash
themeRDark
{
    "method": "shd.maps",
    "params": {
        "apikey": "24174j3tqj",
        "language": "en"
    },
    "id": 1,
    "version": "2.0"
}



Codeblock
languagebash
themeRDark
{
    "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

ParameterTypBeschreibungVersion
user_id (optional)string-ab Version 1.0
to_force (optional)boolBerechnet den Status ohne Memcachedab Version 1.0

Rückgabewert

WertTypBeschreibungVersion
contentarrayArray von Map-Status-Objektenab Version 1.0

Beispiel 

Beispielaufruf

Beispielantwort


Codeblock
languagebash
themeRDark
{
    "method": "shd.maps.status",
    "params": {
        "apikey": "1ialbgclm9",
        "language": "en"
    },
    "id": 1,
    "version": "2.0"
}



Codeblock
languagebash
themeRDark
{
    "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
}