โค๏ธHealth check
This article describes the health check functionality of the PORTOS API.
Get health check
GET
{{server_adddress}}/api/v2/health
This endpoint allows you to get system-wide health check.
The response HTTP status is always 200 for all health report status values. No authorization is required for accessing API health check.
Response payload
The response payload is based on Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions
library and consists of following classes:
Health status
String enumeration of following values:
healthy
Indicates that the health check determined that the component was healthy.degraded
Indicates that the health check determined that the component was in a degraded state.unhealthy
Indicates that the health check determined that the component was unhealthy, or an unhandled exception was thrown while executing the health check.
Health report
The response payload is represented by HealthReport
class, which contains following properties:
Health report entry
The values in health report entries
dictionary map are represented by the HealthReportEntry
class, which contains following properties:
Health report exception
Represents information about failed health report check.
Health check result
Some health checks contains collection of inner health checks. Each element of such collection is represented by the HealthCheckResult
class, which contains following properties:
Health checks
The health report's entries
dictionary contains information for all API components such as:
Core health checks
There are following core health report entries:
Disk storage health check
Disk storage health check is associated with the diskstorage`
identifier. This health check verifies free space on disk, on which executing assembly (the API service/deamon) is stored. Following table explains relationship between free megabytes and health status of health check.
License health check
License health check is associated with the license
identifier. License health check verifies expiration date of product license. Following table explains relationship between remaining license days and health status of license health check.
The data
section contains following values:
The keys may not be present, if exception
property of license health report entry is set.
Fiscal printers health check
Fiscal printers health check is associated with the fiscalPrinters
identifier. Checks health of every fiscal device marked as active.
The data
section contains following values:
The FiscalPrintersHealthCheckResultEntry
class contains following properties:
Order endpoints health check
Order endpoints health check is associated with the orderEndpoints
identifier. Checks health of every order endpoint device marked as active.
The data
section contains following values:
The OrderEndpointsHealthCheckResultEntry
class contains following properties:
Feature health checks
If some optional features are enabled on API server, health report contains report entries for such feature. Name of health report entry is equal to feature name, that is prefixed with portos.Features
prefix (e.g. Qerko
feature is associated with report entry with name portos.Features.Qerko
) and contains displayName
property in it's data
.
Last updated