* Build(deps-dev): bump eslint-plugin-import from 2.20.1 to 2.20.2 Bumps [eslint-plugin-import](https://github.com/benmosher/eslint-plugin-import) from 2.20.1 to 2.20.2. - [Release notes](https://github.com/benmosher/eslint-plugin-import/releases) - [Changelog](https://github.com/benmosher/eslint-plugin-import/blob/master/CHANGELOG.md) - [Commits](https://github.com/benmosher/eslint-plugin-import/compare/v2.20.1...v2.20.2) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> * Fixes * refactor: combine imports * refactor: combine imports * refactor: combine imports * refactor: update import ordering Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com> Co-authored-by: Paul Melnikow <email@paulmelnikow.com> Co-authored-by: Caleb Cartwright <calebcartwright@users.noreply.github.com> Co-authored-by: Caleb Cartwright <caleb.cartwright@outlook.com>
25 lines
575 B
JavaScript
25 lines
575 B
JavaScript
'use strict'
|
|
|
|
const { MetricNames } = require('../../core/base-service/metric-helper')
|
|
const { BaseJsonService } = require('..')
|
|
const { createRoute } = require('./dynamic-helpers')
|
|
const jsonPath = require('./json-path')
|
|
|
|
module.exports = class DynamicJson extends jsonPath(BaseJsonService) {
|
|
static get enabledMetrics() {
|
|
return [MetricNames.SERVICE_RESPONSE_SIZE]
|
|
}
|
|
|
|
static get route() {
|
|
return createRoute('json')
|
|
}
|
|
|
|
async fetch({ schema, url, errorMessages }) {
|
|
return this._requestJson({
|
|
schema,
|
|
url,
|
|
errorMessages,
|
|
})
|
|
}
|
|
}
|