Skip to content

Commit 3886f64

Browse files
github-actions[bot]ezimuelsethmlarson
authored
[8.7] Add 'transform.transform-schedule-now' API
Co-authored-by: Enrico Zimuel <[email protected]> Co-authored-by: Seth Michael Larson <[email protected]>
1 parent d2fdc07 commit 3886f64

File tree

5 files changed

+171
-4
lines changed

5 files changed

+171
-4
lines changed

output/schema/schema.json

Lines changed: 82 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/validation-errors.json

Lines changed: 10 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/typescript/types.ts

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
/*
2+
* Licensed to Elasticsearch B.V. under one or more contributor
3+
* license agreements. See the NOTICE file distributed with
4+
* this work for additional information regarding copyright
5+
* ownership. Elasticsearch B.V. licenses this file to you under
6+
* the Apache License, Version 2.0 (the "License"); you may
7+
* not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
import { RequestBase } from '@_types/Base'
20+
import { Id } from '@_types/common'
21+
import { Duration } from '@_types/Time'
22+
23+
/**
24+
* Schedules now a transform.
25+
*
26+
* If you _schedule_now a transform, it will process the new data instantly,
27+
* without waiting for the configured frequency interval. After _schedule_now API is called,
28+
* the transform will be processed again at now + frequency unless _schedule_now API
29+
* is called again in the meantime.
30+
* @rest_spec_name transform.schedule_now_transform
31+
* @since 8.7.0
32+
* @stability stable
33+
* @cluster_privileges manage_transform
34+
*/
35+
export interface Request extends RequestBase {
36+
path_parts: {
37+
/**
38+
* Identifier for the transform.
39+
*/
40+
transform_id: Id
41+
}
42+
query_parameters: {
43+
/**
44+
* Controls the time to wait for the scheduling to take place
45+
* @server_default 30s
46+
*/
47+
timeout?: Duration
48+
}
49+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/*
2+
* Licensed to Elasticsearch B.V. under one or more contributor
3+
* license agreements. See the NOTICE file distributed with
4+
* this work for additional information regarding copyright
5+
* ownership. Elasticsearch B.V. licenses this file to you under
6+
* the Apache License, Version 2.0 (the "License"); you may
7+
* not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
import { AcknowledgedResponseBase } from '@_types/Base'
20+
21+
export class Response {
22+
body: AcknowledgedResponseBase
23+
}

0 commit comments

Comments
 (0)