LoadMetric Class
- java.
lang. Object - system.
fabric. LoadMetric
- system.
public class LoadMetric
Constructor Summary
Constructor | Description |
---|---|
LoadMetric(String name, int value) |
Creates and initializes a system.fabric.LoadMetric object with the specified name and load value. |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
getName()
Indicates the name of the metric that the service plans to report. |
int |
getValue()
Indicates the current load of the metric. |
Constructor Details
LoadMetric
public LoadMetric(String name, int value)
Creates and initializes a system.fabric.LoadMetric object with the specified name and load value.
Parameters:
name
- The name of the metric. This string must match the names of the metrics that are specified in the service description metrics collection, or they will be ignored.
value
- The current value of the metric as an integer.
Method Details
getName
public String getName()
Indicates the name of the metric that the service plans to report.
Returns:
Returns String.
getValue
public int getValue()
Indicates the current load of the metric.
Returns:
Returns int.
Applies to
Colabore connosco no GitHub
A origem deste conteúdo pode ser encontrada no GitHub, onde também pode criar e rever problemas e pedidos Pull. Para mais informações, consulte o nosso guia do contribuidor.
Azure SDK for Java