Class: IControl::GlobalLB::MonitorRule

Inherits:
Base::Struct
  • Object
show all
Defined in:
lib/icontrol/global_lb.rb,
lib/icontrol/global_lb.rb

Overview

An struct that specifies a monitor rule.

Instance Attribute Summary (collapse)

Method Summary

Methods inherited from Base::Struct

from_soap, icontrol_attribute, #to_soap

Instance Attribute Details

- (StringSequence) monitor_templates

The list of monitors that constitute this monitor rule.

Returns:

  • (StringSequence)

    the current value of monitor_templates



111
112
113
# File 'lib/icontrol/global_lb.rb', line 111

def monitor_templates
  @monitor_templates
end

- (Numeric) quorum

A value to be used when type is MONITOR_RULE_TYPE_M_OF_N, i.e. this value is the M in M of N. This value is ignored for other rule types.

Returns:

  • (Numeric)

    the current value of quorum



111
112
113
# File 'lib/icontrol/global_lb.rb', line 111

def quorum
  @quorum
end

- (IControl::GlobalLB::MonitorRuleType) type

An indicator of how to deal/interpret with the list of monitors in monitor_templates.

Returns:



111
112
113
# File 'lib/icontrol/global_lb.rb', line 111

def type
  @type
end