Class EventsServiceImpl
- java.lang.Object
-
- org.ovirt.engine.sdk4.internal.services.ServiceImpl
-
- org.ovirt.engine.sdk4.internal.services.EventsServiceImpl
-
- All Implemented Interfaces:
Service
,EventsService
public class EventsServiceImpl extends ServiceImpl implements EventsService
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ovirt.engine.sdk4.services.EventsService
EventsService.AddRequest, EventsService.AddResponse, EventsService.ListRequest, EventsService.ListResponse, EventsService.UndeleteRequest, EventsService.UndeleteResponse
-
-
Constructor Summary
Constructors Constructor Description EventsServiceImpl(HttpConnection connection, String path)
-
Method Summary
All Methods Instance Methods Concrete 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.String
toString()
EventsService.UndeleteRequest
undelete()
-
Methods inherited from class org.ovirt.engine.sdk4.internal.services.ServiceImpl
checkAction, checkFault, getConnection, getPath, throwError
-
-
-
-
Constructor Detail
-
EventsServiceImpl
public EventsServiceImpl(HttpConnection connection, String path)
-
-
Method Detail
-
add
public EventsService.AddRequest add()
Description copied from interface: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: [source] ---- POST /ovirt-engine/api/eventsFile system /home is full alert mymonitor 1467879754 File system /home is full alert mymonitor 1467879754 - Specified by:
add
in interfaceEventsService
-
list
public EventsService.ListRequest list()
Description copied from interface:EventsService
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 - Specified by:
list
in interfaceEventsService
-
undelete
public EventsService.UndeleteRequest undelete()
- Specified by:
undelete
in interfaceEventsService
-
eventService
public EventService eventService(String id)
Description copied from interface:EventsService
Reference to the service that manages a specific event.- Specified by:
eventService
in interfaceEventsService
-
service
public Service service(String path)
Description copied from interface:EventsService
Service locator method, returns individual service on which the URI is dispatched.- Specified by:
service
in interfaceEventsService
-
-