ResourceUtilizationHealthCheckExtensions.AddResourceUtilizationHealthCheck Method

Definition

Overloads

AddResourceUtilizationHealthCheck(IHealthChecksBuilder, IConfigurationSection)

Registers a health check provider that monitors resource utilization to assess the application's health.

AddResourceUtilizationHealthCheck(IHealthChecksBuilder, Action<ResourceUtilizationHealthCheckOptions>)

Registers a health check provider that monitors resource utilization to assess the application's health.

AddResourceUtilizationHealthCheck(IHealthChecksBuilder, IEnumerable<String>)

Registers a health check provider that monitors resource utilization to assess the application's health.

AddResourceUtilizationHealthCheck(IHealthChecksBuilder, String[])

Registers a health check provider that monitors resource utilization to assess the application's health.

AddResourceUtilizationHealthCheck(IHealthChecksBuilder, IConfigurationSection, IEnumerable<String>)

Registers a health check provider that monitors resource utilization to assess the application's health.

AddResourceUtilizationHealthCheck(IHealthChecksBuilder, IConfigurationSection, String[])

Registers a health check provider that monitors resource utilization to assess the application's health.

AddResourceUtilizationHealthCheck(IHealthChecksBuilder, Action<ResourceUtilizationHealthCheckOptions>, IEnumerable<String>)

Registers a health check provider that monitors resource utilization to assess the application's health.

AddResourceUtilizationHealthCheck(IHealthChecksBuilder, Action<ResourceUtilizationHealthCheckOptions>, String[])

Registers a health check provider that monitors resource utilization to assess the application's health.

AddResourceUtilizationHealthCheck(IHealthChecksBuilder, IConfigurationSection)

Source:
ResourceUtilizationHealthCheckExtensions.cs

Registers a health check provider that monitors resource utilization to assess the application's health.

C#
public static Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder AddResourceUtilizationHealthCheck(this Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder builder, Microsoft.Extensions.Configuration.IConfigurationSection section);

Parameters

builder
IHealthChecksBuilder

The builder to add the provider to.

Returns

The value of builder.

Exceptions

builder or section is null.

Applies to

.NET 9 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)

AddResourceUtilizationHealthCheck(IHealthChecksBuilder, Action<ResourceUtilizationHealthCheckOptions>)

Source:
ResourceUtilizationHealthCheckExtensions.cs

Registers a health check provider that monitors resource utilization to assess the application's health.

C#
public static Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder AddResourceUtilizationHealthCheck(this Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder builder, Action<Microsoft.Extensions.Diagnostics.HealthChecks.ResourceUtilizationHealthCheckOptions> configure);

Parameters

builder
IHealthChecksBuilder

The builder to add the provider to.

configure
Action<ResourceUtilizationHealthCheckOptions>

Configuration callback.

Returns

The value of builder.

Exceptions

builder or configure is null.

Applies to

.NET 9 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)

AddResourceUtilizationHealthCheck(IHealthChecksBuilder, IEnumerable<String>)

Source:
ResourceUtilizationHealthCheckExtensions.cs

Registers a health check provider that monitors resource utilization to assess the application's health.

C#
public static Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder AddResourceUtilizationHealthCheck(this Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder builder, System.Collections.Generic.IEnumerable<string> tags);

Parameters

builder
IHealthChecksBuilder

The builder to add the provider to.

tags
IEnumerable<String>

A list of tags that can be used to filter health checks.

Returns

The value of builder.

Exceptions

builder is null.

Applies to

.NET 9 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)

AddResourceUtilizationHealthCheck(IHealthChecksBuilder, String[])

Source:
ResourceUtilizationHealthCheckExtensions.cs

Registers a health check provider that monitors resource utilization to assess the application's health.

C#
public static Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder AddResourceUtilizationHealthCheck(this Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder builder, params string[] tags);

Parameters

builder
IHealthChecksBuilder

The builder to add the provider to.

tags
String[]

A list of tags that can be used to filter health checks.

Returns

The value of builder.

Exceptions

builder is null.

Applies to

.NET 9 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)

AddResourceUtilizationHealthCheck(IHealthChecksBuilder, IConfigurationSection, IEnumerable<String>)

Source:
ResourceUtilizationHealthCheckExtensions.cs

Registers a health check provider that monitors resource utilization to assess the application's health.

C#
public static Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder AddResourceUtilizationHealthCheck(this Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder builder, Microsoft.Extensions.Configuration.IConfigurationSection section, System.Collections.Generic.IEnumerable<string> tags);

Parameters

builder
IHealthChecksBuilder

The builder to add the provider to.

section
IConfigurationSection

Configuration section holding an instance of ResourceUtilizationHealthCheckOptions.

tags
IEnumerable<String>

A list of tags that can be used to filter health checks.

Returns

The value of builder.

Exceptions

builder, section or tags is null.

Applies to

.NET 9 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)

AddResourceUtilizationHealthCheck(IHealthChecksBuilder, IConfigurationSection, String[])

Source:
ResourceUtilizationHealthCheckExtensions.cs

Registers a health check provider that monitors resource utilization to assess the application's health.

C#
public static Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder AddResourceUtilizationHealthCheck(this Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder builder, Microsoft.Extensions.Configuration.IConfigurationSection section, params string[] tags);

Parameters

builder
IHealthChecksBuilder

The builder to add the provider to.

section
IConfigurationSection

Configuration section holding an instance of ResourceUtilizationHealthCheckOptions.

tags
String[]

A list of tags that can be used to filter health checks.

Returns

The value of builder.

Exceptions

builder, section or tags is null.

Applies to

.NET 9 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)

AddResourceUtilizationHealthCheck(IHealthChecksBuilder, Action<ResourceUtilizationHealthCheckOptions>, IEnumerable<String>)

Source:
ResourceUtilizationHealthCheckExtensions.cs

Registers a health check provider that monitors resource utilization to assess the application's health.

C#
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);

Parameters

builder
IHealthChecksBuilder

The builder to add the provider to.

configure
Action<ResourceUtilizationHealthCheckOptions>

Configuration callback.

tags
IEnumerable<String>

A list of tags that can be used to filter health checks.

Returns

The value of builder.

Exceptions

builder, configure or tags is null.

Applies to

.NET 9 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)

AddResourceUtilizationHealthCheck(IHealthChecksBuilder, Action<ResourceUtilizationHealthCheckOptions>, String[])

Source:
ResourceUtilizationHealthCheckExtensions.cs

Registers a health check provider that monitors resource utilization to assess the application's health.

C#
public static Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder AddResourceUtilizationHealthCheck(this Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder builder, Action<Microsoft.Extensions.Diagnostics.HealthChecks.ResourceUtilizationHealthCheckOptions> configure, params string[] tags);

Parameters

builder
IHealthChecksBuilder

The builder to add the provider to.

configure
Action<ResourceUtilizationHealthCheckOptions>

Configuration callback.

tags
String[]

A list of tags that can be used to filter health checks.

Returns

The value of builder.

Exceptions

builder, configure or tags is null.

Applies to

.NET 9 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)