Skip to content

Commit

Permalink
[ResponseOps][Alerting] Flaky test x-pack/test/alerting_api_integrati…
Browse files Browse the repository at this point in the history
…on/security_and_spaces/group2/tests/telemetry/index·ts (elastic#161096)

Resolves elastic#140973
Resolves elastic#136153

## Summary

Fixes a telemetry bug and a flaky telemetry test

### Checklist

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios


https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/2717
x 250

https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/2718
x 250
  • Loading branch information
doakalexi authored and Devon Thomson committed Aug 1, 2023
1 parent b966dde commit cca3010
Show file tree
Hide file tree
Showing 4 changed files with 116 additions and 235 deletions.
2 changes: 1 addition & 1 deletion x-pack/plugins/actions/server/usage/actions_telemetry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ export async function getExecutionsPerDayCount(
countFailedByType: Record<string, number>;
avgExecutionTime: number;
avgExecutionTimeByType: Record<string, number>;
countRunOutcomeByConnectorType: Record<string, number>;
countRunOutcomeByConnectorType: Record<string, Record<string, number>>;
}> {
const scriptedMetric = {
scripted_metric: {
Expand Down
2 changes: 1 addition & 1 deletion x-pack/plugins/actions/server/usage/task_state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export const stateSchemaByVersion = {
avg_execution_time_by_type_per_day: schema.recordOf(schema.string(), schema.number()),
count_connector_types_by_action_run_outcome_per_day: schema.recordOf(
schema.string(),
schema.number()
schema.recordOf(schema.string(), schema.number())
),
}),
},
Expand Down
Loading

0 comments on commit cca3010

Please sign in to comment.