grunt-service-status

hit the service-status endpoint to verify deployment

Usage no npm install needed!

<script type="module">
  import gruntServiceStatus from 'https://cdn.skypack.dev/grunt-service-status';
</script>

README

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)