Skip to content

Latest commit

 

History

History
59 lines (46 loc) · 1.09 KB

README.md

File metadata and controls

59 lines (46 loc) · 1.09 KB

AspNetCore.HealthChecks.SystemMemory

Cross-platform system memory health check

Installation

> dotnet add package AspNetCore.HealthChecks.SystemMemory
PM> Install-Package AspNetCore.HealthChecks.SystemMemory

Usage

public class Startup
{
    public void ConfigureServices(IServiceCollection services)
    {
        services.AddHealthChecks()
            .AddSystemMemory(500);
    }
}

AspNetCore.HealthChecks.BudgetSms

.NET Health check for Badget SMS API connectivity and low credit

Installation

> dotnet add package AspNetCore.HealthChecks.BudgetSms
PM> Install-Package AspNetCore.HealthChecks.BudgetSms

Usage

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;
	    });
    }
}