Package org.ovirt.engine.sdk4.services
Interface EventsService
-
- All Superinterfaces:
Service
- All Known Implementing Classes:
EventsServiceImpl
public interface EventsService extends Service
A service to manage events in the system.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
EventsService.AddRequest
Adds an external event to the internal audit log.static interface
EventsService.AddResponse
Adds an external event to the internal audit log.static interface
EventsService.ListRequest
Get list of events.static interface
EventsService.ListResponse
Get list of events.static interface
EventsService.UndeleteRequest
static interface
EventsService.UndeleteResponse
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description EventsService.AddRequest
add()
Adds an external event to the internal audit log.EventService
eventService(String id)
Reference to the service that manages a specific event.EventsService.ListRequest
list()
Get list of events.Service
service(String path)
Service locator method, returns individual service on which the URI is dispatched.EventsService.UndeleteRequest
undelete()
-
-
-
Method Detail
-
add
EventsService.AddRequest add()
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: [source] ---- POST /ovirt-engine/api/eventsFile system /home is full alert mymonitor 1467879754 File system /home is full alert mymonitor 1467879754
-
list
EventsService.ListRequest list()
Get list of events. [source] ---- GET /ovirt-engine/api/events ---- To the above request we get following response: [source,xml] ----User admin@internal-authz logged out. 31
1e892ea9 -1 30 oVirt normal User admin logged in. 30
1fbd81f4 -1 30 oVirt normal
-
undelete
EventsService.UndeleteRequest undelete()
-
eventService
EventService eventService(String id)
Reference to the service that manages a specific event.
-
-