grunt-service-status

2.1.1 • Public • Published

grunt-service-status

Build Status NPM version Dependencies

Verify the service-status monitor

installation:

npm install --save grunt-service-status

usage:

grunt.initConfig({
  'service-status':{
    'myservice': {
      options: {
        baseUrl: 'http://my.service.com/service-status',
        monitors: ['my-test-monitor', 'my-test-monitor-2'],
        warmUps: 2,
        waitAfterWarmUp: 2000
      }
    },
    'myservice-alt': {
      options: {
        baseUrl: 'http://my.service.com/service-status',
        monitors: [
          { monitorname: 'my-test-monitor'   },
          { monitorname: 'my-test-monitor-2' }
        ]
      }
    }
  }
});

options:

`baseUrl`: the service-status root url
`monitors`: either a list of monitor names to hit, or a list of objects with a monitorname property
`warmUps`: the number of times to hit the root url before starting the verify step (default 0)
`warmUpUrl`: optionally specify a different url to use for the warm-up. If not specified it'll use the baseUrl
`waitAfterWarmUp`: number of milliseconds to wait after the warm-ups (default 0)

Package Sidebar

Install

npm i grunt-service-status

Weekly Downloads

11

Version

2.1.1

License

MIT

Last publish

Collaborators

  • acolchado
  • arnoldzokas
  • matteofigus
  • ryantomlinson
  • andyroyle