This package has been deprecated

Author message:

The plugin has been moved to the main project (@server-status/api).

@server-status/api-plugin-services

0.0.3 • Public • Published

Services plugin for Server Status API

GraphQL API for retrieving information about running services.

Use

It is plugin so you need use the @server-status/api or you can adapt to yours ApolloServer. But if you choose my solution you need to do this steps:

$ npm install @server-status/api @server-status/api-plugin-services

or

$ yarn add @server-status/api @server-status/api-plugin-services

Create file e.g. index.js

const ServerStatus = require('@server-status/api')

const config = {
  plugins: [
    {
      name: '@server-status/api-plugin-services',
      config: {
        services: [
          {
            name: 'ServerStatus',
            port: '4000',
          },
          {
            name: 'OneTwoThere',
            port: '123',
          },
        ],
        hosts: [
          'localhost'
        ]
      }
    },
  ],
}

ServerStatus(config).listen()

And run server

$ node index.js

Licence

MIT

/@server-status/api-plugin-services/

    Package Sidebar

    Install

    npm i @server-status/api-plugin-services

    Weekly Downloads

    4

    Version

    0.0.3

    License

    MIT

    Unpacked Size

    14.9 kB

    Total Files

    22

    Last publish

    Collaborators

    • adam-zielonka