class Azure::ServiceFabric::V7_0_0_42::Models::ServiceLoadMetricDescription

Specifies a metric to load balance a service during runtime.

Attributes

default_load[RW]

@return [Integer] Used only for Stateless services. The default amount of load, as a number, that this service creates for this metric.

name[RW]

@return [String] The name of the metric. If the service chooses to report load during runtime, the load metric name should match the name that is specified in Name exactly. Note that metric names are case-sensitive.

primary_default_load[RW]

@return [Integer] Used only for Stateful services. The default amount of load, as a number, that this service creates for this metric when it is a Primary replica.

secondary_default_load[RW]

@return [Integer] Used only for Stateful services. The default amount of load, as a number, that this service creates for this metric when it is a Secondary replica.

weight[RW]

@return [ServiceLoadMetricWeight] The service load metric relative weight, compared to other metrics configured for this service, as a number. Possible values include: 'Zero', 'Low', 'Medium', 'High'

Private Class Methods

mapper() click to toggle source

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

# File lib/7.0.0.42/generated/azure_service_fabric/models/service_load_metric_description.rb, line 45
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ServiceLoadMetricDescription',
    type: {
      name: 'Composite',
      class_name: 'ServiceLoadMetricDescription',
      model_properties: {
        name: {
          client_side_validation: true,
          required: true,
          serialized_name: 'Name',
          type: {
            name: 'String'
          }
        },
        weight: {
          client_side_validation: true,
          required: false,
          serialized_name: 'Weight',
          type: {
            name: 'String'
          }
        },
        primary_default_load: {
          client_side_validation: true,
          required: false,
          serialized_name: 'PrimaryDefaultLoad',
          type: {
            name: 'Number'
          }
        },
        secondary_default_load: {
          client_side_validation: true,
          required: false,
          serialized_name: 'SecondaryDefaultLoad',
          type: {
            name: 'Number'
          }
        },
        default_load: {
          client_side_validation: true,
          required: false,
          serialized_name: 'DefaultLoad',
          type: {
            name: 'Number'
          }
        }
      }
    }
  }
end