Class: Azure::ServiceFabric::V6_3_0_9::Models::ServiceLoadMetricDescription
- Inherits:
-
Object
- Object
- Azure::ServiceFabric::V6_3_0_9::Models::ServiceLoadMetricDescription
- Includes:
- MsRestAzure
- Defined in:
- lib/6.3.0.9/generated/azure_service_fabric/models/service_load_metric_description.rb
Overview
Specifies a metric to load balance a service during runtime.
Instance Attribute Summary collapse
-
#default_load ⇒ Integer
of load, as a number, that this service creates for this metric.
-
#name ⇒ String
report load during runtime, the load metric name should match the name that is specified in Name exactly.
-
#primary_default_load ⇒ Integer
of load, as a number, that this service creates for this metric when it is a Primary replica.
-
#secondary_default_load ⇒ Integer
of load, as a number, that this service creates for this metric when it is a Secondary replica.
-
#weight ⇒ ServiceLoadMetricWeight
weight, compared to other metrics configured for this service, as a number.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for ServiceLoadMetricDescription class as Ruby Hash.
Instance Attribute Details
#default_load ⇒ Integer
of load, as a number, that this service creates for this metric.
38 39 40 |
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/service_load_metric_description.rb', line 38 def default_load @default_load end |
#name ⇒ String
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.
19 20 21 |
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/service_load_metric_description.rb', line 19 def name @name end |
#primary_default_load ⇒ Integer
of load, as a number, that this service creates for this metric when it is a Primary replica.
29 30 31 |
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/service_load_metric_description.rb', line 29 def primary_default_load @primary_default_load end |
#secondary_default_load ⇒ Integer
of load, as a number, that this service creates for this metric when it is a Secondary replica.
34 35 36 |
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/service_load_metric_description.rb', line 34 def secondary_default_load @secondary_default_load end |
#weight ⇒ ServiceLoadMetricWeight
weight, compared to other metrics configured for this service, as a number. Possible values include: ‘Zero’, ‘Low’, ‘Medium’, ‘High’
24 25 26 |
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/service_load_metric_description.rb', line 24 def weight @weight end |
Class Method Details
.mapper ⇒ Object
Mapper for ServiceLoadMetricDescription class as Ruby Hash. This will be used for serialization/deserialization.
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 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 |
# File 'lib/6.3.0.9/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 |