@ssb-graphql/stats

1.0.3 • Public • Published

GraphQL for machine statistics

Machine statistics types and resolvers. It provides primitives for reading cpu load, memory load, disk usage and network information.

Usage

npm i -S @ssb-graphql/stats

Example Usage

const { ApolloServer } = require('apollo-server-express')
const { buildFederatedSchema } = require('@apollo/federation');

const stats = require('@ssb-graphql/stats')

const server = new ApolloServer({
  schema: buildFederatedSchema([
    { typeDefs: stats.typeDefs, resolvers: stats.resolvers },
    // add other types + resolvers here!
  ])
})

API

See /src/typeDefs.js for the most up to date details on what's offered by this module.

Testing

run npm test to run tests

/@ssb-graphql/stats/

    Package Sidebar

    Install

    npm i @ssb-graphql/stats

    Weekly Downloads

    0

    Version

    1.0.3

    License

    AGPL-3.0

    Unpacked Size

    10.5 kB

    Total Files

    8

    Last publish

    Collaborators

    • luandro
    • mixmix
    • staltz
    • chereseeriepa
    • christianbundy
    • ben-tai