Skip to content

Commit

Permalink
[ML] Fixing old _xpack style es endpoint paths (elastic#73667)
Browse files Browse the repository at this point in the history
* [ML] Fixing old _xpack style es endpoint paths

* test comment

* removing test comment
  • Loading branch information
jgowdyelastic committed Jul 29, 2020
1 parent 0b99e57 commit 866a04b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions x-pack/plugins/ml/server/client/elasticsearch_ml.ts
Original file line number Diff line number Diff line change
Expand Up @@ -828,7 +828,7 @@ export const elasticsearchJsPlugin = (Client: any, config: any, components: any)
ml.categories = ca({
urls: [
{
fmt: '/_xpack/ml/anomaly_detectors/<%=jobId%>/results/categories/<%=categoryId%>',
fmt: '/_ml/anomaly_detectors/<%=jobId%>/results/categories/<%=categoryId%>',
req: {
jobId: {
type: 'string',
Expand All @@ -839,7 +839,7 @@ export const elasticsearchJsPlugin = (Client: any, config: any, components: any)
},
},
{
fmt: '/_xpack/ml/anomaly_detectors/<%=jobId%>/results/categories',
fmt: '/_ml/anomaly_detectors/<%=jobId%>/results/categories',
req: {
jobId: {
type: 'string',
Expand All @@ -853,7 +853,7 @@ export const elasticsearchJsPlugin = (Client: any, config: any, components: any)
ml.modelSnapshots = ca({
urls: [
{
fmt: '/_xpack/ml/anomaly_detectors/<%=jobId%>/model_snapshots/<%=snapshotId%>',
fmt: '/_ml/anomaly_detectors/<%=jobId%>/model_snapshots/<%=snapshotId%>',
req: {
jobId: {
type: 'string',
Expand All @@ -864,7 +864,7 @@ export const elasticsearchJsPlugin = (Client: any, config: any, components: any)
},
},
{
fmt: '/_xpack/ml/anomaly_detectors/<%=jobId%>/model_snapshots',
fmt: '/_ml/anomaly_detectors/<%=jobId%>/model_snapshots',
req: {
jobId: {
type: 'string',
Expand All @@ -878,7 +878,7 @@ export const elasticsearchJsPlugin = (Client: any, config: any, components: any)
ml.updateModelSnapshot = ca({
urls: [
{
fmt: '/_xpack/ml/anomaly_detectors/<%=jobId%>/model_snapshots/<%=snapshotId%>/_update',
fmt: '/_ml/anomaly_detectors/<%=jobId%>/model_snapshots/<%=snapshotId%>/_update',
req: {
jobId: {
type: 'string',
Expand All @@ -896,7 +896,7 @@ export const elasticsearchJsPlugin = (Client: any, config: any, components: any)
ml.deleteModelSnapshot = ca({
urls: [
{
fmt: '/_xpack/ml/anomaly_detectors/<%=jobId%>/model_snapshots/<%=snapshotId%>',
fmt: '/_ml/anomaly_detectors/<%=jobId%>/model_snapshots/<%=snapshotId%>',
req: {
jobId: {
type: 'string',
Expand All @@ -913,7 +913,7 @@ export const elasticsearchJsPlugin = (Client: any, config: any, components: any)
ml.revertModelSnapshot = ca({
urls: [
{
fmt: '/_xpack/ml/anomaly_detectors/<%=jobId%>/model_snapshots/<%=snapshotId%>/_revert',
fmt: '/_ml/anomaly_detectors/<%=jobId%>/model_snapshots/<%=snapshotId%>/_revert',
req: {
jobId: {
type: 'string',
Expand Down

0 comments on commit 866a04b

Please sign in to comment.