Commit b9a75cc 1 parent 1c11990 commit b9a75cc Copy full SHA for b9a75cc
File tree 2 files changed +7
-4
lines changed
2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -178,13 +178,16 @@ export abstract class MetricType implements CommonMetricData {
178
178
}
179
179
180
180
/**
181
- * This is a no-op internal metric representation.
181
+ * This is an internal metric representation for labeled metrics .
182
182
*
183
183
* This can be used to instruct the validators to simply report
184
184
* whatever is stored internally, without performing any specific
185
185
* validation.
186
+ *
187
+ * This needs to live here, instead of labeled.ts, in order to avoid
188
+ * a cyclic dependency.
186
189
*/
187
- export class PassthroughMetric extends Metric < JSONValue , JSONValue > {
190
+ export class LabeledMetric extends Metric < JSONValue , JSONValue > {
188
191
constructor ( v : unknown ) {
189
192
super ( v ) ;
190
193
}
Original file line number Diff line number Diff line change 2
2
* License, v. 2.0. If a copy of the MPL was not distributed with this
3
3
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4
4
5
- import { Metric , PassthroughMetric } from "./index" ;
5
+ import { Metric , LabeledMetric } from "./index" ;
6
6
import { JSONValue } from "../utils" ;
7
7
8
8
import { BooleanMetric } from "./types/boolean" ;
@@ -20,7 +20,7 @@ const METRIC_MAP: {
20
20
"boolean" : BooleanMetric ,
21
21
"counter" : CounterMetric ,
22
22
"datetime" : DatetimeMetric ,
23
- "labeled_counter" : PassthroughMetric ,
23
+ "labeled_counter" : LabeledMetric ,
24
24
"string" : StringMetric ,
25
25
"uuid" : UUIDMetric ,
26
26
} ) ;
You can’t perform that action at this time.
0 commit comments