import { useFetcher } from './use_fetcher' ; export function useDynamicDataViewFetcher ( ) { const { data , status } = useFetcher ( ( callApmApi ) => { return callApmApi ( { endpoint : 'GET /internal/apm/data_view/dynamic' , isCachable : true , } ) ; } , [ ] ) ; return { dataView : data ?. dynamicDataView , status , } ; }