C# Class HealthEndPointMonitoring.Web.Controllers.HealthCheckController

Inheritance: Controller
Show file Open project: mspnp/cloud-design-patterns

Public Methods

Method Description
CheckUnstableServiceHealth ( ) : System.Web.Mvc.ActionResult

Test check that randomly returns 500 or 200 status codes emulating an unstable service. /HealthCheck/CheckUnstableServiceHealth

CoreServices ( ) : System.Web.Mvc.ActionResult

Controller action to perform a simple check on dependent services

ObscurePath ( string id ) : System.Web.Mvc.ActionResult

Perform a check that uses a configurable obscure path /HealthCheck/ObscurePath/{key-path} F3CJ34X9

TestResponseFromConfig ( ) : System.Web.Mvc.ActionResult

Test health check that returns a response code set in configuration for testing /HealthCheck/TestResponseFromConfig

Method Details

CheckUnstableServiceHealth() public method

Test check that randomly returns 500 or 200 status codes emulating an unstable service. /HealthCheck/CheckUnstableServiceHealth
public CheckUnstableServiceHealth ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult

CoreServices() public method

Controller action to perform a simple check on dependent services
public CoreServices ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult

ObscurePath() public method

Perform a check that uses a configurable obscure path /HealthCheck/ObscurePath/{key-path} F3CJ34X9
public ObscurePath ( string id ) : System.Web.Mvc.ActionResult
id string
return System.Web.Mvc.ActionResult

TestResponseFromConfig() public method

Test health check that returns a response code set in configuration for testing /HealthCheck/TestResponseFromConfig
public TestResponseFromConfig ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult