1 | module.exports = {
|
2 | formatMetric(name, target, labels) {
|
3 | return {
|
4 | name,
|
5 | timestamp: Date.now(),
|
6 | attributes: {
|
7 | target,
|
8 | labels,
|
9 | }
|
10 | };
|
11 | },
|
12 | formatMetrics(app, metrics) {
|
13 | return {
|
14 | app,
|
15 | path: '/metric',
|
16 | report_time: Date.now(),
|
17 | list: metrics,
|
18 | };
|
19 | }
|
20 | }; |
\ | No newline at end of file |