Class: Azure::ARM::Insights::Models::ScaleCapacity

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/generated/azure_mgmt_insights/models/scale_capacity.rb

Overview

The number of instances that can be used during this profile.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#defaultString

are not available for evaluation. The default is only used if the current instance count is lower than the default.

Returns:

  • (String)

    the number of instances that will be set if metrics



26
27
28
# File 'lib/generated/azure_mgmt_insights/models/scale_capacity.rb', line 26

def default
  @default
end

#maximumString

actual maximum number of instances is limited by the cores that are available in the subscription.

Returns:

  • (String)

    the maximum number of instances for the resource. The



21
22
23
# File 'lib/generated/azure_mgmt_insights/models/scale_capacity.rb', line 21

def maximum
  @maximum
end

#minimumString

Returns the minimum number of instances for the resource.

Returns:

  • (String)

    the minimum number of instances for the resource.



16
17
18
# File 'lib/generated/azure_mgmt_insights/models/scale_capacity.rb', line 16

def minimum
  @minimum
end

Class Method Details

.mapperObject

Mapper for ScaleCapacity class as Ruby Hash. This will be used for serialization/deserialization.



33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# File 'lib/generated/azure_mgmt_insights/models/scale_capacity.rb', line 33

def self.mapper()
  {
    required: false,
    serialized_name: 'ScaleCapacity',
    type: {
      name: 'Composite',
      class_name: 'ScaleCapacity',
      model_properties: {
        minimum: {
          required: true,
          serialized_name: 'minimum',
          type: {
            name: 'String'
          }
        },
        maximum: {
          required: true,
          serialized_name: 'maximum',
          type: {
            name: 'String'
          }
        },
        default: {
          required: true,
          serialized_name: 'default',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end