Class: Azure::ServiceFabric::V6_5_0_36::Models::PartitionLoadInformation

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

Overview

Represents load information for a partition, which contains the primary and secondary reported load metrics. In case there is no load reported, PartitionLoadInformation will contain the default load for the service of the partition. For default loads, LoadMetricReport’s LastReportedUtc is set to 0.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#partition_idObject

Returns Id of the partition.

Returns:

  • Id of the partition.



20
21
22
# File 'lib/6.5.0.36/generated/azure_service_fabric/models/partition_load_information.rb', line 20

def partition_id
  @partition_id
end

#primary_load_metric_reportsArray<LoadMetricReport>

primary replica for this partition.

Returns:



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

def primary_load_metric_reports
  @primary_load_metric_reports
end

#secondary_load_metric_reportsArray<LoadMetricReport>

all secondary replicas for this partition. Array only contains the latest reported load for each metric.

Returns:



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

def secondary_load_metric_reports
  @secondary_load_metric_reports
end

Class Method Details

.mapperObject

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



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
79
80
81
82
83
84
85
86
87
88
89
90
# File 'lib/6.5.0.36/generated/azure_service_fabric/models/partition_load_information.rb', line 36

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'PartitionLoadInformation',
    type: {
      name: 'Composite',
      class_name: 'PartitionLoadInformation',
      model_properties: {
        partition_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'PartitionId',
          type: {
            name: 'String'
          }
        },
        primary_load_metric_reports: {
          client_side_validation: true,
          required: false,
          serialized_name: 'PrimaryLoadMetricReports',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'LoadMetricReportElementType',
                type: {
                  name: 'Composite',
                  class_name: 'LoadMetricReport'
                }
            }
          }
        },
        secondary_load_metric_reports: {
          client_side_validation: true,
          required: false,
          serialized_name: 'SecondaryLoadMetricReports',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'LoadMetricReportElementType',
                type: {
                  name: 'Composite',
                  class_name: 'LoadMetricReport'
                }
            }
          }
        }
      }
    }
  }
end