class Azure::ServiceFabric::V6_5_0_36::Models::PartitionLoadInformation

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.

Attributes

partition_id[RW]

@return Id of the partition.

primary_load_metric_reports[RW]

@return [Array<LoadMetricReport>] Array of load reports from the primary replica for this partition.

secondary_load_metric_reports[RW]

@return [Array<LoadMetricReport>] Array of aggregated load reports from all secondary replicas for this partition. Array only contains the latest reported load for each metric.

Public Class Methods

mapper() click to toggle source

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

# 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