1.0.3 • Published 2 years ago

@ssb-graphql/stats v1.0.3

Weekly downloads
-
License
AGPL-3.0
Repository
gitlab
Last release
2 years ago

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

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

4 years ago

1.0.0

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago