UNPKG

druid-query

Version:
22 lines (16 loc) 348 B
'use strict' var FieldError = require('../../errors').FieldError module.exports = numeric /** * Numeric TopNMetricSpec * * @see http://druid.io/docs/0.6.121/TopNMetricSpec.html * * @param {string} metric */ function numeric(metric) { if (!metric) { throw new FieldError('Metric is not specified') } this.metric = metric + '' }