import { IRouter , ISavedObjectsRepository , MetricsServiceSetup , ServiceStatus , } from 'opensearch-dashboards/server' ; import { Observable } from 'rxjs' ; import { CollectorSet } from '../collector' ; import { registerUiMetricRoute } from './report_metrics' ; import { registerStatsRoute } from './stats' ; export function setupRoutes ( { router , getSavedObjects , ... rest } ) { registerUiMetricRoute ( router , getSavedObjects ) ; registerStatsRoute ( { router , ... rest } ) ; }