log changes of states of services on hosts in systems
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
.jshintrc
.travis.yml
README.md
index.js
package.json
spec.js
test.js

README.md

Build Status

damkaChangelog(log, oldSystemState, systemState)

damkaChangelog will log messages corresponding to the transition from oldSystemState to systemState. log is expected to be an object with .info(message) and .error(message) methods.

State objects are objects of any of the following forms:

{ '1.2.3.4': { http: <Error> } }
{ '1.2.3.4': <Error> }
<Error>
null

All possible state forms and their matching log messages are documented in spec.js.