Class: Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ServiceLoadMetricDescription

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2017-07-01-preview/generated/azure_mgmt_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



36
37
38
# File 'lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/service_load_metric_description.rb', line 36

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/2017-07-01-preview/generated/azure_mgmt_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



27
28
29
# File 'lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/service_load_metric_description.rb', line 27

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



32
33
34
# File 'lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/service_load_metric_description.rb', line 32

def secondary_default_load
  @secondary_default_load
end

#weightEnum

Returns Possible values include: ‘Zero’, ‘Low’, ‘Medium’, ‘High’.

Returns:

  • (Enum)

    Possible values include: ‘Zero’, ‘Low’, ‘Medium’, ‘High’



22
23
24
# File 'lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/service_load_metric_description.rb', line 22

def weight
  @weight
end

Class Method Details

.mapperObject

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



43
44
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
# 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