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
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
Azure SDK for Java