Class: IControl::GlobalLB::Monitor
- Inherits:
-
Base
- Object
- Base
- IControl::GlobalLB::Monitor
- Defined in:
- lib/icontrol/global_lb/monitor.rb,
lib/icontrol/global_lb.rb
Overview
The Monitor interface enables you to manipulate a load balancer's monitor templates and instances. For example, use the Monitor interface to enable or disable a monitor instance, or to create a monitor template, or to get and set different attributes of a monitor template.
Defined Under Namespace
Classes: CommonAttributes, CommonAttributesSequence, IntPropertyType, IntPropertyTypeSequence, IntegerValue, IntegerValueSequence, MonitorTemplate, MonitorTemplateSequence, StrPropertyType, StrPropertyTypeSequence, StringValue, StringValueSequence, TemplateType, TemplateTypeSequence, UserDefinedStringValue, UserDefinedStringValueSequence
Instance Method Summary (collapse)
-
- (Object) create_template(opts)
Creates monitor template with some basic attributes.
-
- (Object) delete_all_templates
Deletes all user-defined (non-root) monitor template.
-
- (Object) delete_template
Deletes this monitor template.
-
- (EnabledState) ignore_down_response_state
Gets the monitor template' ignore down response states.
-
- (MonitorInstanceState) instance_state(opts)
Gets the enabled/disabled states of the monitor instances.
-
- (boolean) is_template_directly_usable
Determines if this monitor template can be used directly, or a user-defined monitor based on each monitor must be created first before it can be used.
-
- (boolean) is_template_read_only
Determines if this monitor template are read-only.
-
- (boolean) is_template_root
Determines if this monitor template are of the base monitor template.
-
- (EnabledState) manual_resume_state
Gets the monitor template' manual resume states.
-
- (String) parent_template
Gets the parent monitor template from which this monitor template are derived.
-
- (Object) set_ignore_down_response_state(opts)
Sets the monitor template' ignore down response states.
-
- (Object) set_instance_state(opts)
Sets the enabled/disabled states of the monitor instances.
-
- (Object) set_manual_resume_state(opts)
Sets the monitor template' manual resume states.
-
- (Object) set_template_destination(opts)
Sets the destination IP:port values for this template.
-
- (Object) set_template_integer_property(opts)
Sets an integer property values of this monitor template.
-
- (Object) set_template_reverse_mode(opts)
Sets the reverse mode states of this monitor template.
-
- (Object) set_template_state(opts)
Sets the monitor template' enabled/disabled states.
-
- (Object) set_template_string_property(opts)
Sets a string property values of this monitor template.
-
- (Object) set_template_transparent_mode(opts)
Sets the transparent mode states of this monitor template.
-
- (Object) set_template_user_defined_string_property(opts)
Sets the user-defined string property values of this monitor template.
-
- (AddressType) template_address_type
Gets the destination address types of the monitor template.
-
- (MonitorIPPort) template_destination
Gets the destination IP:port values of this monitor template.
-
- (IntegerValue) template_integer_property(opts)
Gets the integer property values of this monitor template.
-
- (MonitorTemplate) template_list
Gets the list of monitor template.
-
- (boolean) template_reverse_mode
Gets the reverse mode states of this monitor template.
-
- (EnabledState) template_state
Gets the enabled/disabled states of this monitor template.
-
- (StringValue) template_string_property(opts)
Gets a string property values of this monitor template.
-
- (boolean) template_transparent_mode
Gets the transparent mode states of this monitor template.
-
- (TemplateType) template_type
Gets the template types of this monitor template.
-
- (UserDefinedStringValue) template_user_defined_string_property(opts)
Gets the string property values of this monitor template.
-
- (String) version
Gets the version information for this interface.
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class IControl::Base
Instance Method Details
- (Object) create_template(opts)
Creates monitor template with some basic attributes. If the "parent_template" attribute in "template_attributes" is empty, then the new template is based on the template type field given in "template". If the "parent_template" attribute in "template_attributes" is specified, then the new template is derived from the "parent_template", and template type field in "template" is ignored. If "parent_template" is empty, and the template type field in "template" is not specified, then the new template is a root template.
44 45 46 47 |
# File 'lib/icontrol/global_lb/monitor.rb', line 44 def create_template(opts) check_params(opts,[:templates,:template_attributes]) super end |
- (Object) delete_all_templates
Deletes all user-defined (non-root) monitor template.
55 56 57 |
# File 'lib/icontrol/global_lb/monitor.rb', line 55 def delete_all_templates super end |
- (Object) delete_template
Deletes this monitor template.
65 66 67 |
# File 'lib/icontrol/global_lb/monitor.rb', line 65 def delete_template super end |
- (EnabledState) ignore_down_response_state
Gets the monitor template' ignore down response states. When enabled, the system will mark objects down only if the monitor timer expires without receiving an "up" response.
78 79 80 |
# File 'lib/icontrol/global_lb/monitor.rb', line 78 def ignore_down_response_state super end |
- (MonitorInstanceState) instance_state(opts)
Gets the enabled/disabled states of the monitor instances.
91 92 93 94 |
# File 'lib/icontrol/global_lb/monitor.rb', line 91 def instance_state(opts) check_params(opts,[:instances]) super end |
- (boolean) is_template_directly_usable
Determines if this monitor template can be used directly, or a user-defined monitor based on each monitor must be created first before it can be used.
258 259 260 |
# File 'lib/icontrol/global_lb/monitor.rb', line 258 def is_template_directly_usable super end |
- (boolean) is_template_read_only
Determines if this monitor template are read-only. The user can only modify properties for read/write monitor template.
270 271 272 |
# File 'lib/icontrol/global_lb/monitor.rb', line 270 def is_template_read_only super end |
- (boolean) is_template_root
Determines if this monitor template are of the base monitor template.
281 282 283 |
# File 'lib/icontrol/global_lb/monitor.rb', line 281 def is_template_root super end |
- (EnabledState) manual_resume_state
Gets the monitor template' manual resume states. When enabled and a monitor has marked an object down, that object will not be marked up by the monitor, i.e. the object will be manually marked up.
105 106 107 |
# File 'lib/icontrol/global_lb/monitor.rb', line 105 def manual_resume_state super end |
- (String) parent_template
Gets the parent monitor template from which this monitor template are derived. A user-defined monitor template will get its defaults from its parent monitor template.
117 118 119 |
# File 'lib/icontrol/global_lb/monitor.rb', line 117 def parent_template super end |
- (Object) set_ignore_down_response_state(opts)
Sets the monitor template' ignore down response states. When enabled, the system will mark objects down only if the monitor timer expires without receiving an "up" response. This is useful because probe_num_probes is not effective with ECV monitors. To get similar functionality, enable ignore down response, and set timeout and probe timeout.
297 298 299 300 |
# File 'lib/icontrol/global_lb/monitor.rb', line 297 def set_ignore_down_response_state(opts) check_params(opts,[:states]) super end |
- (Object) set_instance_state(opts)
Sets the enabled/disabled states of the monitor instances.
310 311 312 313 |
# File 'lib/icontrol/global_lb/monitor.rb', line 310 def set_instance_state(opts) check_params(opts,[:instance_states]) super end |
- (Object) set_manual_resume_state(opts)
Sets the monitor template' manual resume states. When enabled and a monitor has marked an object down, that object will not be marked up by the monitor, i.e. the object will be manually marked up.
325 326 327 328 |
# File 'lib/icontrol/global_lb/monitor.rb', line 325 def set_manual_resume_state(opts) check_params(opts,[:states]) super end |
- (Object) set_template_destination(opts)
Sets the destination IP:port values for this template. NOTE: This should only be done when the monitor template in "template_names" have NOT been associated to any node addresses or pool members.
340 341 342 343 |
# File 'lib/icontrol/global_lb/monitor.rb', line 340 def set_template_destination(opts) check_params(opts,[:destinations]) super end |
- (Object) set_template_integer_property(opts)
Sets an integer property values of this monitor template.
353 354 355 356 |
# File 'lib/icontrol/global_lb/monitor.rb', line 353 def set_template_integer_property(opts) check_params(opts,[:values]) super end |
- (Object) set_template_reverse_mode(opts)
Sets the reverse mode states of this monitor template. When in reverse mode, a successful test marks the node down instead of up.
367 368 369 370 |
# File 'lib/icontrol/global_lb/monitor.rb', line 367 def set_template_reverse_mode(opts) check_params(opts,[:reverse_modes]) super end |
- (Object) set_template_state(opts)
Sets the monitor template' enabled/disabled states. This will enable/disable all instances that use this template. This serves as a quick and convenient method to enable/disable all instances, but if you want only to enable/disable a specific instance, use set_instance_enabled.
383 384 385 386 |
# File 'lib/icontrol/global_lb/monitor.rb', line 383 def set_template_state(opts) check_params(opts,[:states]) super end |
- (Object) set_template_string_property(opts)
Sets a string property values of this monitor template.
396 397 398 399 |
# File 'lib/icontrol/global_lb/monitor.rb', line 396 def set_template_string_property(opts) check_params(opts,[:values]) super end |
- (Object) set_template_transparent_mode(opts)
Sets the transparent mode states of this monitor template. Transparent mode is used when a user has to go through a firewall to do monitoring.
410 411 412 413 |
# File 'lib/icontrol/global_lb/monitor.rb', line 410 def set_template_transparent_mode(opts) check_params(opts,[:transparent_modes]) super end |
- (Object) set_template_user_defined_string_property(opts)
Sets the user-defined string property values of this monitor template.
423 424 425 426 |
# File 'lib/icontrol/global_lb/monitor.rb', line 423 def set_template_user_defined_string_property(opts) check_params(opts,[:values]) super end |
- (AddressType) template_address_type
Gets the destination address types of the monitor template. This allows the user to determine what node IP:port can be associated with this monitor when creating a monitor instance.
130 131 132 |
# File 'lib/icontrol/global_lb/monitor.rb', line 130 def template_address_type super end |
- (MonitorIPPort) template_destination
Gets the destination IP:port values of this monitor template.
141 142 143 |
# File 'lib/icontrol/global_lb/monitor.rb', line 141 def template_destination super end |
- (IntegerValue) template_integer_property(opts)
Gets the integer property values of this monitor template.
154 155 156 157 |
# File 'lib/icontrol/global_lb/monitor.rb', line 154 def template_integer_property(opts) check_params(opts,[:property_types]) super end |
- (MonitorTemplate) template_list
Gets the list of monitor template.
166 167 168 |
# File 'lib/icontrol/global_lb/monitor.rb', line 166 def template_list super end |
- (boolean) template_reverse_mode
Gets the reverse mode states of this monitor template.
177 178 179 |
# File 'lib/icontrol/global_lb/monitor.rb', line 177 def template_reverse_mode super end |
- (EnabledState) template_state
Gets the enabled/disabled states of this monitor template.
188 189 190 |
# File 'lib/icontrol/global_lb/monitor.rb', line 188 def template_state super end |
- (StringValue) template_string_property(opts)
Gets a string property values of this monitor template.
201 202 203 204 |
# File 'lib/icontrol/global_lb/monitor.rb', line 201 def template_string_property(opts) check_params(opts,[:property_types]) super end |
- (boolean) template_transparent_mode
Gets the transparent mode states of this monitor template.
213 214 215 |
# File 'lib/icontrol/global_lb/monitor.rb', line 213 def template_transparent_mode super end |
- (TemplateType) template_type
Gets the template types of this monitor template.
224 225 226 |
# File 'lib/icontrol/global_lb/monitor.rb', line 224 def template_type super end |
- (UserDefinedStringValue) template_user_defined_string_property(opts)
Gets the string property values of this monitor template.
237 238 239 240 |
# File 'lib/icontrol/global_lb/monitor.rb', line 237 def template_user_defined_string_property(opts) check_params(opts,[:property_names]) super end |
- (String) version
Gets the version information for this interface.
246 247 248 |
# File 'lib/icontrol/global_lb/monitor.rb', line 246 def version super end |