godot-opsgenie

0.1.0 • Public • Published

godot-opsgenie

Build Status

opsgenie reactor for godot.

If a service state goes to critical it'll create an alert, if service comes back (state becomes ok) it'll close the alert if it's still open (aka hasn't been solved by somebody).

Options

Usage

var godot = require( "godot" );
godot.createServer({
    type: "udp",
    reactors: [
        godot.reactor()
            .where( "service", "elasticsearch/health/healthcheck" )
            .change( "state" )
            .opsgenie({
                customerKey: "grab it from: https://www.opsgenie.com/customer/settings"
            })
    ]
}).listen( 1337 );

Debugging

Run your godot server with DEBUG=godot:opsgenie:reactor

Tests

npm test

It uses mocha and should and it mocks the opsgenie using nock.

LICENSE

MIT

/godot-opsgenie/

    Package Sidebar

    Install

    npm i godot-opsgenie

    Weekly Downloads

    1

    Version

    0.1.0

    License

    MIT

    Last publish

    Collaborators

    • oroce