3.0.1 • Published 2 years ago

@mimik/systeminfo v3.0.1

Weekly downloads
-
License
MIT
Repository
bitbucket
Last release
2 years ago

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 nameDescriptionDefaultComments
SERVER_NAMEname of the server
SERVER_TYPEtype of the server
SERVER_IDid of the rserver instance
SERVER_VERSIONversion of the server
NODE_ENVenvironment of the server instance
SWAGGER_FILE_VERSIONversion of the swaggerfile used for the API
SWAGGER_FILE_NAMEname of the swaggerFile for the API
SWAGGER_FILE_ACCOUNTaccount holding the swaggerFile for the API
SWAGGER_FILE_PROVIDERprovider of th eswaggerFile for the API
REGISTRATION_STATUSstatus of the registration to mIT
SERVER_LOCAL_IPV4local ipv4 address of the server instance
SERVER_PUBLIC_IPV4public ipv4 address of the instance
SERVER_LOCATION_LONlongitude of the location of the server instance
SERVER_LOCATION_LATlatitude of the location of the server instance
SERVER_PORTport of the server instance
DEPLOY_TIMEtime when the deployement was done
DEPLOY_GIT_REPO_BRANCHgit branch used for deployment
DEPLOY_GIT_REPO_HASH_KEYhash key of the git repo branch
CLUSTER_STATUS_SERVERSnumber of servers in the cluster
CLUSTER_STATUS_UPDATED_ATlast 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

ParamTypeDescription
cobjectThe context of the call.
reqobjectThe HTTP request.
resobjectThe 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

ParamTypeDescription
cobjectThe context of the call.
reqobjectThe HTTP request.
resobjectThe HTTP response.
configobjectThe server configuration.
3.0.1

2 years ago

3.0.0

2 years ago

2.3.13

2 years ago

2.3.12

2 years ago

2.3.11

2 years ago

2.3.10

3 years ago

2.3.9

3 years ago

2.3.8

4 years ago

2.2.1

6 years ago

2.2.0

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.3.6

6 years ago

1.3.5

6 years ago

1.3.4

6 years ago

1.3.3

6 years ago

1.3.2

6 years ago

1.3.1

6 years ago

1.3.0

7 years ago

1.2.0

7 years ago