2016-11-05 17:02:46 +01:00
|
|
|
'use strict';
|
|
|
|
|
2016-12-01 17:15:55 +01:00
|
|
|
const { EventEmitter } = require('events');
|
|
|
|
|
|
|
|
class FakeMetricsStore extends EventEmitter {
|
2021-01-06 13:25:25 +01:00
|
|
|
constructor() {
|
|
|
|
super();
|
|
|
|
this.setMaxListeners(0);
|
|
|
|
}
|
|
|
|
|
2017-06-28 10:20:22 +02:00
|
|
|
getMetricsLastHour() {
|
2016-12-01 17:15:55 +01:00
|
|
|
return Promise.resolve([]);
|
|
|
|
}
|
2020-04-14 22:29:11 +02:00
|
|
|
|
2017-06-28 10:20:22 +02:00
|
|
|
insert() {
|
2016-12-01 17:15:55 +01:00
|
|
|
return Promise.resolve();
|
2017-06-28 10:20:22 +02:00
|
|
|
}
|
2016-12-01 17:15:55 +01:00
|
|
|
}
|
|
|
|
|
2017-06-28 10:20:22 +02:00
|
|
|
module.exports = FakeMetricsStore;
|