Class: Azure::ServiceFabric::V6_5_0_36::Models::PartitionLoadInformation
- Inherits:
-
Object
- Object
- Azure::ServiceFabric::V6_5_0_36::Models::PartitionLoadInformation
- 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
-
#partition_id ⇒ Object
Id of the partition.
-
#primary_load_metric_reports ⇒ Array<LoadMetricReport>
primary replica for this partition.
-
#secondary_load_metric_reports ⇒ Array<LoadMetricReport>
all secondary replicas for this partition.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for PartitionLoadInformation class as Ruby Hash.
Instance Attribute Details
#partition_id ⇒ Object
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_reports ⇒ Array<LoadMetricReport>
primary replica for this partition.
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_reports ⇒ Array<LoadMetricReport>
all secondary replicas for this partition. Array only contains the latest reported load for each metric.
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
.mapper ⇒ Object
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 |