Condividi tramite


ServiceLoadMetricDescription Class

Definition

Specifies a metric to load balance a service during runtime.

public class ServiceLoadMetricDescription
public class ServiceLoadMetricDescription : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.ServiceFabric.Models.ServiceLoadMetricDescription>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.ServiceFabric.Models.ServiceLoadMetricDescription>
type ServiceLoadMetricDescription = class
type ServiceLoadMetricDescription = class
    interface IJsonModel<ServiceLoadMetricDescription>
    interface IPersistableModel<ServiceLoadMetricDescription>
Public Class ServiceLoadMetricDescription
Public Class ServiceLoadMetricDescription
Implements IJsonModel(Of ServiceLoadMetricDescription), IPersistableModel(Of ServiceLoadMetricDescription)
Inheritance
ServiceLoadMetricDescription
Implements

Constructors

ServiceLoadMetricDescription(String)

Initializes a new instance of ServiceLoadMetricDescription.

Properties

DefaultLoad

Used only for Stateless services. The default amount of load, as a number, that this service creates for this metric.

Name

The name of the metric. If the service chooses to report load during runtime, the load metric name should match the name that is specified in Name exactly. Note that metric names are case sensitive.

PrimaryDefaultLoad

Used only for Stateful services. The default amount of load, as a number, that this service creates for this metric when it is a Primary replica.

SecondaryDefaultLoad

Used only for Stateful services. The default amount of load, as a number, that this service creates for this metric when it is a Secondary replica.

Weight

The service load metric relative weight, compared to other metrics configured for this service, as a number.

Explicit Interface Implementations

IJsonModel<ServiceLoadMetricDescription>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<ServiceLoadMetricDescription>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<ServiceLoadMetricDescription>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<ServiceLoadMetricDescription>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<ServiceLoadMetricDescription>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to