diff --git a/x-pack/plugins/transform/server/lib/alerting/transform_health_rule_type/transform_health_service.test.ts b/x-pack/plugins/transform/server/lib/alerting/transform_health_rule_type/transform_health_service.test.ts index cbe68b096e09d..ff502c9fcdc2e 100644 --- a/x-pack/plugins/transform/server/lib/alerting/transform_health_rule_type/transform_health_service.test.ts +++ b/x-pack/plugins/transform/server/lib/alerting/transform_health_rule_type/transform_health_service.test.ts @@ -117,6 +117,7 @@ describe('transformHealthServiceProvider', () => { expect(esClient.transform.getTransformStats).toHaveBeenCalledTimes(1); expect(esClient.transform.getTransformStats).toHaveBeenNthCalledWith(1, { basic: true, + transform_id: '_all', }); const notStarted = result[0]; diff --git a/x-pack/plugins/transform/server/lib/alerting/transform_health_rule_type/transform_health_service.ts b/x-pack/plugins/transform/server/lib/alerting/transform_health_rule_type/transform_health_service.ts index 7ad2fdde6057d..939d4e01a6f1d 100644 --- a/x-pack/plugins/transform/server/lib/alerting/transform_health_rule_type/transform_health_service.ts +++ b/x-pack/plugins/transform/server/lib/alerting/transform_health_rule_type/transform_health_service.ts @@ -122,6 +122,7 @@ export function transformHealthServiceProvider({ await esClient.transform.getTransformStats({ // @ts-expect-error `basic` query option not yet in @elastic/elasticsearch basic: true, + transform_id: '_all', }) ).transforms as TransformStats[] ).filter((t) => transformIds.has(t.id));