lib/plugins/aws/metrics/awsMetrics.js/AwsMetrics/constructor
class AwsMetrics:  constructor(serverless, options) {
    this.serverless = serverless;
    this.options = options;
    this.provider = this.serverless.getProvider('aws');

    Object.assign(this, validate);

    this.hooks = {
      'metrics:metrics': () =>
        BbPromise.bind(this)
          .then(this.extendedValidate)
          .then(this.getMetrics)
          .then(this.showMetrics),
    };
  }