Cross-platform system memory health check
> dotnet add package AspNetCore.HealthChecks.SystemMemory
PM> Install-Package AspNetCore.HealthChecks.SystemMemory
public class Startup
{
public void ConfigureServices(IServiceCollection services)
{
services.AddHealthChecks()
.AddSystemMemory(500);
}
}
.NET Health check for Badget SMS API connectivity and low credit
> dotnet add package AspNetCore.HealthChecks.BudgetSms
PM> Install-Package AspNetCore.HealthChecks.BudgetSms
public class Startup
{
public void ConfigureServices(IServiceCollection services)
{
services.AddHealthChecks()
.AddBudgetSms(options =>
{
options.Username = Configuration["BudgetSms:Username"];
options.UserId = Configuration["BudgetSms:UserId"];
options.Handle = Configuration["BudgetSms:Handle"];
options.MinimumCredit = 30;
});
}
}