Class ExecuteActionHealthCheckController
Namespace: Umbraco.Cms.Api.Management.Controllers.HealthCheck
Assembly: Umbraco.Cms.Api.Management.dll
Syntax
public class ExecuteActionHealthCheckController : HealthCheckControllerBase
Constructors
View SourceExecuteActionHealthCheckController(HealthCheckCollection, IOptions<HealthChecksSettings>, IUmbracoMapper)
Declaration
public ExecuteActionHealthCheckController(HealthCheckCollection healthChecks, IOptions<HealthChecksSettings> healthChecksSettings, IUmbracoMapper umbracoMapper)
Parameters
| Type | Name | Description |
|---|---|---|
| HealthCheckCollection | healthChecks | |
| IOptions<HealthChecksSettings> | healthChecksSettings | |
| IUmbracoMapper | umbracoMapper |
Methods
View SourceExecuteAction(CancellationToken, HealthCheckActionRequestModel)
Executes a given action from a HealthCheck.
Declaration
public async Task<ActionResult<HealthCheckResultResponseModel>> ExecuteAction(CancellationToken cancellationToken, HealthCheckActionRequestModel action)
Parameters
| Type | Name | Description |
|---|---|---|
| CancellationToken | cancellationToken | |
| HealthCheckActionRequestModel | action | The action to be executed. |
Returns
| Type | Description |
|---|---|
| Task<ActionResult<HealthCheckResultResponseModel>> | The result of a health check after the health check action is performed. |