I added .NET Core Health Checks to my app.
I want to use tags to only run one check if it's a basic check or all checks for a more detailed check.
This is what I've got:
services.AddHealthChecks()
.AddCheck("Check1", () => HealthCheckResult.Healthy("Service Is Healthy!"), tags: new[] { "basic", "full" })
.AddCheck<CheckLogsAreHealthy>("Check2", tags: new[] { "full" })
.AddCheck<CheckLvcConnectionStatus>("Check3", tags: new[] { "full" })
I thought my URL should look like this:
http://localhost:4000/api/health?tags=basic
or
http://localhost:4000/api/health?tags=full
But this does not seem to be the case. How do I run each check?