https://github.com/opentable/ot-wpt
Initiates a run on a given webpagetest instance and logs to hipchat, statsd, and logstash.
https://github.com/opentable/ot-wpt
Last synced: 12 months ago
JSON representation
Initiates a run on a given webpagetest instance and logs to hipchat, statsd, and logstash.
- Host: GitHub
- URL: https://github.com/opentable/ot-wpt
- Owner: opentable
- Archived: true
- Created: 2016-04-06T22:35:11.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-07-12T16:00:59.000Z (almost 10 years ago)
- Last Synced: 2025-05-12T19:54:32.574Z (about 1 year ago)
- Language: JavaScript
- Size: 28.3 KB
- Stars: 4
- Watchers: 120
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ot-wpt [](https://travis-ci.org/opentable/ot-wpt)
Initiates a run on a given webpagetest instance and logs to hipchat, statsd, and logstash.
## Installation
```bash
$ npm install ot-wpt --save-dev
```
## Usage
```js
var wpt = require('ot-wpt');
wpt({
testUrl: 'http://google.com',
apiKey: 'API_KEY_HERE',
// These options are passed through to the webpagetest-api module
wpt: {
runs: 1,
location: 'Dulles:Chrome'
},
// Below options are optional
instanceUrl: 'www.webpagetest.org',
hipchat: {
apiKey: 'API_KEY_HERE',
roomId: 12345
},
logstash: {
host: 'localhost',
port: 6379
},
statsd: {
host: 'localhost',
port: 8125,
prefix: 'PREFIX_HERE'
}
}, function(error) {
// Test finished
// error is null if there's no error
});
```