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

IHealthIndicator 接口

定义

提供用于获取或设置服务的运行状况的抽象。 HealthReport可用于指示错误,例如在主页上提供提示。

public interface IHealthIndicator
type IHealthIndicator = interface
Public Interface IHealthIndicator
派生

方法

GetHealthReport()

获取服务的当前 HealthReport 值。

SetHealthReport(HealthReport)

设置服务的当前 HealthReport 值。 新的 HealthReport 将替换服务的当前运行状况,即在任何给定时间只有一个活动 HealthReport 状态。

适用于