{"id":16678948,"url":"https://github.com/joncloud/vitality-net","last_synced_at":"2026-05-16T11:03:25.037Z","repository":{"id":27144137,"uuid":"112647939","full_name":"joncloud/vitality-net","owner":"joncloud","description":"Provides component status evaluation to integrate with monitoring services","archived":false,"fork":false,"pushed_at":"2022-12-07T18:41:56.000Z","size":59,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"publish","last_synced_at":"2025-11-27T14:12:34.820Z","etag":null,"topics":["asp-net-core","availability","azure","check","component","entity-framework-core","health","monitor","mvc","status","storage-account"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/joncloud.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-11-30T18:50:36.000Z","updated_at":"2018-03-18T04:36:35.000Z","dependencies_parsed_at":"2023-01-14T06:05:18.504Z","dependency_job_id":null,"html_url":"https://github.com/joncloud/vitality-net","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/joncloud/vitality-net","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joncloud%2Fvitality-net","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joncloud%2Fvitality-net/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joncloud%2Fvitality-net/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joncloud%2Fvitality-net/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joncloud","download_url":"https://codeload.github.com/joncloud/vitality-net/tar.gz/refs/heads/publish","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joncloud%2Fvitality-net/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33100319,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T04:41:52.686Z","status":"ssl_error","status_checked_at":"2026-05-16T04:41:52.009Z","response_time":115,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["asp-net-core","availability","azure","check","component","entity-framework-core","health","monitor","mvc","status","storage-account"],"created_at":"2024-10-12T13:32:24.188Z","updated_at":"2026-05-16T11:03:25.023Z","avatar_url":"https://github.com/joncloud.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vitality.NET\n[![Travis](https://img.shields.io/travis/joncloud/vitality-net.svg)](https://travis-ci.org/joncloud/vitality-net/)\n[![NuGet](https://img.shields.io/nuget/v/Vitality.svg)](https://www.nuget.org/packages/Vitality/)\n\n\u003cimg src=\"https://raw.githubusercontent.com/joncloud/vitality-net/master/nuget.png\" alt=\"vitality.net\" /\u003e\n\n## Description\nVitality.NET provides component status evaluation to integrate with monitoring services.\n\n## Licensing\nReleased under the MIT License.  See the [LICENSE][] file for further details.\n\n[license]: LICENSE.md\n\n## Installation\nIn the Package Manager Console execute\n\n```powershell\nInstall-Package Vitality\n```\n\nOr update `*.csproj` to include a dependency on\n\n```xml\n\u003cItemGroup\u003e\n  \u003cPackageReference Include=\"Vitality\" Version=\"0.1.0-*\" /\u003e\n\u003c/ItemGroup\u003e\n```\n\n## Usage\nSample authorization for details:\n```csharp\nclass Startup {\n  public void ConfigureServices(IServiceCollection services) =\u003e \n    services.AddVitality(options =\u003e options.AuthorizeDetails = ctx =\u003e ctx.User.IsInRole(\"Admin\"));\n}\n```\n\nSample integration with Sqlite Database:\n```csharp\nclass Startup {\n  // ...\n  \n  public void ConfigureServices(IServiceCollection services) =\u003e \n    services.AddVitality(options =\u003e options.AddDbConnectionEvaluator(\"SqliteDatabase\", () =\u003e new SqliteConnection(), \"Data Source=:memory:;\"));\n    \n  public void Configure(IApplicationBuilder app, IHostingEnvironment env) =\u003e\n    app.UseVitality().UseMvc();\n}\n```\n\nSample output for `/vitality` results in\n```json\n{\n  \"sqliteDatabase\": \"Up\"\n}\n```\n\nTest results can be cached by using the appropriate overload:\n```csharp\nservices.AddVitality(options =\u003e options.AddDbConnectionEvaluator(\"SqliteDatabase\", () =\u003e new SqliteConnection(), \"Data Source=:memory:;\"), TimeSpan.FromMinutes(5));\n```\n\nTest an Entity Framework DbContext (include Vitality.EntityFrameworkCore):\n```csharp\n// Simply make sure the database connection is correct.\nservices.AddVitality(options =\u003e options.AddDbContextEvaluator\u003cApplicationDbContext\u003e(\"ApplicationDbContext\"));\n\n// Check something on the context for verification.\nservices.AddVitality(options =\u003e options.AddDbContextEvaluator\u003cApplicationDbContext\u003e(\"ApplicationDbContext\", ctx =\u003e ctx.CriticalTableMustHaveRows.AnyAsync()));\n```\n\nFor additional usage see [Tests][].\n\n[Tests]: tests/Vitality.Tests\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoncloud%2Fvitality-net","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoncloud%2Fvitality-net","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoncloud%2Fvitality-net/lists"}