import { CoreSetup , CoreStart , SavedObjectsClientContract , } from 'kibana/server' ; import { APMPluginStartDependencies } from '../../types' ; import { getInternalSavedObjectsClient } from '../../lib/helpers/get_internal_saved_objects_client' ; export async function getFleetAgents ( { policyIds , core , fleetPluginStart , } ) { const savedObjectsClient = await getInternalSavedObjectsClient ( core . setup ) ; return await fleetPluginStart . agentPolicyService . getByIds ( savedObjectsClient , policyIds ) ; }