你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

LoadMetric Class

  • java.lang.Object
    • system.fabric.LoadMetric

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