[8.x] [ML] Updating calendars schema (#194160) (#194181)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[ML] Updating calendars schema
(#194160)](https://github.com/elastic/kibana/pull/194160)

<!--- 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-09-26T15:57:54Z","message":"[ML]
Updating calendars schema (#194160)\n\nUpdating schema to add
`skip_result`, `skip_model_update`
and\r\n`force_time_shift`","sha":"8e29141c344d415087419c605bba7f07caa57cf4","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":[":ml","release_note:skip","v9.0.0","v8.16.0","backport:version"],"title":"[ML]
Updating calendars
schema","number":194160,"url":"https://github.com/elastic/kibana/pull/194160","mergeCommit":{"message":"[ML]
Updating calendars schema (#194160)\n\nUpdating schema to add
`skip_result`, `skip_model_update`
and\r\n`force_time_shift`","sha":"8e29141c344d415087419c605bba7f07caa57cf4"}},"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/194160","number":194160,"mergeCommit":{"message":"[ML]
Updating calendars schema (#194160)\n\nUpdating schema to add
`skip_result`, `skip_model_update`
and\r\n`force_time_shift`","sha":"8e29141c344d415087419c605bba7f07caa57cf4"}},{"branch":"8.x","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: James Gowdy <jgowdy@elastic.co>
This commit is contained in:
Kibana Machine 2024-09-27 05:15:54 +10:00 committed by GitHub
parent 3094a7e8b7
commit d5dd72b392
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -20,6 +20,9 @@ export const calendarSchema = schema.object({
description: schema.maybe(schema.string()),
start_time: schema.oneOf([schema.string(), schema.number()]),
end_time: schema.oneOf([schema.string(), schema.number()]),
skip_result: schema.maybe(schema.boolean()),
skip_model_update: schema.maybe(schema.boolean()),
force_time_shift: schema.maybe(schema.number()),
})
),
});