POST /ovirt-engine/api/events
<event>
<description>File system /home is full</description>
<severity>alert</severity>
<origin>mymonitor</origin>
<custom_id>1467879754</custom_id>
</event>
public class EventsServiceImpl extends ServiceImpl implements EventsService
EventsService.AddRequest, EventsService.AddResponse, EventsService.ListRequest, EventsService.ListResponse, EventsService.UndeleteRequest, EventsService.UndeleteResponse
Constructor and Description |
---|
EventsServiceImpl(HttpConnection connection,
String path) |
Modifier and Type | Method and Description |
---|---|
EventsService.AddRequest |
add()
Adds an external event to the internal audit log.
|
EventService |
eventService(String id) |
EventsService.ListRequest |
list() |
Service |
service(String path)
Service locator method, returns individual service on which the URI is dispatched.
|
String |
toString() |
EventsService.UndeleteRequest |
undelete() |
checkAction, checkFault, getConnection, getPath, throwError
public EventsServiceImpl(HttpConnection connection, String path)
public EventsService.AddRequest add()
EventsService
Adds an external event to the internal audit log.
This is intended for integration with external systems that detect or produce events relevant for the administrator of the system. For example, an external monitoring tool may be able to detect that a file system is full inside the guest operating system of a virtual machine. This event can be added to the internal audit log sending a request like this:
POST /ovirt-engine/api/events
<event>
<description>File system /home is full</description>
<severity>alert</severity>
<origin>mymonitor</origin>
<custom_id>1467879754</custom_id>
</event>
Events can also be linked to specific objects. For example, the above event could be linked to the specific
virtual machine where it happened, using the vm
link:
POST /ovirt-engine/api/events
<event>
<description>File system /home is full</description>
<severity>alert</severity>
<origin>mymonitor</origin>
<custom_id>1467879754</custom_id>
<vm id="aae98225-5b73-490d-a252-899209af17e9"/>
</event>
Note
|
When using links, like the vm in the previous example, only the id attribute is accepted. The name
attribute, if provided, is simply ignored.
|
add
in interface EventsService
public EventsService.ListRequest list()
list
in interface EventsService
public EventsService.UndeleteRequest undelete()
undelete
in interface EventsService
public EventService eventService(String id)
eventService
in interface EventsService
public Service service(String path)
EventsService
Service locator method, returns individual service on which the URI is dispatched.
service
in interface EventsService
Copyright © 2016. All rights reserved.