HealthReport 类
定义
表示一组 IHealthCheck 实例的执行结果。Represents the result of executing a group of IHealthCheck instances.
public ref class HealthReport sealed
public sealed class HealthReport
type HealthReport = class
Public NotInheritable Class HealthReport
- 继承
-
HealthReport
构造函数
| HealthReport(IReadOnlyDictionary<String,HealthReportEntry>, HealthStatus, TimeSpan) | |
| HealthReport(IReadOnlyDictionary<String,HealthReportEntry>, TimeSpan) |
从指定的结果创建新的 HealthReport。Create a new HealthReport from the specified results. |
属性
| Entries |
IReadOnlyDictionary<TKey,TValue>,其中包含来自每次运行状况检查的结果。A IReadOnlyDictionary<TKey,TValue> containing the results from each health check. |
| Status |
获取 HealthStatus,其表示所有运行状况检查的聚合状态。Gets a HealthStatus representing the aggregate status of all the health checks. Status 的值将是运行状况检查所报告的最严重状态。The value of Status will be the most servere status reported by a health check. 如果未执行任何检查,则该值始终是 Healthy。If no checks were executed, the value is always Healthy. |
| TotalDuration |
获取用于指示执行运行状况检查服务所需的时间。Gets the time the health check service took to execute. |
方法
| Equals(Object) |
确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object. (继承自 Object) |
| GetHashCode() |
作为默认哈希函数。Serves as the default hash function. (继承自 Object) |
| GetType() |
获取当前实例的 Type。Gets the Type of the current instance. (继承自 Object) |
| MemberwiseClone() |
创建当前 Object 的浅表副本。Creates a shallow copy of the current Object. (继承自 Object) |
| ToString() |
返回表示当前对象的字符串。Returns a string that represents the current object. (继承自 Object) |