2.6. Listing Instance AlertsΒΆ

GET /instances/{instance_id}/alerts

Lists alerts for the specified instance.

Name

In

Type

Description

instance_id

query

string

Instance ID.

Request example:

# curl -s -H 'Content-Type: application/json' -H 'X-Auth-Token: gAAAAA<...>' \
-H 'X-Effective-User-ID: c3862f44c4bc48358db62ae22d684f33' \
-H 'X-Effective-Project-ID: 04e0d744d0f544c69ff7c17db5c8b4b9' \
https://<controller_hostname>/api/v1/instances/536881b5-8866-46e6-8022-3fd75317a6ed/alerts

Response example:

[
  {
    "instance_uuid": "536881b5-8866-46e6-8022-3fd75317a6ed",
    "grade": "green",
    "created_at": "2020-12-22T10:35:01.000000",
    "seen_at": null,
    "message": "memory usage: 0%",
    "type": "memory",
    "id": 211
  },
  {
    "instance_uuid": "536881b5-8866-46e6-8022-3fd75317a6ed",
    "grade": "green",
    "created_at": "2020-12-22T10:35:01.000000",
    "seen_at": null,
    "message": "storage usage: 0%",
    "type": "storage",
    "id": 212
  }
]