mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
20 lines
364 B
JavaScript
20 lines
364 B
JavaScript
'use strict';
|
|
|
|
const cliCommandsSchema = require('../cli/commands-schema');
|
|
|
|
class Metrics {
|
|
constructor(serverless, options) {
|
|
this.serverless = serverless;
|
|
this.options = options;
|
|
|
|
this.commands = {
|
|
metrics: {
|
|
...cliCommandsSchema.get('metrics'),
|
|
lifecycleEvents: ['metrics'],
|
|
},
|
|
};
|
|
}
|
|
}
|
|
|
|
module.exports = Metrics;
|