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 |
---|---|---|
Health |
healthChecks | |
IOptions<Health |
healthChecksSettings | |
IUmbraco |
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 |
---|---|---|
Cancellation |
cancellationToken | |
Health |
action | The action to be executed. |
Returns
Type | Description |
---|---|
Task<Action |
The result of a health check after the health check action is performed. |