Class: Azure::ServiceFabric::V6_3_0_9::Models::ApplicationMetricDescription

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/6.3.0.9/generated/azure_service_fabric/models/application_metric_description.rb

Overview

Describes capacity information for a custom resource balancing metric. This can be used to limit the total consumption of this metric by the services of this application.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#maximum_capacityInteger

application. This is the maximum Load for an instance of this application on a single node. Even if the capacity of node is greater than this value, Service Fabric will limit the total load of services within the application on each node to this value. If set to zero, capacity for this metric is unlimited on each node. When creating a new application with application capacity defined, the product of MaximumNodes and this value must always be smaller than or equal to TotalApplicationCapacity. When updating existing application with application capacity, the product of MaximumNodes and this value must always be smaller than or equal to TotalApplicationCapacity.

Returns:

  • (Integer)

    The maximum node capacity for Service Fabric



33
34
35
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/application_metric_description.rb', line 33

def maximum_capacity
  @maximum_capacity
end

#nameString

Returns The name of the metric.

Returns:

  • (String)

    The name of the metric.



18
19
20
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/application_metric_description.rb', line 18

def name
  @name
end

#reservation_capacityInteger

application. This is the amount of load which is reserved on nodes which have instances of this application. If MinimumNodes is specified, then the product of these values will be the capacity reserved in the cluster for the application. If set to zero, no capacity is reserved for this metric. When setting application capacity or when updating application capacity; this value must be smaller than or equal to MaximumCapacity for each metric.

Returns:

  • (Integer)

    The node reservation capacity for Service Fabric



45
46
47
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/application_metric_description.rb', line 45

def reservation_capacity
  @reservation_capacity
end

#total_application_capacityInteger

application. This is the total metric capacity for this application in the cluster. Service Fabric will try to limit the sum of loads of services within the application to this value. When creating a new application with application capacity defined, the product of MaximumNodes and MaximumCapacity must always be smaller than or equal to this value.

Returns:

  • (Integer)

    The total metric capacity for Service Fabric



55
56
57
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/application_metric_description.rb', line 55

def total_application_capacity
  @total_application_capacity
end

Class Method Details

.mapperObject

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



62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/application_metric_description.rb', line 62

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ApplicationMetricDescription',
    type: {
      name: 'Composite',
      class_name: 'ApplicationMetricDescription',
      model_properties: {
        name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'Name',
          type: {
            name: 'String'
          }
        },
        maximum_capacity: {
          client_side_validation: true,
          required: false,
          serialized_name: 'MaximumCapacity',
          type: {
            name: 'Number'
          }
        },
        reservation_capacity: {
          client_side_validation: true,
          required: false,
          serialized_name: 'ReservationCapacity',
          type: {
            name: 'Number'
          }
        },
        total_application_capacity: {
          client_side_validation: true,
          required: false,
          serialized_name: 'TotalApplicationCapacity',
          type: {
            name: 'Number'
          }
        }
      }
    }
  }
end