Skip to content

[6.8] [DOCS] Fixes ML get scheduled events API (#78809)#78847

Merged
lcawl merged 2 commits intoelastic:6.8from
lcawl:68-get-sheduled-events
Oct 18, 2021
Merged

[6.8] [DOCS] Fixes ML get scheduled events API (#78809)#78847
lcawl merged 2 commits intoelastic:6.8from
lcawl:68-get-sheduled-events

Conversation

@lcawl
Copy link
Copy Markdown
Contributor

@lcawl lcawl commented Oct 7, 2021

Backports the following commits to 6.8:

Also removes request body, since in tests on 6.8.19, any request objects such as:

GET _xpack/ml/calendars/planned-outages/events
{
"page":{
"from": 0,
"size": 5
},
"start": "1640390300000",
"end": "1640476900000"
}

Returns errors:

{
"error": {
"root_cause": [
{
"type": "x_content_parse_exception",
"reason": "[2:3] [cluster:admin/xpack/ml/calendars/events/post] unknown field [page], parser not found"
}
],
"type": "x_content_parse_exception",
"reason": "[2:3] [cluster:admin/xpack/ml/calendars/events/post] unknown field [page], parser not found"
},
"status": 400
}

@lcawl lcawl marked this pull request as ready for review October 7, 2021 23:50
@lcawl lcawl merged commit 678e82d into elastic:6.8 Oct 18, 2021
@lcawl lcawl deleted the 68-get-sheduled-events branch October 18, 2021 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants