Search Results for

    Show / Hide Table of Contents
    View Source

    Class HealthCheck

    Provides a base class for health checks, filling in the healthcheck metadata on construction

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Core.HealthChecks
    Assembly: Umbraco.Core.dll
    Syntax
    [DataContract(Name = "healthCheck", Namespace = "")]
    public abstract class HealthCheck : IDiscoverable

    Constructors

    View Source

    HealthCheck()

    Declaration
    protected HealthCheck()

    Properties

    View Source

    Description

    Declaration
    [DataMember(Name = "description")]
    public string Description { get; }
    Property Value
    Type Description
    System.String
    View Source

    Group

    Declaration
    [DataMember(Name = "group")]
    public string Group { get; }
    Property Value
    Type Description
    System.String
    View Source

    Id

    Declaration
    [DataMember(Name = "id")]
    public Guid Id { get; }
    Property Value
    Type Description
    Guid
    View Source

    Name

    Declaration
    [DataMember(Name = "name")]
    public string Name { get; }
    Property Value
    Type Description
    System.String

    Methods

    View Source

    ExecuteAction(HealthCheckAction)

    Executes the action and returns it's status

    Declaration
    public virtual HealthCheckStatus ExecuteAction(HealthCheckAction action)
    Parameters
    Type Name Description
    HealthCheckAction action
    Returns
    Type Description
    HealthCheckStatus
    View Source

    ExecuteActionAsync(HealthCheckAction)

    Executes the action and returns it's status

    Declaration
    public virtual Task<HealthCheckStatus> ExecuteActionAsync(HealthCheckAction action)
    Parameters
    Type Name Description
    HealthCheckAction action
    Returns
    Type Description
    Task<HealthCheckStatus>
    View Source

    GetStatus()

    Get the status for this health check

    Declaration
    public virtual Task<IEnumerable<HealthCheckStatus>> GetStatus()
    Returns
    Type Description
    Task<IEnumerable<HealthCheckStatus>>
    Remarks

    If there are possible actions to take to rectify this check, this method must be overridden by a sub class in order to explicitly provide those actions.

    View Source

    GetStatusAsync()

    Get the status for this health check

    Declaration
    public virtual Task<IEnumerable<HealthCheckStatus>> GetStatusAsync()
    Returns
    Type Description
    Task<IEnumerable<HealthCheckStatus>>
    Remarks

    If there are possible actions to take to rectify this check, this method must be overridden by a sub class in order to explicitly provide those actions.

    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • HealthCheck()
    • Properties
      • Description
      • Group
      • Id
      • Name
    • Methods
      • ExecuteAction(HealthCheckAction)
      • ExecuteActionAsync(HealthCheckAction)
      • GetStatus()
      • GetStatusAsync()
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX