ServiceLoadMetricDescription ServiceLoadMetricDescription ServiceLoadMetricDescription Class

Definition

Specifies a metric to load balance a service during runtime.

public class ServiceLoadMetricDescription
type ServiceLoadMetricDescription = class
Public Class ServiceLoadMetricDescription
Inheritance
ServiceLoadMetricDescriptionServiceLoadMetricDescriptionServiceLoadMetricDescription
Derived

Remarks

Note that to provide metrics for services is optional, because Service Fabric uses default metrics. Provide metrics only if the service requires advanced load balancing features, such as balancing that is based on specific node characteristics and resources.

Constructors

ServiceLoadMetricDescription() ServiceLoadMetricDescription() ServiceLoadMetricDescription()

Initializes a new instance of the ServiceLoadMetricDescription class.

Properties

Name Name Name

Gets or sets the name of the metric.

PrimaryDefaultLoad PrimaryDefaultLoad PrimaryDefaultLoad

Please refer to the derived class StatefulServiceLoadMetricDescription or StatelessServiceLoadMetricDescription for usage.

SecondaryDefaultLoad SecondaryDefaultLoad SecondaryDefaultLoad

Please refer to the derived class StatefulServiceLoadMetricDescription or StatelessServiceLoadMetricDescription for usage.

Weight Weight Weight

Determines the metric weight relative to the other metrics that are configured for this service. During runtime, if two metrics end up in conflict, the Cluster Resource Manager prefers the metric with the higher weight.

Methods

ToString(Boolean) ToString(Boolean) ToString(Boolean)

Pretty print out details of StatefulServiceLoadMetricDescription or StatelessServiceLoadMetricDescription.

Extension Methods

IsDefined(Object) IsDefined(Object) IsDefined(Object)

Determines if a certain property is defined or not.

IsNull(Object) IsNull(Object) IsNull(Object)

Determines if a certain property is null or not.

IsPrimitive(Object) IsPrimitive(Object) IsPrimitive(Object)

Determines if a certain property is of premitive JSON type.

Applies to