Class: Com::Vmware::Appliance::Monitoring::IntervalType

Inherits:
VAPI::Bindings::VapiEnum
  • Object
show all
Defined in:
/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance.rb

Overview

``Com::Vmware::Appliance::Monitoring::IntervalType`` enumerated type Defines interval between the values in hours and mins, for which aggregation will apply

Constant Summary

MINUTE_S30 =
IntervalType.new('MINUTE_S30')
HOUR_S2 =
IntervalType.new('HOUR_S2')
MINUTE_S5 =
IntervalType.new('MINUTE_S5')
DA_Y1 =
IntervalType.new('DA_Y1')
HOUR_S6 =
IntervalType.new('HOUR_S6')

Instance Attribute Summary (collapse)

Class Method Summary (collapse)

Instance Attribute Details

- (Com::Vmware::Appliance::Monitoring::IntervalType) da_y1

24 hours interval between values. One year has 365 values.



379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance.rb', line 379

class IntervalType < 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.monitoring.interval_type',
                IntervalType)
        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 [IntervalType] 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
                IntervalType.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] minute_s30
    #     @return [Com::Vmware::Appliance::Monitoring::IntervalType]
    #     Thirty minutes interval between values. One week is 336 values.
    MINUTE_S30 = IntervalType.new('MINUTE_S30')

    # @!attribute [rw] hour_s2
    #     @return [Com::Vmware::Appliance::Monitoring::IntervalType]
    #     Two hours interval between values. One month has 360 values.
    HOUR_S2 = IntervalType.new('HOUR_S2')

    # @!attribute [rw] minute_s5
    #     @return [Com::Vmware::Appliance::Monitoring::IntervalType]
    #     Five minutes interval between values (finest). One day would have 288 values, one week is 2016.
    MINUTE_S5 = IntervalType.new('MINUTE_S5')

    # @!attribute [rw] da_y1
    #     @return [Com::Vmware::Appliance::Monitoring::IntervalType]
    #     24 hours interval between values. One year has 365 values.
    DA_Y1 = IntervalType.new('DA_Y1')

    # @!attribute [rw] hour_s6
    #     @return [Com::Vmware::Appliance::Monitoring::IntervalType]
    #     Six hour interval between values. One quarter is 360 values.
    HOUR_S6 = IntervalType.new('HOUR_S6')

end

- (Com::Vmware::Appliance::Monitoring::IntervalType) hour_s2

Two hours interval between values. One month has 360 values.



379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance.rb', line 379

class IntervalType < 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.monitoring.interval_type',
                IntervalType)
        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 [IntervalType] 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
                IntervalType.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] minute_s30
    #     @return [Com::Vmware::Appliance::Monitoring::IntervalType]
    #     Thirty minutes interval between values. One week is 336 values.
    MINUTE_S30 = IntervalType.new('MINUTE_S30')

    # @!attribute [rw] hour_s2
    #     @return [Com::Vmware::Appliance::Monitoring::IntervalType]
    #     Two hours interval between values. One month has 360 values.
    HOUR_S2 = IntervalType.new('HOUR_S2')

    # @!attribute [rw] minute_s5
    #     @return [Com::Vmware::Appliance::Monitoring::IntervalType]
    #     Five minutes interval between values (finest). One day would have 288 values, one week is 2016.
    MINUTE_S5 = IntervalType.new('MINUTE_S5')

    # @!attribute [rw] da_y1
    #     @return [Com::Vmware::Appliance::Monitoring::IntervalType]
    #     24 hours interval between values. One year has 365 values.
    DA_Y1 = IntervalType.new('DA_Y1')

    # @!attribute [rw] hour_s6
    #     @return [Com::Vmware::Appliance::Monitoring::IntervalType]
    #     Six hour interval between values. One quarter is 360 values.
    HOUR_S6 = IntervalType.new('HOUR_S6')

end

- (Com::Vmware::Appliance::Monitoring::IntervalType) hour_s6

Six hour interval between values. One quarter is 360 values.



379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance.rb', line 379

