Class: Azure::ServiceFabric::V6_4_0_36::Models::LoadMetricReportInfo

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/6.4.0.36/generated/azure_service_fabric/models/load_metric_report_info.rb

Overview

Information about load reported by replica.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#current_valueString

Returns The double value of the load for the metric.

Returns:

  • (String)

    The double value of the load for the metric.



24
25
26
# File 'lib/6.4.0.36/generated/azure_service_fabric/models/load_metric_report_info.rb', line 24

def current_value
  @current_value
end

#last_reported_utcDateTime

Returns The UTC time when the load is reported.

Returns:

  • (DateTime)

    The UTC time when the load is reported.



27
28
29
# File 'lib/6.4.0.36/generated/azure_service_fabric/models/load_metric_report_info.rb', line 27

def last_reported_utc
  @last_reported_utc
end

#nameString

Returns The name of the metric.

Returns:

  • (String)

    The name of the metric.



16
17
18
# File 'lib/6.4.0.36/generated/azure_service_fabric/models/load_metric_report_info.rb', line 16

def name
  @name
end

#valueInteger

releases of Service Fabric this parameter will be deprecated in favor of CurrentValue.

Returns:

  • (Integer)

    The value of the load for the metric. In future



21
22
23
# File 'lib/6.4.0.36/generated/azure_service_fabric/models/load_metric_report_info.rb', line 21

def value
  @value
end

Class Method Details

.mapperObject

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



34
35
36
37
38
39
40
41
42
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
# File 'lib/6.4.0.36/generated/azure_service_fabric/models/load_metric_report_info.rb', line 34

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'LoadMetricReportInfo',
    type: {
      name: 'Composite',
      class_name: 'LoadMetricReportInfo',
      model_properties: {
        name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'Name',
          type: {
            name: 'String'
          }
        },
        value: {
          client_side_validation: true,
          required: false,
          serialized_name: 'Value',
          type: {
            name: 'Number'
          }
        },
        current_value: {
          client_side_validation: true,
          required: false,
          serialized_name: 'CurrentValue',
          type: {
            name: 'String'
          }
        },
        last_reported_utc: {
          client_side_validation: true,
          required: false,
          serialized_name: 'LastReportedUtc',
          type: {
            name: 'DateTime'
          }
        }
      }
    }
  }
end