C# Класс HealthMonitoring.Monitors.Core.Samplers.HealthSampler

Наследование: IHealthSampler
Показать файл Открыть проект

Открытые методы

Метод Описание
CheckHealthAsync ( MonitorableEndpoint endpoint, CancellationToken cancellationToken ) : Task
HealthSampler ( IMonitorSettings settings, IEndpointHealthUpdateListener healthUpdateListener, ITimeCoordinator timeCoordinator ) : System

Приватные методы

Метод Описание
CancelHealthTaskIfNeededAsync ( Task healthTask, CancellationTokenSource timeoutToken ) : Task
ConfigureTimeoutTaskAsync ( MonitorableEndpoint endpoint, CancellationToken cancellationToken ) : Task
FromException ( System.DateTime checkTimeUtc, System.TimeSpan responseTime, Exception exception ) : HealthMonitoring.Model.EndpointHealth
FromResult ( System.DateTime checkTimeUtc, System.TimeSpan responseTime, HealthInfo result ) : HealthMonitoring.Model.EndpointHealth
GetStatus ( HealthStatus status, System.TimeSpan responseTime ) : EndpointStatus
LogHealthStatus ( MonitorableEndpoint endpoint, HealthMonitoring.Model.EndpointHealth endpointHealth ) : void
PerformHealthCheckAsync ( CancellationToken cancellationToken, MonitorableEndpoint endpoint ) : Task
PerformHealthCheckAsync ( MonitorableEndpoint endpoint, CancellationTokenSource timeoutToken ) : Task
RequiresShortTimeout ( MonitorableEndpoint endpoint ) : bool

Описание методов

CheckHealthAsync() публичный Метод

public CheckHealthAsync ( MonitorableEndpoint endpoint, CancellationToken cancellationToken ) : Task
endpoint MonitorableEndpoint
cancellationToken System.Threading.CancellationToken
Результат Task

HealthSampler() публичный Метод

public HealthSampler ( IMonitorSettings settings, IEndpointHealthUpdateListener healthUpdateListener, ITimeCoordinator timeCoordinator ) : System
settings IMonitorSettings
healthUpdateListener IEndpointHealthUpdateListener
timeCoordinator ITimeCoordinator
Результат System