class IntervalType < 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.monitoring.interval_type',
                IntervalType)
        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 [IntervalType] 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
                IntervalType.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] minute_s30
    #     @return [Com::Vmware::Appliance::Monitoring::IntervalType]
    #     Thirty minutes interval between values. One week is 336 values.
    MINUTE_S30 = IntervalType.new('MINUTE_S30')

    # @!attribute [rw] hour_s2
    #     @return [Com::Vmware::Appliance::Monitoring::IntervalType]
    #     Two hours interval between values. One month has 360 values.
    HOUR_S2 = IntervalType.new('HOUR_S2')

    # @!attribute [rw] minute_s5
    #     @return [Com::Vmware::Appliance::Monitoring::IntervalType]
    #     Five minutes interval between values (finest). One day would have 288 values, one week is 2016.
    MINUTE_S5 = IntervalType.new('MINUTE_S5')

    # @!attribute [rw] da_y1
    #     @return [Com::Vmware::Appliance::Monitoring::IntervalType]
    #     24 hours interval between values. One year has 365 values.
    DA_Y1 = IntervalType.new('DA_Y1')

    # @!attribute [rw] hour_s6
    #     @return [Com::Vmware::Appliance::Monitoring::IntervalType]
    #     Six hour interval between values. One quarter is 360 values.
    HOUR_S6 = IntervalType.new('HOUR_S6')

end

- (Com::Vmware::Appliance::Monitoring::IntervalType) minute_s30

Thirty minutes interval between values. One week is 336 values.



379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance.rb', line 379

class IntervalType < 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.monitoring.interval_type',
                IntervalType)
        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 [IntervalType] 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
                IntervalType.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] minute_s30
    #     @return [Com::Vmware::Appliance::Monitoring::IntervalType]
    #     Thirty minutes interval between values. One week is 336 values.
    MINUTE_S30 = IntervalType.new('MINUTE_S30')

    # @!attribute [rw] hour_s2
    #     @return [Com::Vmware::Appliance::Monitoring::IntervalType]
    #     Two hours interval between values. One month has 360 values.
    HOUR_S2 = IntervalType.new('HOUR_S2')

    # @!attribute [rw] minute_s5
    #     @return [Com::Vmware::Appliance::Monitoring::IntervalType]
    #     Five minutes interval between values (finest). One day would have 288 values, one week is 2016.
    MINUTE_S5 = IntervalType.new('MINUTE_S5')

    # @!attribute [rw] da_y1
    #     @return [Com::Vmware::Appliance::Monitoring::IntervalType]
    #     24 hours interval between values. One year has 365 values.
    DA_Y1 = IntervalType.new('DA_Y1')

    # @!attribute [rw] hour_s6
    #     @return [Com::Vmware::Appliance::Monitoring::IntervalType]
    #     Six hour interval between values. One quarter is 360 values.
    HOUR_S6 = IntervalType.new('HOUR_S6')

end

- (Com::Vmware::Appliance::Monitoring::IntervalType) minute_s5

Five minutes interval between values (finest). One day would have 288 values, one week is 2016.



379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance.rb', line 379

class IntervalType < 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.monitoring.interval_type',
                IntervalType)
        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 [IntervalType] 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
                IntervalType.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] minute_s30
    #     @return [Com::Vmware::Appliance::Monitoring::IntervalType]
    #     Thirty minutes interval between values. One week is 336 values.
    MINUTE_S30 = IntervalType.new('MINUTE_S30')

    # @!attribute [rw] hour_s2
    #     @return [Com::Vmware::Appliance::Monitoring::IntervalType]
    #     Two hours interval between values. One month has 360 values.
    HOUR_S2 = IntervalType.new('HOUR_S2')

    # @!attribute [rw] minute_s5
    #     @return [Com::Vmware::Appliance::Monitoring::IntervalType]
    #     Five minutes interval between values (finest). One day would have 288 values, one week is 2016.
    MINUTE_S5 = IntervalType.new('MINUTE_S5')

    # @!attribute [rw] da_y1
    #     @return [Com::Vmware::Appliance::Monitoring::IntervalType]
    #     24 hours interval between values. One year has 365 values.
    DA_Y1 = IntervalType.new('DA_Y1')

    # @!attribute [rw] hour_s6
    #     @return [Com::Vmware::Appliance::Monitoring::IntervalType]
    #     Six hour interval between values. One quarter is 360 values.
    HOUR_S6 = IntervalType.new('HOUR_S6')

end

Class Method Details

+ (VAPI::Bindings::EnumType) binding_type

Holds (gets or creates) the binding type metadata for this enumeration type.

Returns:

  • (VAPI::Bindings::EnumType)

    the binding type



385
386
387
388
389
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance.rb', line 385

def binding_type
    @binding_type ||= VAPI::Bindings::EnumType.new(
        'com.vmware.appliance.monitoring.interval_type',
        IntervalType)
end

+ (IntervalType) from_string(value)

Converts from a string value (perhaps off the wire) to an instance of this enum type.

Parameters:

  • value (String)

    the actual value of the enum instance

Returns:

  • (IntervalType)

    the instance found for the value, otherwise an unknown instance will be built for the value



396
397
398
399
400
401
402
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance.rb', line 396

def from_string(value)
    begin
        const_get(value)
    rescue NameError
        IntervalType.new('UNKNOWN', value)
    end
end