mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
# Backport This will backport the following commits from `main` to `8.x`: - [[ML] Removing deprecated post data function (#199344)](https://github.com/elastic/kibana/pull/199344) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"James Gowdy","email":"jgowdy@elastic.co"},"sourceCommit":{"committedDate":"2024-11-08T14:28:16Z","message":"[ML] Removing deprecated post data function (#199344)\n\n`POST _ml/anomaly_detectors/<job_id>/_data` is being removed from es, it\r\ncan be removed from kibana too as it is unused.\r\n\r\nhttps://www.elastic.co/guide/en/elasticsearch/reference/8.15/ml-post-data.html","sha":"9f514f641d8e41c8807781eaa407c5a9cbca4f95","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":[":ml","Feature:Anomaly Detection","release_note:skip","v9.0.0","backport:version","v8.17.0"],"title":"[ML] Removing deprecated post data function","number":199344,"url":"https://github.com/elastic/kibana/pull/199344","mergeCommit":{"message":"[ML] Removing deprecated post data function (#199344)\n\n`POST _ml/anomaly_detectors/<job_id>/_data` is being removed from es, it\r\ncan be removed from kibana too as it is unused.\r\n\r\nhttps://www.elastic.co/guide/en/elasticsearch/reference/8.15/ml-post-data.html","sha":"9f514f641d8e41c8807781eaa407c5a9cbca4f95"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/199344","number":199344,"mergeCommit":{"message":"[ML] Removing deprecated post data function (#199344)\n\n`POST _ml/anomaly_detectors/<job_id>/_data` is being removed from es, it\r\ncan be removed from kibana too as it is unused.\r\n\r\nhttps://www.elastic.co/guide/en/elasticsearch/reference/8.15/ml-post-data.html","sha":"9f514f641d8e41c8807781eaa407c5a9cbca4f95"}},{"branch":"8.x","label":"v8.17.0","branchLabelMappingKey":"^v8.17.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: James Gowdy <jgowdy@elastic.co>
This commit is contained in:
parent
60e6c728e5
commit
40559025db
2 changed files with 0 additions and 5 deletions
|
@ -615,10 +615,6 @@ export function getMlClient(
|
|||
p
|
||||
);
|
||||
},
|
||||
async postData(...p: Parameters<MlClient['postData']>) {
|
||||
await jobIdsCheck('anomaly-detector', p);
|
||||
return mlClient.postData(...p);
|
||||
},
|
||||
async previewDatafeed(...p: Parameters<MlClient['previewDatafeed']>) {
|
||||
await datafeedIdsCheck(p);
|
||||
return mlClient.previewDatafeed(...p);
|
||||
|
|
|
@ -101,7 +101,6 @@ export type MlClientParams =
|
|||
| Parameters<MlClient['info']>
|
||||
| Parameters<MlClient['openJob']>
|
||||
| Parameters<MlClient['postCalendarEvents']>
|
||||
| Parameters<MlClient['postData']>
|
||||
| Parameters<MlClient['previewDatafeed']>
|
||||
| Parameters<MlClient['putCalendar']>
|
||||
| Parameters<MlClient['putCalendarJob']>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue