1.0.3 • Published 1 year ago

@ssb-graphql/stats v1.0.3

Weekly downloads
-
License
AGPL-3.0
Repository
gitlab
Last release
1 year 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

1 year ago

1.0.2

1 year ago

1.0.1

3 years ago

1.0.0

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago