App Metrics Fork me on GitHub
Show / Hide Table of Contents

Class HealthCheckFactoryExtensions

Inheritance
System.Object
HealthCheckFactoryExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace:App.Metrics
Assembly:cs.temp.dll.dll
Syntax
public static class HealthCheckFactoryExtensions

Methods

RegisterHttpGetHealthCheck(IHealthCheckFactory, String, Uri, TimeSpan, CancellationToken)

Declaration
public static IHealthCheckFactory RegisterHttpGetHealthCheck(this IHealthCheckFactory factory, string name, Uri uri, TimeSpan timeout, CancellationToken token = null)
Parameters
Type Name Description
IHealthCheckFactory factory
System.String name
Uri uri
System.TimeSpan timeout
CancellationToken token
Returns
Type Description
IHealthCheckFactory

RegisterPingHealthCheck(IHealthCheckFactory, String, String, TimeSpan)

Declaration
public static IHealthCheckFactory RegisterPingHealthCheck(this IHealthCheckFactory factory, string name, string host, TimeSpan timeout)
Parameters
Type Name Description
IHealthCheckFactory factory
System.String name
System.String host
System.TimeSpan timeout
Returns
Type Description
IHealthCheckFactory

RegisterProcessPhysicalMemoryHealthCheck(IHealthCheckFactory, String, Int64)

Registers a health check on the process confirming that the current amount of physical memory is below the threshold.

Declaration
public static IHealthCheckFactory RegisterProcessPhysicalMemoryHealthCheck(this IHealthCheckFactory factory, string name, long thresholdBytes)
Parameters
Type Name Description
IHealthCheckFactory factory

The health check factory where the health check is registered.

System.String name

The name of the health check.

System.Int64 thresholdBytes

The physical memory threshold in bytes.

Returns
Type Description
IHealthCheckFactory

The health check factory instance

RegisterProcessPrivateMemorySizeHealthCheck(IHealthCheckFactory, String, Int64)

Registers a health check on the process confirming that the current amount of private memory is below the threshold.

Declaration
public static IHealthCheckFactory RegisterProcessPrivateMemorySizeHealthCheck(this IHealthCheckFactory factory, string name, long thresholdBytes)
Parameters
Type Name Description
IHealthCheckFactory factory

The health check factory where the health check is registered.

System.String name

The name of the health check.

System.Int64 thresholdBytes

The private memory threshold in bytes.

Returns
Type Description
IHealthCheckFactory

The health check factory instance

RegisterProcessVirtualMemorySizeHealthCheck(IHealthCheckFactory, String, Int64)

Registers a health check on the process confirming that the current amount of virtual memory is below the threshold.

Declaration
public static IHealthCheckFactory RegisterProcessVirtualMemorySizeHealthCheck(this IHealthCheckFactory factory, string name, long thresholdBytes)
Parameters
Type Name Description
IHealthCheckFactory factory

The health check factory where the health check is registered.

System.String name

The name of the health check.

System.Int64 thresholdBytes

The virtual memory threshold in bytes.

Returns
Type Description
IHealthCheckFactory

The health check factory instance

Back to top Copyright © 2017 Allan Hardy
Generated by DocFX