ManagedServiceLoadMetric Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies a metric to load balance a service during runtime.
public class ManagedServiceLoadMetric : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServiceLoadMetric>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.ServiceFabricManagedClusters.Models.ManagedServiceLoadMetric>
type ManagedServiceLoadMetric = class
interface IJsonModel<ManagedServiceLoadMetric>
interface IPersistableModel<ManagedServiceLoadMetric>
Public Class ManagedServiceLoadMetric
Implements IJsonModel(Of ManagedServiceLoadMetric), IPersistableModel(Of ManagedServiceLoadMetric)
- Inheritance
-
ManagedServiceLoadMetric
- Implements
Constructors
ManagedServiceLoadMetric(String) |
Initializes a new instance of ManagedServiceLoadMetric. |
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. |
Methods
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions) |
Explicit Interface Implementations
IJsonModel<ManagedServiceLoadMetric>.Create(Utf8JsonReader, ModelReaderWriterOptions) |
Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model. |
IJsonModel<ManagedServiceLoadMetric>.Write(Utf8JsonWriter, ModelReaderWriterOptions) |
Writes the model to the provided Utf8JsonWriter. |
IPersistableModel<ManagedServiceLoadMetric>.Create(BinaryData, ModelReaderWriterOptions) |
Converts the provided BinaryData into a model. |
IPersistableModel<ManagedServiceLoadMetric>.GetFormatFromOptions(ModelReaderWriterOptions) |
Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service. |
IPersistableModel<ManagedServiceLoadMetric>.Write(ModelReaderWriterOptions) |
Writes the model into a BinaryData. |