[ML] Fixing old _xpack style es endpoint paths (#73667)
* [ML] Fixing old _xpack style es endpoint paths * test comment * removing test comment
This commit is contained in:
parent
71badc67de
commit
1b4d4d8a57
|
@ -828,7 +828,7 @@ export const elasticsearchJsPlugin = (Client: any, config: any, components: any)
|
||||||
ml.categories = ca({
|
ml.categories = ca({
|
||||||
urls: [
|
urls: [
|
||||||
{
|
{
|
||||||
fmt: '/_xpack/ml/anomaly_detectors/<%=jobId%>/results/categories/<%=categoryId%>',
|
fmt: '/_ml/anomaly_detectors/<%=jobId%>/results/categories/<%=categoryId%>',
|
||||||
req: {
|
req: {
|
||||||
jobId: {
|
jobId: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
|
@ -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: {
|
req: {
|
||||||
jobId: {
|
jobId: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
|
@ -853,7 +853,7 @@ export const elasticsearchJsPlugin = (Client: any, config: any, components: any)
|
||||||
ml.modelSnapshots = ca({
|
ml.modelSnapshots = ca({
|
||||||
urls: [
|
urls: [
|
||||||
{
|
{
|
||||||
fmt: '/_xpack/ml/anomaly_detectors/<%=jobId%>/model_snapshots/<%=snapshotId%>',
|
fmt: '/_ml/anomaly_detectors/<%=jobId%>/model_snapshots/<%=snapshotId%>',
|
||||||
req: {
|
req: {
|
||||||
jobId: {
|
jobId: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
|
@ -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: {
|
req: {
|
||||||
jobId: {
|
jobId: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
|
@ -878,7 +878,7 @@ export const elasticsearchJsPlugin = (Client: any, config: any, components: any)
|
||||||
ml.updateModelSnapshot = ca({
|
ml.updateModelSnapshot = ca({
|
||||||
urls: [
|
urls: [
|
||||||
{
|
{
|
||||||
fmt: '/_xpack/ml/anomaly_detectors/<%=jobId%>/model_snapshots/<%=snapshotId%>/_update',
|
fmt: '/_ml/anomaly_detectors/<%=jobId%>/model_snapshots/<%=snapshotId%>/_update',
|
||||||
req: {
|
req: {
|
||||||
jobId: {
|
jobId: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
|
@ -896,7 +896,7 @@ export const elasticsearchJsPlugin = (Client: any, config: any, components: any)
|
||||||
ml.deleteModelSnapshot = ca({
|
ml.deleteModelSnapshot = ca({
|
||||||
urls: [
|
urls: [
|
||||||
{
|
{
|
||||||
fmt: '/_xpack/ml/anomaly_detectors/<%=jobId%>/model_snapshots/<%=snapshotId%>',
|
fmt: '/_ml/anomaly_detectors/<%=jobId%>/model_snapshots/<%=snapshotId%>',
|
||||||
req: {
|
req: {
|
||||||
jobId: {
|
jobId: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
|
@ -913,7 +913,7 @@ export const elasticsearchJsPlugin = (Client: any, config: any, components: any)
|
||||||
ml.revertModelSnapshot = ca({
|
ml.revertModelSnapshot = ca({
|
||||||
urls: [
|
urls: [
|
||||||
{
|
{
|
||||||
fmt: '/_xpack/ml/anomaly_detectors/<%=jobId%>/model_snapshots/<%=snapshotId%>/_revert',
|
fmt: '/_ml/anomaly_detectors/<%=jobId%>/model_snapshots/<%=snapshotId%>/_revert',
|
||||||
req: {
|
req: {
|
||||||
jobId: {
|
jobId: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
|
|
Loading…
Reference in a new issue