Class: Azure::ServiceFabric::V6_5_0_36::Models::ServiceLoadMetricDescription

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/6.5.0.36/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

Class Method Summary collapse

Instance Attribute Details

#default_loadInteger

of load, as a number, that this service creates for this metric.

Returns:

  • (Integer)

    Used only for Stateless services. The default amount



38
39
40
# File 'lib/6.5.0.36/generated/azure_service_fabric/models/service_load_metric_description.rb', line 38

def default_load
  @default_load
end

#nameString

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.

Returns:

  • (String)

    The name of the metric. If the service chooses to



19
20
21
# File 'lib/6.5.0.36/generated/azure_service_fabric/models/service_load_metric_description.rb', line 19

def name
  @name
end

#primary_default_loadInteger

of load, as a number, that this service creates for this metric when it is a Primary replica.

Returns:

  • (Integer)

    Used only for Stateful services. The default amount



29
30
31
# File 'lib/6.5.0.36/generated/azure_service_fabric/models/service_load_metric_description.rb', line 29

def primary_default_load
  @primary_default_load
end

#secondary_default_loadInteger

of load, as a number, that this service creates for this metric when it is a Secondary replica.

Returns:

  • (Integer)

    Used only for Stateful services. The default amount



34
35
36
# File 'lib/6.5.0.36/generated/azure_service_fabric/models/service_load_metric_description.rb', line 34

def secondary_default_load
  @secondary_default_load
end

#weightServiceLoadMetricWeight

weight, compared to other metrics configured for this service, as a number. Possible values include: ‘Zero’, ‘Low’, ‘Medium’, ‘High’

Returns:



24
25
26
# File 'lib/6.5.0.36/generated/azure_service_fabric/models/service_load_metric_description.rb', line 24

def weight
  @weight
end

Class Method Details

.mapperObject

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.5.0.36/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