Partager via


IServicePartition.ReportLoad Method (IEnumerable<LoadMetric>)

 

Applies To: Azure, Windows 10, Windows 8, Windows 8.1, Windows Server 2012 R2

Reports the load for a set of load balancing metrics. The load can be reported at any time via the ReportLoad method and provides one or more properties of the LoadMetric method.

Namespace:   System.Fabric
Assembly:  System.Fabric (in System.Fabric.dll)

Syntax

void ReportLoad(
    IEnumerable<LoadMetric> metrics
)

Parameters

Exceptions

Exception Condition
FabricObjectClosedException

This indicates that the partition object is closed. The replica/replicator/instance has either been closed or is about to be closed.

Remarks

The reported metrics should correspond to those that are provided in the ServiceLoadMetricDescription as a part of the ServiceDescription that is used to create the service. Load metrics that are not present in the description are ignored. Reporting custom metrics allows Service Fabric to balance services that are based on additional custom information.

See Also

IServicePartition Interface
System.Fabric Namespace

Return to top