Skip to content
This repository was archived by the owner on Mar 18, 2024. It is now read-only.

Commit 5e2d4c7

Browse files
author
azlam-abdulsalam
committed
fix(report): fix dependency om value
1 parent d7b7036 commit 5e2d4c7

File tree

1 file changed

+1
-2
lines changed
  • packages/sfpowerscripts-cli/src/commands/metrics

1 file changed

+1
-2
lines changed

packages/sfpowerscripts-cli/src/commands/metrics/report.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ export default class Report extends SfpowerscriptsCommand {
3737
}),
3838
value: flags.string({
3939
description: 'value of metric',
40-
required: true,
4140
char: 'v',
4241
}),
4342
tags: flags.string({
@@ -75,7 +74,7 @@ export default class Report extends SfpowerscriptsCommand {
7574
SFPStatsSender.logGauge(this.flags.metric, this.flags.value, this.flags.tags?JSON.parse(this.flags.tags):undefined);
7675
break;
7776
case 'counter':
78-
SFPLogger.log(COLOR_KEY_MESSAGE(`Publishing Count Metric ${this.flags.metric} with value ${this.flags.value}`));
77+
SFPLogger.log(COLOR_KEY_MESSAGE(`Publishing Count Metric ${this.flags.metric}`));
7978
SFPStatsSender.logCount(this.flags.metric, this.flags.tags?JSON.parse(this.flags.tags):undefined);
8079
break;
8180
case 'timer':

0 commit comments

Comments
 (0)