Share via


LoadMetric Class

Definition

Represents the name of a metric and a runtime value as a name-value pair that is reported to Service Fabric. The metric loads are used by Service Fabric to ensure that the cluster is evenly used and that nodes do not exceed their capacities for given metrics. LoadMetric reports are provided to Service Fabric via ReportLoad(IEnumerable<LoadMetric>).

[System.Serializable]
public sealed class LoadMetric
[<System.Serializable>]
type LoadMetric = class
Public NotInheritable Class LoadMetric
Inheritance
LoadMetric
Attributes

Constructors

LoadMetric(String, Int32)

Creates and initializes a LoadMetric object with the specified name and load value.

Properties

Name

Indicates the name of the metric that the service plans to report.

Value

Indicates the current load of the metric.

Applies to