stackdriver-event
Submit annotation
and deploy
events to StackDriver.
This helps annotating graphs so you can corelate movements to events.
Example
var submit = API_KEY; // simple submit; submit; // or detailed submit; submit;
Installation
$ npm install stackdriver-event
API
Event(key)
Create an event submitter instance with your api key
.
#annotation(data|message, fn)
Submit an annotation event with message
or data
with those keys:
- message (required)
- annotated_by
- level
- instance_id
- event_epoch
For more information, see the StackDriver Docs.
#deploy(data|revision_id, fn)
Submit an deploy event with revision_id
or data
with those keys:
- revision_id (required)
- deployed_by
- deployed_to
- repository
For more information, see the StackDriver Docs.
License
MIT