Class: IControl::Management::EventSubscription::SubscriptionDetails
- Inherits:
-
Base::Struct
- Object
- Base::Struct
- IControl::Management::EventSubscription::SubscriptionDetails
- Defined in:
- lib/icontrol/management/event_subscription.rb,
lib/icontrol/management/event_subscription.rb
Overview
The configuration of a specific Event Subscription. This includes the name, registered events, the enabled state, and delivery configuration values. Event messages will be queued up and sent in a bulk manner as described by the min_events_per_timeslice and max_timeslice variables.
Instance Attribute Summary (collapse)
-
- (IControl::Common::EnabledState) enabled_state
Whether the subscription is enabled or disabled.
-
- (IControl::Management::EventSubscription::EventTypeSequence) event_type_list
A list of event types to be notified of.
-
- (Numeric) max_timeslice
This maximum time to wait (in seconds) before event notifications are sent to the notification endpoint.
-
- (Numeric) min_events_per_timeslice
The minimum number of events needed to trigger a notification.
-
- (String) name
A user friendly name for the subscription.
-
- (Numeric) ttl
The time to live (in seconds) for this subscription.
-
- (String) url
The url endpoint for the EventNotification inteface to receive event notifications.
-
- (IControl::Management::EventSubscription::UserCredential) url_credentials
The credenials for the url endpoint.
Method Summary
Methods inherited from Base::Struct
from_soap, icontrol_attribute, #to_soap
Instance Attribute Details
- (IControl::Common::EnabledState) enabled_state
Whether the subscription is enabled or disabled.
337 338 339 |
# File 'lib/icontrol/management/event_subscription.rb', line 337 def enabled_state @enabled_state end |
- (IControl::Management::EventSubscription::EventTypeSequence) event_type_list
A list of event types to be notified of.
337 338 339 |
# File 'lib/icontrol/management/event_subscription.rb', line 337 def event_type_list @event_type_list end |
- (Numeric) max_timeslice
This maximum time to wait (in seconds) before event notifications are sent to the notification endpoint. If this value is 30, then after 30 seconds a notification will be sent with the events in the subscription queue.
337 338 339 |
# File 'lib/icontrol/management/event_subscription.rb', line 337 def max_timeslice @max_timeslice end |
- (Numeric) min_events_per_timeslice
The minimum number of events needed to trigger a notification. If this value is 50, then this means that when 50 events are queued up they will be sent to the notification endpoint no matter what the max_timeslice is set to.
337 338 339 |
# File 'lib/icontrol/management/event_subscription.rb', line 337 def min_events_per_timeslice @min_events_per_timeslice end |
- (String) name
A user friendly name for the subscription.
337 338 339 |
# File 'lib/icontrol/management/event_subscription.rb', line 337 def name @name end |
- (Numeric) ttl
The time to live (in seconds) for this subscription. After the ttl is reached, the subscription will be removed from the system. A value of -1 indicates an infinite life time.
337 338 339 |
# File 'lib/icontrol/management/event_subscription.rb', line 337 def ttl @ttl end |
- (String) url
The url endpoint for the EventNotification inteface to receive event notifications.
337 338 339 |
# File 'lib/icontrol/management/event_subscription.rb', line 337 def url @url end |
- (IControl::Management::EventSubscription::UserCredential) url_credentials
The credenials for the url endpoint.
337 338 339 |
# File 'lib/icontrol/management/event_subscription.rb', line 337 def url_credentials @url_credentials end |