ResourceUtilizationHealthCheckOptions.CpuThresholds 属性

定义

获取或设置 CPU 使用率的阈值。

public:
 property Microsoft::Extensions::Diagnostics::HealthChecks::ResourceUsageThresholds ^ CpuThresholds { Microsoft::Extensions::Diagnostics::HealthChecks::ResourceUsageThresholds ^ get(); void set(Microsoft::Extensions::Diagnostics::HealthChecks::ResourceUsageThresholds ^ value); };
[Microsoft.Extensions.Options.ValidateObjectMembers]
public Microsoft.Extensions.Diagnostics.HealthChecks.ResourceUsageThresholds CpuThresholds { get; set; }
[<Microsoft.Extensions.Options.ValidateObjectMembers>]
member this.CpuThresholds : Microsoft.Extensions.Diagnostics.HealthChecks.ResourceUsageThresholds with get, set
Public Property CpuThresholds As ResourceUsageThresholds

属性值

属性

注解

会定期将阈值与已注册 IResourceMonitor的 提供的利用率示例进行比较。

适用于