Skip to content

Commit

Permalink
CI plz
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisronline committed Apr 21, 2022
1 parent 9436c33 commit d579fe2
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 @@ describe('NodeLevelMetrics', () => {
it('should report a gauge when provided with an execution time', () => {
const executionTime = 1000;
const metrics = new NodeLevelMetrics(monitoringCollection);
metrics.execution('actionA', executionTime);
metrics.execution('actionA', 'actionType', executionTime);
expect(monitoringCollection.reportCounter).toHaveBeenCalledTimes(1);
expect(monitoringCollection.reportCounter).toHaveBeenCalledWith(
'kibana_alerting_node_action_executions',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ describe('NodeLevelMetrics', () => {
metrics.failure('ruleA', RuleExecutionStatusErrorReasons.Read);
expect(monitoringCollection.reportCounter).toHaveBeenCalledTimes(1);
expect(monitoringCollection.reportCounter).toHaveBeenCalledWith(
`kibana_alerting_node_rule_${RuleExecutionStatusErrorReasons.Read}_failures`,
{ rule_id: 'ruleA' }
`kibana_alerting_node_rule_failures`,
{ rule_id: 'ruleA', failure_reason: RuleExecutionStatusErrorReasons.Read }
);
});
});
Expand Down

0 comments on commit d579fe2

Please sign in to comment.