ResourceUtilizationHealthCheckExtensions.AddResourceUtilizationHealthCheck 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
AddResourceUtilizationHealthCheck(IHealthChecksBuilder, IConfigurationSection)
注册运行状况检查提供程序,该提供程序监视资源利用率以评估应用程序的运行状况。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::DependencyInjection::IHealthChecksBuilder ^ AddResourceUtilizationHealthCheck(Microsoft::Extensions::DependencyInjection::IHealthChecksBuilder ^ builder, Microsoft::Extensions::Configuration::IConfigurationSection ^ section);
public static Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder AddResourceUtilizationHealthCheck (this Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder builder, Microsoft.Extensions.Configuration.IConfigurationSection section);
static member AddResourceUtilizationHealthCheck : Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder * Microsoft.Extensions.Configuration.IConfigurationSection -> Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder
<Extension()>
Public Function AddResourceUtilizationHealthCheck (builder As IHealthChecksBuilder, section As IConfigurationSection) As IHealthChecksBuilder
参数
- builder
- IHealthChecksBuilder
要向其添加提供程序的生成器。
返回
builder
的值。
例外
builder
或 section
为 null
。
适用于
AddResourceUtilizationHealthCheck(IHealthChecksBuilder, Action<ResourceUtilizationHealthCheckOptions>)
注册运行状况检查提供程序,该提供程序监视资源利用率以评估应用程序的运行状况。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::DependencyInjection::IHealthChecksBuilder ^ AddResourceUtilizationHealthCheck(Microsoft::Extensions::DependencyInjection::IHealthChecksBuilder ^ builder, Action<Microsoft::Extensions::Diagnostics::HealthChecks::ResourceUtilizationHealthCheckOptions ^> ^ configure);
public static Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder AddResourceUtilizationHealthCheck (this Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder builder, Action<Microsoft.Extensions.Diagnostics.HealthChecks.ResourceUtilizationHealthCheckOptions> configure);
static member AddResourceUtilizationHealthCheck : Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder * Action<Microsoft.Extensions.Diagnostics.HealthChecks.ResourceUtilizationHealthCheckOptions> -> Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder
<Extension()>
Public Function AddResourceUtilizationHealthCheck (builder As IHealthChecksBuilder, configure As Action(Of ResourceUtilizationHealthCheckOptions)) As IHealthChecksBuilder
参数
- builder
- IHealthChecksBuilder
要向其添加提供程序的生成器。
- configure
- Action<ResourceUtilizationHealthCheckOptions>
配置回调。
返回
builder
的值。
例外
builder
或 configure
为 null
。
适用于
AddResourceUtilizationHealthCheck(IHealthChecksBuilder, IEnumerable<String>)
注册运行状况检查提供程序,该提供程序监视资源利用率以评估应用程序的运行状况。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::DependencyInjection::IHealthChecksBuilder ^ AddResourceUtilizationHealthCheck(Microsoft::Extensions::DependencyInjection::IHealthChecksBuilder ^ builder, System::Collections::Generic::IEnumerable<System::String ^> ^ tags);
public static Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder AddResourceUtilizationHealthCheck (this Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder builder, System.Collections.Generic.IEnumerable<string> tags);
static member AddResourceUtilizationHealthCheck : Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder * seq<string> -> Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder
<Extension()>
Public Function AddResourceUtilizationHealthCheck (builder As IHealthChecksBuilder, tags As IEnumerable(Of String)) As IHealthChecksBuilder
参数
- builder
- IHealthChecksBuilder
要向其添加提供程序的生成器。
- tags
- IEnumerable<String>
可用于筛选运行状况检查的标记的列表。
返回
builder
的值。
例外
builder
为 null
。
适用于
AddResourceUtilizationHealthCheck(IHealthChecksBuilder, String[])
注册运行状况检查提供程序,该提供程序监视资源利用率以评估应用程序的运行状况。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::DependencyInjection::IHealthChecksBuilder ^ AddResourceUtilizationHealthCheck(Microsoft::Extensions::DependencyInjection::IHealthChecksBuilder ^ builder, ... cli::array <System::String ^> ^ tags);
public static Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder AddResourceUtilizationHealthCheck (this Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder builder, params string[] tags);
static member AddResourceUtilizationHealthCheck : Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder * string[] -> Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder
<Extension()>
Public Function AddResourceUtilizationHealthCheck (builder As IHealthChecksBuilder, ParamArray tags As String()) As IHealthChecksBuilder
参数
- builder
- IHealthChecksBuilder
要向其添加提供程序的生成器。
- tags
- String[]
可用于筛选运行状况检查的标记的列表。
返回
builder
的值。
例外
builder
为 null
。
适用于
AddResourceUtilizationHealthCheck(IHealthChecksBuilder, IConfigurationSection, IEnumerable<String>)
注册运行状况检查提供程序,该提供程序监视资源利用率以评估应用程序的运行状况。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::DependencyInjection::IHealthChecksBuilder ^ AddResourceUtilizationHealthCheck(Microsoft::Extensions::DependencyInjection::IHealthChecksBuilder ^ builder, Microsoft::Extensions::Configuration::IConfigurationSection ^ section, System::Collections::Generic::IEnumerable<System::String ^> ^ tags);
public static Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder AddResourceUtilizationHealthCheck (this Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder builder, Microsoft.Extensions.Configuration.IConfigurationSection section, System.Collections.Generic.IEnumerable<string> tags);
static member AddResourceUtilizationHealthCheck : Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder * Microsoft.Extensions.Configuration.IConfigurationSection * seq<string> -> Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder
<Extension()>
Public Function AddResourceUtilizationHealthCheck (builder As IHealthChecksBuilder, section As IConfigurationSection, tags As IEnumerable(Of String)) As IHealthChecksBuilder
参数
- builder
- IHealthChecksBuilder
要向其添加提供程序的生成器。
- section
- IConfigurationSection
包含 实例的配置 ResourceUtilizationHealthCheckOptions部分。
- tags
- IEnumerable<String>
可用于筛选运行状况检查的标记的列表。
返回
builder
的值。
例外
builder
、section
或 tags
为 null
。
适用于
AddResourceUtilizationHealthCheck(IHealthChecksBuilder, IConfigurationSection, String[])
注册运行状况检查提供程序,该提供程序监视资源利用率以评估应用程序的运行状况。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::DependencyInjection::IHealthChecksBuilder ^ AddResourceUtilizationHealthCheck(Microsoft::Extensions::DependencyInjection::IHealthChecksBuilder ^ builder, Microsoft::Extensions::Configuration::IConfigurationSection ^ section, ... cli::array <System::String ^> ^ tags);
public static Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder AddResourceUtilizationHealthCheck (this Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder builder, Microsoft.Extensions.Configuration.IConfigurationSection section, params string[] tags);
static member AddResourceUtilizationHealthCheck : Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder * Microsoft.Extensions.Configuration.IConfigurationSection * string[] -> Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder
<Extension()>
Public Function AddResourceUtilizationHealthCheck (builder As IHealthChecksBuilder, section As IConfigurationSection, ParamArray tags As String()) As IHealthChecksBuilder
参数
- builder
- IHealthChecksBuilder
要向其添加提供程序的生成器。
- section
- IConfigurationSection
包含 实例的配置 ResourceUtilizationHealthCheckOptions部分。
- tags
- String[]
可用于筛选运行状况检查的标记的列表。
返回
builder
的值。
例外
builder
、section
或 tags
为 null
。
适用于
AddResourceUtilizationHealthCheck(IHealthChecksBuilder, Action<ResourceUtilizationHealthCheckOptions>, IEnumerable<String>)
注册运行状况检查提供程序,该提供程序监视资源利用率以评估应用程序的运行状况。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::DependencyInjection::IHealthChecksBuilder ^ AddResourceUtilizationHealthCheck(Microsoft::Extensions::DependencyInjection::IHealthChecksBuilder ^ builder, Action<Microsoft::Extensions::Diagnostics::HealthChecks::ResourceUtilizationHealthCheckOptions ^> ^ configure, System::Collections::Generic::IEnumerable<System::String ^> ^ tags);
public static Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder AddResourceUtilizationHealthCheck (this Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder builder, Action<Microsoft.Extensions.Diagnostics.HealthChecks.ResourceUtilizationHealthCheckOptions> configure, System.Collections.Generic.IEnumerable<string> tags);
static member AddResourceUtilizationHealthCheck : Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder * Action<Microsoft.Extensions.Diagnostics.HealthChecks.ResourceUtilizationHealthCheckOptions> * seq<string> -> Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder
<Extension()>
Public Function AddResourceUtilizationHealthCheck (builder As IHealthChecksBuilder, configure As Action(Of ResourceUtilizationHealthCheckOptions), tags As IEnumerable(Of String)) As IHealthChecksBuilder
参数
- builder
- IHealthChecksBuilder
要向其添加提供程序的生成器。
- configure
- Action<ResourceUtilizationHealthCheckOptions>
配置回调。
- tags
- IEnumerable<String>
可用于筛选运行状况检查的标记的列表。
返回
builder
的值。
例外
builder
、configure
或 tags
为 null
。
适用于
AddResourceUtilizationHealthCheck(IHealthChecksBuilder, Action<ResourceUtilizationHealthCheckOptions>, String[])
注册运行状况检查提供程序,该提供程序监视资源利用率以评估应用程序的运行状况。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::DependencyInjection::IHealthChecksBuilder ^ AddResourceUtilizationHealthCheck(Microsoft::Extensions::DependencyInjection::IHealthChecksBuilder ^ builder, Action<Microsoft::Extensions::Diagnostics::HealthChecks::ResourceUtilizationHealthCheckOptions ^> ^ configure, ... cli::array <System::String ^> ^ tags);
public static Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder AddResourceUtilizationHealthCheck (this Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder builder, Action<Microsoft.Extensions.Diagnostics.HealthChecks.ResourceUtilizationHealthCheckOptions> configure, params string[] tags);
static member AddResourceUtilizationHealthCheck : Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder * Action<Microsoft.Extensions.Diagnostics.HealthChecks.ResourceUtilizationHealthCheckOptions> * string[] -> Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder
<Extension()>
Public Function AddResourceUtilizationHealthCheck (builder As IHealthChecksBuilder, configure As Action(Of ResourceUtilizationHealthCheckOptions), ParamArray tags As String()) As IHealthChecksBuilder
参数
- builder
- IHealthChecksBuilder
要向其添加提供程序的生成器。
- configure
- Action<ResourceUtilizationHealthCheckOptions>
配置回调。
- tags
- String[]
可用于筛选运行状况检查的标记的列表。
返回
builder
的值。
例外
builder
、configure
或 tags
为 null
。