-
Notifications
You must be signed in to change notification settings - Fork 2
/
sample-floodgauge-config.js
27 lines (22 loc) · 1.25 KB
/
sample-floodgauge-config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
'use strict';
// sample-floodgauge-config.js - sample configuration file for cognicity-reports-floodgauge module
/**
* Configuration for cognicity-reports-floodgauge
* @namespace {object} config
* @property {object} floodgauge Configuration object for floodgauge web service interface
* @property {string} floodgauge.serviceURL The URL for the floodgauge web service
* @property {number} floodgauge.pollInterval Poll interval for web service in milliseconds
* @property {number} floodgauge.historicalLoadPeriod Maximum age in milliseconds of reports which will be processed
* @property {object} dims.pg Postgres configuration
* @property {string} dims.pg.table_floodgauge Database table to store floodgauge reports in
*/
var config = {};
// Floodgauge web service API
config.floodgauge = {};
config.floodgauge.serviceURL = "http://example.com/cgi-bin/wlr"; // E.g. https://example.com/cgi-bin/wlr
config.floodgauge.pollInterval = 1000 * 60 * 15; // E.g. 1000 * 60 * 15 = 15 minutes
config.floodgauge.historicalLoadPeriod = 1000 * 60 * 120; // E.g. 1000 * 60 * 120 = 2 hours
// Floodgauge configuration for cognicity-schema
config.floodgauge.pg = {};
config.floodgauge.pg.table_floodgauge = 'floodgauge_reports';
module.exports = config;