Skip to content

Commit

Permalink
Fix types issues
Browse files Browse the repository at this point in the history
  • Loading branch information
afharo committed Apr 27, 2021
1 parent f2b513b commit 52418ad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export interface KibanaUsageStats {
};
};

[plugin: string]: unknown;
[plugin: string]: Record<string, unknown>;
}

export function handleKibanaStats(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ export const getStatsWithXpack: StatsGetter<TelemetryAggregatedStats> = async fu
})
.reduce((acc, stats) => {
// Concatenate the telemetry reported via monitoring as additional payloads instead of reporting it inside of stack_stats.kibana.plugins.monitoringTelemetry
const monitoringTelemetry = stats.stack_stats.kibana?.plugins?.monitoringTelemetry?.stats;
const monitoringTelemetry = stats.stack_stats.kibana?.plugins?.monitoringTelemetry?.stats as
| TelemetryAggregatedStats[]
| undefined;
if (monitoringTelemetry) {
delete stats.stack_stats.kibana!.plugins.monitoringTelemetry;
}
Expand Down

0 comments on commit 52418ad

Please sign in to comment.