Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Make by tools (01.00.01) - action=clean_macro_parameter
Scroll Ignore
scroll-viewporttrue
scroll-pdftrue
scroll-officetrue
scroll-chmtrue
scroll-htmlfalse
scroll-docbooktrue
scroll-eclipsehelptrue
scroll-epubtruescroll-htmlfalse
Panel
titleSommaire

Table of Contents
stylenone

Description

Cet appel permet de recevoir des informations sur un cluster.

Paramètres

ParamètreDescription
uuidUUID du cluster

Réponse

Codes de retour

Codes de retourExplications
200

OK

401

Permission refusée (Mauvais token)

404

Cluster introuvable

Retour du code 200

  • cluster_uuid : text
  • cluster_name : text
  • cluster_display_name : text
  • status : text
    • OK
    • WARNING
    • CRITICAL
    • UNKNOWN
    • MISSING-DATA
    • SHINKEN-INACTIVE
  • confirmed_state : text
    • SOFT
    • HARD
  • status_since : epoch (en secondes)
  • status_confirmed_since  epoch (en secondes)
  • context : text
    • NOTHING
    • ACKNOWLEDGED
    • PARTIAL-ACKNOWLEDGED
    • INHERITED-ACKNOWLEDGED
    • DOWNTIME
    • PARTIAL-DOWNTIME
    • INHERITED-DOWNTIME
    • FLAPPING
    • PARTIAL-FLAPPING
    • DISABLED
  • business_impact : 0, 1, 2, 3, 4, 5
  • output text
  • long_output text
  • raw_perf_data : text, version texte de perf_data

  • perf_data : liste de métriques au format :

    • value : number

    • uom : Unit Of Mesure / Unité de mesure

    • warning : valeur d'alerte

    • critical : valeur d'alerte critique

    • min : valeur minimale possible

    • max : valeur maximale possible

  • notes_url : text
  • notes_multi_url : text
  • thresholds_display : text

Exemple

Code Block
languagejs
themeConfluence
titlehttp://localhost:50100/api/v1/cluster/408gfhfr7611e8810e0800277b7e16?token=ak5zv6t5s25r6g4
{
 "status": "OK",
 "cluster_display_name": "localhost",
 "raw_perf_data": "rta=0.021000ms;1000.000000;3000.000000;0.000000 pl=0%;100;100;0",
 "perf_data": [{"name": "rta", "min": 0, "max": null, "value": 0.021, "warning": 1000, "critical": 3000, "uom": "ms"}, {"name": "pl", "min": 0, "max": 100, "value": 0, "warning": 100, "critical": 100, "uom": "%"}],
 "long_output": "",
 "cluster_name": "localhost",
 "context": "NOTHING",
 "status_since": 1540457802,
 "status_confirmed_since": 1540457802, 
 "business_impact": 2,
 "output": "PING OK - Packet loss = 0%, RTA = 0.02 ms",
 "cluster_uuid": "408gfhfr7611e8810e0800277b7e16",
 "thresholds_display": "Warning 70%\nCritique 90%"
}