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

HealthCheckStepAttributes 类

定义

运行状况检查步骤的属性。 请注意 HealthCheckStepAttributes ,是基类。 根据方案,可能需要在此处分配基类的派生类,或者此属性需要强制转换为可能的派生类之一。 可用的派生类包括 RestHealthCheckStepAttributes

public abstract class HealthCheckStepAttributes
type HealthCheckStepAttributes = class
Public MustInherit Class HealthCheckStepAttributes
继承
HealthCheckStepAttributes
派生

构造函数

HealthCheckStepAttributes(TimeSpan)

初始化 HealthCheckStepAttributes 的新实例。

属性

HealthyStateDuration

资源应持续正常运行的 ISO 8601 格式的持续时间。 如果指定了 maxElasticDuration,则会在检测到第一个正常信号后强制实施正常状态持续时间。

MaxElasticDuration

运行状况检查等待资源正常运行的 ISO 8601 格式的持续时间。 运行状况检查失败(否则)。 资源正常后,运行状况检查开始强制实施 healthyStateDuration。

WaitDuration

ISO 8601 格式的持续时间,其中运行状况检查无任何检查地等待。

适用于