| Ignorer les liens de navigation | |
| Quitter l'aperu | |
|
API RESTful des systèmes Oracle® ZFS Storage Appliance |
Utilisation de cette documentation
Chapitre 2 Utilisation de l'API
Chapitre 3 Commandes du service d'alerte
Chapitre 6 Commandes des journaux
Chapitre 8 Commandes du service des problèmes
Chapitre 11 Commandes de service
Chapitre 12 Services de stockage
Chapitre 14 Service utilisateur
Répertorie tous les seuils d'alerte configurés.
Exemple de demande :
GET /api/alert/v1/thresholds HTTP/1.1 Authorization: Basic abcd123MWE= Host: zfssa.example.com:215 Accept: application/json
Exemple de réponse :
HTTP/1.1 200 OK
Date: Tue, 27 Aug 2013 17:38:40 GMT
X-Zfssa-Appliance-Api: 1.0
Content-Type: application/json
Content-Length: 689
{
"thresholds": [
{
"days": "all",
"frequency": 300,
"href": "/api/alert/v1/thresholds/
bec758cb-346e-6a7d-c211-b320c09ef6a6",
"limit": 500,
"minclear": 300,
"minpost": 300,
"statname": "cpu.utilization",
"threshold": "threshold-000",
"type": "normal",
"uuid": "bec758cb-346e-6a7d-c211-b320c09ef6a6",
"window_end": 0,
"window_start": -1
},
{
"days": "all",
"frequency": 300,
"href": "/api/alert/v1/thresholds/
475799d8-32c8-6ff6-882c-aa3b66e3a5a2",
"limit": 100000,
"minclear": 600,
"minpost": 300,
"statname": "datalink.kilobytes",
"threshold": "threshold-001",
"type": "normal",
"uuid": "475799d8-32c8-6ff6-882c-aa3b66e3a5a2",
"window_end": 300,
"window_start": 1200
}
]
}