diff --git a/bullmq/src/adapter.js b/bullmq/src/adapter.js new file mode 100644 index 0000000..5fafd1f --- /dev/null +++ b/bullmq/src/adapter.js @@ -0,0 +1,22 @@ +const { defaultConfig } = require('judoscale-node-core') + +class Adapter { + constructor(collectors) { + this.collectors = collectors + this.identifier = 'judoscale-bullmq' + this.adapter_version = defaultConfig.version + this.language_version = process.version + } + + asJson() { + const data = {} + data[this.identifier] = { + adapter_version: this.adapter_version, + language_version: this.language_version, + } + + return data + } +} + +module.exports = Adapter