runGatherer()

in src/core.js [419:436]


  runGatherer(source, gathererName, options) {
    options = options || {};

    try {
      let gatherer = this.getGatherer(gathererName);
      let response = gatherer.run(source, options);
      return response;

    } catch (error) {
      return {
        status: Status.ERROR,
        statusText: error.message,
        metadata: {},
        metrics: {},
        errors: [error],
      }
    }
  }