Skip to content

Commit

Permalink
update df analytics param type
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarezmelissa87 committed Dec 20, 2019
1 parent b6ac51d commit 9e871be
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
2 changes: 1 addition & 1 deletion x-pack/legacy/plugins/ml/server/new_platform/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export interface RouteInitialization {
elasticsearchService: ElasticsearchServiceSetup;
route(route: ServerRoute | ServerRoute[]): void;
router: IRouter;
xpackMainPlugin?: MlXpackMainPlugin;
xpackMainPlugin: MlXpackMainPlugin;
savedObjects?: SavedObjectsLegacyService;
spacesPlugin: any;
cloud?: CloudSetup;
Expand Down
11 changes: 2 additions & 9 deletions x-pack/legacy/plugins/ml/server/routes/data_frame_analytics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,16 @@
*/

import { schema } from '@kbn/config-schema';
import { IRouter } from 'src/core/server';
import { analyticsAuditMessagesProvider } from '../models/data_frame_analytics/analytics_audit_messages';
import { licensePreRoutingFactory } from '../new_platform/licence_check_pre_routing_factory';
import { MlXpackMainPlugin } from '../new_platform/plugin';
import { RouteInitialization } from '../new_platform/plugin';
import {
dataAnalyticsJobConfigSchema,
dataAnalyticsEvaluateSchema,
dataAnalyticsExplainSchema,
} from '../new_platform/data_analytics_schema';

export function dataFrameAnalyticsRoutes({
xpackMainPlugin,
router,
}: {
xpackMainPlugin: MlXpackMainPlugin;
router: IRouter;
}) {
export function dataFrameAnalyticsRoutes({ xpackMainPlugin, router }: RouteInitialization) {
router.get(
{
path: '/api/ml/data_frame/analytics',
Expand Down

0 comments on commit 9e871be

Please sign in to comment.