Skip to content

Commit

Permalink
Fixing missed name changes
Browse files Browse the repository at this point in the history
  • Loading branch information
simianhacker committed Mar 11, 2020
1 parent 231592e commit 6ffb764
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const createRate = (doc, intervalString, aggRoot) => metric => {
const derivativeFn = bucketTransform.derivative;
const positiveOnlyFn = bucketTransform.positive_only;

const maxMetric = { id: `${metric.id}-max`, type: 'max', field: metric.field };
const maxMetric = { id: `${metric.id}-rate-max`, type: 'max', field: metric.field };
const derivativeMetric = {
id: `${metric.id}-rate-derivative`,
type: 'derivative',
Expand All @@ -39,7 +39,7 @@ export const createRate = (doc, intervalString, aggRoot) => metric => {
const positiveOnlyMetric = {
id: metric.id,
type: 'positive_only',
field: `${metric.id}-derivative`,
field: `${metric.id}-rate-derivative`,
};

const fakeSeriesMetrics = [maxMetric, derivativeMetric, positiveOnlyMetric];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ describe('rate(req, panel, series)', () => {
},
'metric-1-rate-derivative': {
derivative: {
buckets_path: 'metric-1-max',
buckets_path: 'metric-1-rate-max',
gap_policy: 'skip',
unit: '1s',
},
Expand Down

0 comments on commit 6ffb764

Please sign in to comment.