Http(s) broadcasting for Good process monitor
Lead Maintainer: Adam Bretz
good-http is a good-reporter implementation to write hapi server events to remote endpoints. It makes a "POST" request with a JSON payload to the supplied endpoint.
creates a new GoodFile object with the following arguments
endpoint- full path to remote server to transmit logs.[options]- optional arguments object[events]- an object of key value paris. Defaults to{ request: '*', log: '*' }.key- one of ("request", "log", "error", or "ops") indicating the hapi event to subscribe tovalue- an array of tags to filter incoming events. An empty array indicates no filtering.
threshold- number of events to hold before transmission. Defaults to20. Set to0to have every event start transmission instantly. It is strongly suggested to have a set threshold to make data transmission more efficient.[wreck]- configuration object to pass intowreck. Defaults to{ timeout: 60000, headers: {} }.content-typeis always "application/json".
good-file implements the good-reporter interface as has no additional public methods.
stop(callback)-GoodHttpwill make a final attempt to transmit anything remaining in it's internal event queue whenstopis called.