Skip to content

Commit

Permalink
- exposes ML types to be referenced in APM
Browse files Browse the repository at this point in the history
- uses existing mlSearch API rather than the mlAnomalySearch API
  • Loading branch information
ogupte committed Jun 10, 2020
1 parent 23f75d0 commit d0f12e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export async function getServiceAnomalies(
},
};

const response = (await ml.mlSystem.mlAnomalySearch(params)) as {
const response = (await ml.mlSystem.mlSearch(params)) as {
aggregations: {
jobs: {
buckets: Array<{
Expand Down
1 change: 1 addition & 0 deletions x-pack/plugins/ml/server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@
import { PluginInitializerContext } from 'kibana/server';
import { MlServerPlugin } from './plugin';
export { MlPluginSetup, MlPluginStart } from './plugin';
export * from './shared';

export const plugin = (ctx: PluginInitializerContext) => new MlServerPlugin(ctx);

0 comments on commit d0f12e6

Please sign in to comment.