5.1. Listing Resource Alerts

GET /alerts

Lists resource alerts for the instances of the user specified by the X-Effective-User-ID and X-Effective-Project-ID HTTP headers. If these headers are omitted, lists resource alerts for all instances.

Request example:

# curl -ks -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>:6556/v1/alerts

Response example:

[
  {
    "instance_uuid": "30ef3957-f7ad-42c2-aa06-f3d005902ac9",
    "grade": "green",
    "created_at": "2020-12-09T16:50:06.000000",
    "seen_at": null,
    "message": "memory usage: 13%",
    "type": "memory",
    "id": 13
  },
  {
    "instance_uuid": "30ef3957-f7ad-42c2-aa06-f3d005902ac9",
    "grade": "green",
    "created_at": "2020-12-09T16:50:06.000000",
    "seen_at": null,
    "message": "storage usage: 0%",
    "type": "storage",
    "id": 14
  },
  {
    "instance_uuid": "6e634127-5c8c-4205-8ac6-a8113cdc58a1",
    "grade": "green",
    "created_at": "2020-12-04T10:21:41.000000",
    "seen_at": null,
    "message": "memory usage: 0%",
    "type": "memory",
    "id": 9
  },
  {
    "instance_uuid": "6e634127-5c8c-4205-8ac6-a8113cdc58a1",
    "grade": "green",
    "created_at": "2020-12-04T10:21:41.000000",
    "seen_at": null,
    "message": "storage usage: 0%",
    "type": "storage",
    "id": 10
  },
  {
    "instance_uuid": "d8f156ab-be08-4c19-b0d2-a46d000699cd",
    "grade": "green",
    "created_at": "2020-12-09T16:25:01.000000",
    "seen_at": null,
    "message": "memory usage: 0%",
    "type": "memory",
    "id": 11
  },
  {
    "instance_uuid": "d8f156ab-be08-4c19-b0d2-a46d000699cd",
    "grade": "green",
    "created_at": "2020-12-09T16:25:01.000000",
    "seen_at": null,
    "message": "storage usage: 0%",
    "type": "storage",
    "id": 12
  }
]