Class: Com::Vmware::Appliance::Health::System::HealthLevel
- Inherits:
-
VAPI::Bindings::VapiEnum
- Object
- VAPI::Bindings::VapiEnum
- Com::Vmware::Appliance::Health::System::HealthLevel
- Defined in:
- /build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/health.rb
Overview
``Com::Vmware::Appliance::Health::System::HealthLevel`` enumerated type Defines health levels
Constant Summary
- ORANGE =
HealthLevel.new('ORANGE')
- GRAY =
HealthLevel.new('GRAY')
- GREEN =
HealthLevel.new('GREEN')
- RED =
HealthLevel.new('RED')
- YELLOW =
HealthLevel.new('YELLOW')
Instance Attribute Summary (collapse)
-
- (Com::Vmware::Appliance::Health::System::HealthLevel) gray
No health data is available for this service.
-
- (Com::Vmware::Appliance::Health::System::HealthLevel) green
Service is healthy.
-
- (Com::Vmware::Appliance::Health::System::HealthLevel) orange
The service health is degraded.
-
- (Com::Vmware::Appliance::Health::System::HealthLevel) red
The service is unavaiable and is not functioning properly or will stop functioning soon.
-
- (Com::Vmware::Appliance::Health::System::HealthLevel) yellow
The service is healthy state, but experiencing some levels of problems.
Class Method Summary (collapse)
-
+ (VAPI::Bindings::EnumType) binding_type
Holds (gets or creates) the binding type metadata for this enumeration type.
-
+ (HealthLevel) from_string(value)
Converts from a string value (perhaps off the wire) to an instance of this enum type.
Instance Attribute Details
- (Com::Vmware::Appliance::Health::System::HealthLevel) gray
No health data is available for this service.
925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/health.rb', line 925 class HealthLevel < VAPI::Bindings::VapiEnum class << self # Holds (gets or creates) the binding type metadata for this enumeration type. # @scope class # @return [VAPI::Bindings::EnumType] the binding type def binding_type @binding_type ||= VAPI::Bindings::EnumType.new( 'com.vmware.appliance.health.system.health_level', HealthLevel) end # Converts from a string value (perhaps off the wire) to an instance # of this enum type. # @param value [String] the actual value of the enum instance # @return [HealthLevel] the instance found for the value, otherwise # an unknown instance will be built for the value def from_string(value) begin const_get(value) rescue NameError HealthLevel.new('UNKNOWN', value) end end end private # Constructs a new instance. # @param value [String] the actual value of the enum instance # @param unknown [String] the unknown value when value is 'UKNOWN' def initialize(value, unknown=nil) super(self.class.binding_type, value, unknown) end public # @!attribute [rw] orange # @return [Com::Vmware::Appliance::Health::System::HealthLevel] # The service health is degraded. The service might have serious problems ORANGE = HealthLevel.new('ORANGE') # @!attribute [rw] gray # @return [Com::Vmware::Appliance::Health::System::HealthLevel] # No health data is available for this service. GRAY = HealthLevel.new('GRAY') # @!attribute [rw] green # @return [Com::Vmware::Appliance::Health::System::HealthLevel] # Service is healthy. GREEN = HealthLevel.new('GREEN') # @!attribute [rw] red # @return [Com::Vmware::Appliance::Health::System::HealthLevel] # The service is unavaiable and is not functioning properly or will stop functioning soon. RED = HealthLevel.new('RED') # @!attribute [rw] yellow # @return [Com::Vmware::Appliance::Health::System::HealthLevel] # The service is healthy state, but experiencing some levels of problems. YELLOW = HealthLevel.new('YELLOW') end |
- (Com::Vmware::Appliance::Health::System::HealthLevel) green
Service is healthy.
925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/health.rb', line 925 class HealthLevel < VAPI::Bindings::VapiEnum class << self # Holds (gets or creates) the binding type metadata for this enumeration type. # @scope class # @return [VAPI::Bindings::EnumType] the binding type def binding_type @binding_type ||= VAPI::Bindings::EnumType.new( 'com.vmware.appliance.health.system.health_level', HealthLevel) end # Converts from a string value (perhaps off the wire) to an instance # of this enum type. # @param value [String] the actual value of the enum instance # @return [HealthLevel] the instance found for the value, otherwise # an unknown instance will be built for the value def from_string(value) begin const_get(value) rescue NameError HealthLevel.new('UNKNOWN', value) end end end private # Constructs a new instance. # @param value [String] the actual value of the enum instance # @param unknown [String] the unknown value when value is 'UKNOWN' def initialize(value, unknown=nil) super(self.class.binding_type, value, unknown) end public # @!attribute [rw] orange # @return [Com::Vmware::Appliance::Health::System::HealthLevel] # The service health is degraded. The service might have serious problems ORANGE = HealthLevel.new('ORANGE') # @!attribute [rw] gray # @return [Com::Vmware::Appliance::Health::System::HealthLevel] # No health data is available for this service. GRAY = HealthLevel.new('GRAY') # @!attribute [rw] green # @return [Com::Vmware::Appliance::Health::System::HealthLevel] # Service is healthy. GREEN = HealthLevel.new('GREEN') # @!attribute [rw] red # @return [Com::Vmware::Appliance::Health::System::HealthLevel] # The service is unavaiable and is not functioning properly or will stop functioning soon. RED = HealthLevel.new('RED') # @!attribute [rw] yellow # @return [Com::Vmware::Appliance::Health::System::HealthLevel] # The service is healthy state, but experiencing some levels of problems. YELLOW = HealthLevel.new('YELLOW') end |
- (Com::Vmware::Appliance::Health::System::HealthLevel) orange
The service health is degraded. The service might have serious problems
925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/health.rb', line 925 class HealthLevel < VAPI::Bindings::VapiEnum class << self # Holds (gets or creates) the binding type metadata for this enumeration type. # @scope class # @return [VAPI::Bindings::EnumType] the binding type def binding_type @binding_type ||= VAPI::Bindings::EnumType.new( 'com.vmware.appliance.health.system.health_level', HealthLevel) end # Converts from a string value (perhaps off the wire) to an instance # of this enum type. # @param value [String] the actual value of the enum instance # @return [HealthLevel] the instance found for the value, otherwise # an unknown instance will be built for the value def from_string(value) begin const_get(value) rescue NameError HealthLevel.new('UNKNOWN', value) end end end private # Constructs a new instance. # @param value [String] the actual value of the enum instance # @param unknown [String] the unknown value when value is 'UKNOWN' def initialize(value, unknown=nil) super(self.class.binding_type, value, unknown) end public # @!attribute [rw] orange # @return [Com::Vmware::Appliance::Health::System::HealthLevel] # The service health is degraded. The service might have serious problems ORANGE = HealthLevel.new('ORANGE') # @!attribute [rw] gray # @return [Com::Vmware::Appliance::Health::System::HealthLevel] # No health data is available for this service. GRAY = HealthLevel.new('GRAY') # @!attribute [rw] green # @return [Com::Vmware::Appliance::Health::System::HealthLevel] # Service is healthy. GREEN = HealthLevel.new('GREEN') # @!attribute [rw] red # @return [Com::Vmware::Appliance::Health::System::HealthLevel] # The service is unavaiable and is not functioning properly or will stop functioning soon. RED = HealthLevel.new('RED') # @!attribute [rw] yellow # @return [Com::Vmware::Appliance::Health::System::HealthLevel] # The service is healthy state, but experiencing some levels of problems. YELLOW = HealthLevel.new('YELLOW') end |
- (Com::Vmware::Appliance::Health::System::HealthLevel) red
The service is unavaiable and is not functioning properly or will stop functioning soon.
925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/health.rb', line 925 class HealthLevel < VAPI::Bindings::VapiEnum class << self # Holds (gets or creates) the binding type metadata for this enumeration type. # @scope class # @return [VAPI::Bindings::EnumType] the binding type def binding_type @binding_type ||= VAPI::Bindings::EnumType.new( 'com.vmware.appliance.health.system.health_level', HealthLevel) end # Converts from a string value (perhaps off the wire) to an instance # of this enum type. # @param value [String] the actual value of the enum instance # @return [HealthLevel] the instance found for the value, otherwise # an unknown instance will be built for the value def from_string(value) begin const_get(value) rescue NameError HealthLevel.new('UNKNOWN', value) end end end private # Constructs a new instance. # @param value [String] the actual value of the enum instance # @param unknown [String] the unknown value when value is 'UKNOWN' def initialize(value, unknown=nil) super(self.class.binding_type, value, unknown) end public # @!attribute [rw] orange # @return [Com::Vmware::Appliance::Health::System::HealthLevel] # The service health is degraded. The service might have serious problems ORANGE = HealthLevel.new('ORANGE') # @!attribute [rw] gray # @return [Com::Vmware::Appliance::Health::System::HealthLevel] # No health data is available for this service. GRAY = HealthLevel.new('GRAY') # @!attribute [rw] green # @return [Com::Vmware::Appliance::Health::System::HealthLevel] # Service is healthy. GREEN = HealthLevel.new('GREEN') # @!attribute [rw] red # @return [Com::Vmware::Appliance::Health::System::HealthLevel] # The service is unavaiable and is not functioning properly or will stop functioning soon. RED = HealthLevel.new('RED') # @!attribute [rw] yellow # @return [Com::Vmware::Appliance::Health::System::HealthLevel] # The service is healthy state, but experiencing some levels of problems. YELLOW = HealthLevel.new('YELLOW') end |
- (Com::Vmware::Appliance::Health::System::HealthLevel) yellow
The service is healthy state, but experiencing some levels of problems.
925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/health.rb', line 925 class HealthLevel < VAPI::Bindings::VapiEnum class << self # Holds (gets or creates) the binding type metadata for this enumeration type. # @scope class # @return [VAPI::Bindings::EnumType] the binding type def binding_type @binding_type ||= VAPI::Bindings::EnumType.new( 'com.vmware.appliance.health.system.health_level', HealthLevel) end # Converts from a string value (perhaps off the wire) to an instance # of this enum type. # @param value [String] the actual value of the enum instance # @return [HealthLevel] the instance found for the value, otherwise # an unknown instance will be built for the value def from_string(value) begin const_get(value) rescue NameError HealthLevel.new('UNKNOWN', value) end end end private # Constructs a new instance. # @param value [String] the actual value of the enum instance # @param unknown [String] the unknown value when value is 'UKNOWN' def initialize(value, unknown=nil) super(self.class.binding_type, value, unknown) end public # @!attribute [rw] orange # @return [Com::Vmware::Appliance::Health::System::HealthLevel] # The service health is degraded. The service might have serious problems ORANGE = HealthLevel.new('ORANGE') # @!attribute [rw] gray # @return [Com::Vmware::Appliance::Health::System::HealthLevel] # No health data is available for this service. GRAY = HealthLevel.new('GRAY') # @!attribute [rw] green # @return [Com::Vmware::Appliance::Health::System::HealthLevel] # Service is healthy. GREEN = HealthLevel.new('GREEN') # @!attribute [rw] red # @return [Com::Vmware::Appliance::Health::System::HealthLevel] # The service is unavaiable and is not functioning properly or will stop functioning soon. RED = HealthLevel.new('RED') # @!attribute [rw] yellow # @return [Com::Vmware::Appliance::Health::System::HealthLevel] # The service is healthy state, but experiencing some levels of problems. YELLOW = HealthLevel.new('YELLOW') end |
Class Method Details
+ (VAPI::Bindings::EnumType) binding_type
Holds (gets or creates) the binding type metadata for this enumeration type.
931 932 933 934 935 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/health.rb', line 931 def binding_type @binding_type ||= VAPI::Bindings::EnumType.new( 'com.vmware.appliance.health.system.health_level', HealthLevel) end |
+ (HealthLevel) from_string(value)
Converts from a string value (perhaps off the wire) to an instance of this enum type.
942 943 944 945 946 947 948 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/health.rb', line 942 def from_string(value) begin const_get(value) rescue NameError HealthLevel.new('UNKNOWN', value) end end |