@mimik/systeminfo

3.0.1 • Public • Published

systeminfo

Example

const systeminfo = require('@mimik/systeminfo');

systeminfo~filteredConfig() ⇒ object

Retrieving the filter config of the service in prod or the config in other environments.

Kind: inner method of systeminfo
Returns: object - config: The filtered config.
Category: sync

systeminfo~healthInfo() ⇒ object

Retrieving the healthInfo of the service.

Kind: inner method of systeminfo
Returns: object - info: The health info.

The following environment variables are used:

Env variable name Description Default Comments
SERVER_NAME name of the server
SERVER_TYPE type of the server
SERVER_ID id of the rserver instance
SERVER_VERSION version of the server
NODE_ENV environment of the server instance
SWAGGER_FILE_VERSION version of the swaggerfile used for the API
SWAGGER_FILE_NAME name of the swaggerFile for the API
SWAGGER_FILE_ACCOUNT account holding the swaggerFile for the API
SWAGGER_FILE_PROVIDER provider of th eswaggerFile for the API
REGISTRATION_STATUS status of the registration to mIT
SERVER_LOCAL_IPV4 local ipv4 address of the server instance
SERVER_PUBLIC_IPV4 public ipv4 address of the instance
SERVER_LOCATION_LON longitude of the location of the server instance
SERVER_LOCATION_LAT latitude of the location of the server instance
SERVER_PORT port of the server instance
DEPLOY_TIME time when the deployement was done
DEPLOY_GIT_REPO_BRANCH git branch used for deployment
DEPLOY_GIT_REPO_HASH_KEY hash key of the git repo branch
CLUSTER_STATUS_SERVERS number of servers in the cluster
CLUSTER_STATUS_UPDATED_AT last update of the cluster information
Category: sync

systeminfo~getHealthCheckInfo(c, req, res) ⇒

Get healthCheck info.

Kind: inner method of systeminfo
Returns: null.
Category: sync
Requires: module:@mimik/response-helper, module:@mimik/swagger-helper

Param Type Description
c object The context of the call.
req object The HTTP request.
res object The HTTP response.

systeminfo~getSystemInfo(c, req, res, config) ⇒

Get system info.

Kind: inner method of systeminfo
Returns: null.
Category: sync
Requires: module:@mimik/response-helper, module:@mimik/swagger-helper
Require: @mimik/lib-filters
Require: @mimik/systeminfo-filters

Param Type Description
c object The context of the call.
req object The HTTP request.
res object The HTTP response.
config object The server configuration.

/@mimik/systeminfo/

    Package Sidebar

    Install

    npm i @mimik/systeminfo

    Weekly Downloads

    9

    Version

    3.0.1

    License

    MIT

    Unpacked Size

    16.6 kB

    Total Files

    10

    Last publish

    Collaborators

    • sasan.raisdana
    • miburger
    • hofachiang
    • mimik-npm-editor
    • mimikopensource