class Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ServiceLoadMetricDescription
Specifies a metric to load balance a service during runtime.
Attributes
@return [Integer] Used only for Stateless services. The default amount of load, as a number, that this service creates for this metric.
@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.
@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.
@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.
@return [Enum] Possible values include: 'Zero', 'Low', 'Medium', 'High'
Private Class Methods
Mapper for ServiceLoadMetricDescription
class as Ruby Hash. This will be used for serialization/deserialization.
# File lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/service_load_metric_description.rb, line 43 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