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

ServiceHealth 类

定义

描述由 GetServiceHealthAsync(ServiceHealthQueryDescription)返回的服务的运行状况。

public sealed class ServiceHealth : System.Fabric.Health.EntityHealth
type ServiceHealth = class
    inherit EntityHealth
Public NotInheritable Class ServiceHealth
Inherits EntityHealth
继承
ServiceHealth

属性

AggregatedHealthState

获取实体聚合运行状况状态。

(继承自 EntityHealth)
HealthEvents

获取实体上报告的运行状况事件。

(继承自 EntityHealth)
HealthStatistics

获取服务运行状况统计信息,其中包含有关有多少分区和副本处于 OkWarningError 状态的信息。

PartitionHealthStates

获取当前服务的分区运行状况状态。

ServiceName

获取唯一标识服务运行状况实体的服务名称。

UnhealthyEvaluations

获取运行状况管理器返回当前聚合运行状况状态的原因的不正常评估。

(继承自 EntityHealth)

方法

AddUnhealthyEvaluationsString(StringBuilder)

给定 一个 StringBuilder,会追加一个描述不正常评估的字符串(如果有)。

(继承自 EntityHealth)
ToString()

获取 的 ServiceHealth字符串表示形式。

适用于