VersionMonitorNetCore 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package VersionMonitorNetCore --version 1.0.0                
NuGet\Install-Package VersionMonitorNetCore -Version 1.0.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="VersionMonitorNetCore" Version="1.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add VersionMonitorNetCore --version 1.0.0                
#r "nuget: VersionMonitorNetCore, 1.0.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install VersionMonitorNetCore as a Cake Addin
#addin nuget:?package=VersionMonitorNetCore&version=1.0.0

// Install VersionMonitorNetCore as a Cake Tool
#tool nuget:?package=VersionMonitorNetCore&version=1.0.0                

Anexia Monitoring

Package to monitor dependency and framework versions for .NET Core Frameworks. It can be also used to check if the website is alive and working correctly.

Installation and configuration

Install the package via NuGet: "VersionMonitorNetCore"

Set Access Token and register monitoring routes before adding the default routes in Startup.cs:

	...        
    public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory)
    {
        Anexia.Monitoring.VersionMonitor.SetAccessToken("custom_access_token");
        Anexia.Monitoring.VersionMonitor.RegisterServiceStateMonitor(app, () => true);
        Anexia.Monitoring.VersionMonitor.RegisterModulesInfoMonitor(app);
        ...
    }
	...

Usage

The package registers some custom REST endpoints which can be used for monitoring. Make sure that the custom_access_token is defined, since this is used for authorization.

Version monitoring of core and composer packages

Returns all a list with dependency and framework version information.

URL: /anxapi/v1/modules?access_token=custom_access_token

Response headers:

Status Code: 200 OK
Access-Control-Allow-Credentials: true
Access-Control-Allow-Methods: GET, OPTIONS
Access-Control-Allow-Origin: *
Content-Type: application/json; charset=utf-8

Response body:

"runtime":{
	"platform":"dotnetcore",
	"platform_version":"1.1",
	"framework":".NETCoreApp",
	"framework_installed_version":"1.1",
	"framework_newest_version":"1.1"
},
"modules":[{
		"name": "Libuv",
		"installed_version": "1.9.1",
		"newest_version": "1.10.0",
		"licence_urls": ["https://raw.githubusercontent.com/aspnet/libuv-build/775a18ca77368a0f4ca753e82b2369f24707fb3e/build/License.txt"]
	},
	{
		"name": "Microsoft.ApplicationInsights",
		"installed_version": "2.2.0",
		"newest_version": "2.8.1",
		"licence_urls": ["https://go.microsoft.com/fwlink/?LinkID=510709"]
	},
	...
]}
Live monitoring

This endpoint can be used to verify if the application is alive and working correctly.

URL: /anxapi/v1/up?access_token=custom_access_token

Response headers:

Status Code: 200 OK
Access-Control-Allow-Credentials: true
Access-Control-Allow-Methods: GET, OPTIONS
Access-Control-Allow-Origin: *
Content-Type: text/plain; charset=utf-8

Response body:

OK

List of developers

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp1.1 is compatible.  netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.0.0 12,672 10/13/2021
1.0.0 860 10/29/2018

Initial release