Interface EventSubscriptionsService

  • All Superinterfaces:
    Service
    All Known Implementing Classes:
    EventSubscriptionsServiceImpl

    public interface EventSubscriptionsService
    extends Service
    Represents a service to manage collection of event-subscription of a user.
    • Method Detail

      • add

        EventSubscriptionsService.AddRequest add()
        Add a new event-subscription to the system. An event-subscription is always added in the context of a user. For example, to add new event-subscription for `host_high_cpu_use` for user `123`, and have the notification sent to the e-mail address: `[email protected]`, send a request like this: .... POST /ovirt-engine/api/users/123/eventsubscriptions .... With a request body like this: [source,xml] ---- host_high_cpu_use
        [email protected]
        ---- The event name will become the ID of the new event-subscription entity: GET .../api/users/123/eventsubscriptions/host_high_cpu_use Note that no user id is provided in the request body. This is because the user-id (in this case 123) is already known to the API from the context. Note also that event-subscription entity contains notification-method field, but it is not provided either in the request body. This is because currently it's always set to SMTP as SNMP notifications are still unsupported by the API layer.
      • eventSubscriptionService

        EventSubscriptionService eventSubscriptionService​(String id)
        Reference to the service that manages a specific event-subscription.
      • service

        Service service​(String path)
        Service locator method, returns individual service on which the URI is dispatched.