此内容没有您所选择的语言版本。
Chapter 14. Events
The
rel="events" link obtained from the entry point URI accesses the events collection and lists system events from Red Hat Gluster Storage Console.
| Element | Type | Description |
|---|---|---|
description | string | A description of the system event. |
code | integer | The integer event code. |
severity | One of normal, warning, error or alert | The level of severity for the event. |
time | xsd:dateTime format: YYYY-MM-DDThh:mm:ss | The timestamp indicating when the event happened. |
user id | GUID | The identification code for the user who triggered the event. |
Example 14.1. An XML representation of the events collection
In addition to
user, an event representation also contains a set of XML element relationships to resources relevant to the event.
Example 14.2. An XML representation of a volume start event
This example provides an XML element representation of starting a volume on the
Default cluster .
Note
The
events collection is read-only.
14.1. Searching Events 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
The
events collection provides search queries similar to other resource collections (see Section 7.2.3, “Searching Collections with Queries”). An additional feature when searching the events collection is the ability to search from a certain event. This queries all of events since a specified event.
Querying from an event requires an additional
from argument added to the URI after the query. This from argument references an event id code.
Example 14.3. Searching from an event
GET /api/events?search=type%3D30&from=1012 HTTP/1.1 Accept: application/xml
GET /api/events?search=type%3D30&from=1012 HTTP/1.1
Accept: application/xml
This displays all events with
type set to 30 since id="1012"