[ML] Update job service id schema (#67462)
This commit is contained in:
parent
a5e717c032
commit
dcca06bad2
2 changed files with 3 additions and 5 deletions
|
@ -19,7 +19,7 @@ import { mlCalendarService } from '../../../services/calendar_service';
|
|||
export function loadFullJob(jobId) {
|
||||
return new Promise((resolve, reject) => {
|
||||
ml.jobs
|
||||
.jobs(jobId)
|
||||
.jobs([jobId])
|
||||
.then((jobs) => {
|
||||
if (jobs.length) {
|
||||
resolve(jobs[0]);
|
||||
|
|
|
@ -40,10 +40,8 @@ export const forceStartDatafeedSchema = schema.object({
|
|||
});
|
||||
|
||||
export const jobIdsSchema = schema.object({
|
||||
/** Optional list of job ID(s). */
|
||||
jobIds: schema.maybe(
|
||||
schema.oneOf([schema.string(), schema.arrayOf(schema.maybe(schema.string()))])
|
||||
),
|
||||
/** Optional list of job IDs. */
|
||||
jobIds: schema.maybe(schema.arrayOf(schema.maybe(schema.string()))),
|
||||
});
|
||||
|
||||
export const jobsWithTimerangeSchema = {
|
||||
|
|
Loading…
Reference in a new issue