mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
[Synthetics] Fix ping heatmap regression when Inspect flag is turned off !! (#208726)
## Summary Fixes https://github.com/elastic/kibana/issues/208304 !! Fix ping heatmap regression when Inspect flag is turned off !! This flag is turned on auto in dev which caused an issue !! To reproduce the step, you can turn off the inspect flag in dev mode by removing `this.isDev `from this condition https://github.com/elastic/kibana/blob/main/x-pack/solutions/observability/plugins/synthetics/server/lib.ts#L93 ### After <img width="1726" alt="image" src="https://github.com/user-attachments/assets/ad786351-37e4-4c18-b68e-695880d836e9" />
This commit is contained in:
parent
4d00374e04
commit
557cac273c
1 changed files with 2 additions and 2 deletions
|
@ -26,7 +26,7 @@ export const syntheticsGetPingHeatmapRoute: SyntheticsRestApiRouteFactory = () =
|
|||
handler: async ({
|
||||
syntheticsEsClient,
|
||||
request,
|
||||
}): Promise<MonitorStatusHeatmapBucket[] | undefined> => {
|
||||
}): Promise<{ result: MonitorStatusHeatmapBucket[] } | undefined> => {
|
||||
const { from, to, interval: intervalInMinutes, monitorId, location } = request.query;
|
||||
|
||||
const result = await queryMonitorHeatmap({
|
||||
|
@ -38,6 +38,6 @@ export const syntheticsGetPingHeatmapRoute: SyntheticsRestApiRouteFactory = () =
|
|||
intervalInMinutes,
|
||||
});
|
||||
|
||||
return result.body.aggregations?.heatmap?.buckets as MonitorStatusHeatmapBucket[];
|
||||
return { result: result.body.aggregations?.heatmap?.buckets as MonitorStatusHeatmapBucket[] };
|
||||
},
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue