Skip to content

Commit 6fceef7

Browse files
lcawlbenwtrent
andauthored
[DOCS] Augments cat transforms API (#53776)
Co-Authored-By: Benjamin Trent <[email protected]>
1 parent 202b4fb commit 6fceef7

File tree

4 files changed

+274
-45
lines changed

4 files changed

+274
-45
lines changed

docs/reference/cat/transforms.asciidoc

Lines changed: 164 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,180 @@
66

77
Returns configuration and usage information about {transforms}.
88

9-
109
[[cat-transforms-api-request]]
1110
==== {api-request-title}
1211

12+
`GET /_cat/transforms/<transform_id>` +
13+
14+
`GET /_cat/transforms/_all` +
15+
16+
`GET /_cat/transforms/*` +
17+
1318
`GET /_cat/transforms`
1419

20+
[[cat-transforms-api-prereqs]]
21+
==== {api-prereq-title}
22+
23+
* If the {es} {security-features} are enabled, you must have `monitor_transform`
24+
cluster privileges to use this API. The built-in `transform_user` role has these
25+
privileges. For more information, see <<security-privileges>> and
26+
<<built-in-roles>>.
1527

1628
//[[cat-transforms-api-desc]]
1729
//==== {api-description-title}
1830

31+
[[cat-transforms-api-path-params]]
32+
==== {api-path-parms-title}
33+
34+
`<transform_id>`::
35+
(Optional, string)
36+
include::{docdir}/rest-api/common-parms.asciidoc[tag=transform-id-wildcard]
37+
38+
[[cat-transforms-api-query-params]]
39+
==== {api-query-parms-title}
40+
41+
`allow_no_match`::
42+
(Optional, boolean)
43+
include::{docdir}/rest-api/common-parms.asciidoc[tag=allow-no-match-transforms1]
44+
45+
include::{docdir}/rest-api/common-parms.asciidoc[tag=http-format]
46+
47+
`from`::
48+
(Optional, integer)
49+
include::{docdir}/rest-api/common-parms.asciidoc[tag=from-transforms]
50+
51+
include::{docdir}/rest-api/common-parms.asciidoc[tag=cat-h]
52+
+
53+
If you do not specify which columns to include, the API returns the default
54+
columns. If you explicitly specify one or more columns, it returns only the
55+
specified columns.
56+
+
57+
Valid columns are:
58+
59+
`changes_last_detection_time`, `cldt`:::
60+
include::{docdir}/rest-api/common-parms.asciidoc[tag=checkpointing-changes-last-detected-at]
61+
62+
`checkpoint_duration_time_exp_avg`, `cdtea`, `checkpointTimeExpAvg`:::
63+
include::{docdir}/rest-api/common-parms.asciidoc[tag=exponential-avg-checkpoint-duration-ms]
64+
65+
`create_time`, `ct`, `createTime`:::
66+
(Default)
67+
The time the {transform} was created.
68+
69+
`description`, `d`:::
70+
(Default)
71+
The description of the {transform}.
72+
73+
`dest_index`, `di`, `destIndex`:::
74+
(Default)
75+
include::{docdir}/rest-api/common-parms.asciidoc[tag=dest-index]
76+
77+
`document_total`, `dt`:::
78+
include::{docdir}/rest-api/common-parms.asciidoc[tag=docs-processed]
79+
80+
`frequency`, `f`:::
81+
(Default)
82+
include::{docdir}/rest-api/common-parms.asciidoc[tag=frequency]
83+
84+
`id`:::
85+
(Default)
86+
include::{docdir}/rest-api/common-parms.asciidoc[tag=transform-id]
87+
88+
`index_failure`, `if`:::
89+
include::{docdir}/rest-api/common-parms.asciidoc[tag=index-failures]
90+
91+
`index_time`, `itime`:::
92+
include::{docdir}/rest-api/common-parms.asciidoc[tag=index-time-ms]
93+
94+
`index_total`, `it`:::
95+
include::{docdir}/rest-api/common-parms.asciidoc[tag=index-total]
96+
97+
`indexed_documents_exp_avg`, `idea`:::
98+
include::{docdir}/rest-api/common-parms.asciidoc[tag=exponential-avg-documents-indexed]
99+
100+
`invocation_total`, `itotal`:::
101+
include::{docdir}/rest-api/common-parms.asciidoc[tag=trigger-count]
102+
103+
`max_page_search_size`, `mpsz`:::
104+
(Default)
105+
include::{docdir}/rest-api/common-parms.asciidoc[tag=pivot-max-page-search-size]
106+
107+
`page_total`, `pt`:::
108+
include::{docdir}/rest-api/common-parms.asciidoc[tag=pages-processed]
109+
110+
`pipeline`, `p`:::
111+
(Default)
112+
include::{docdir}/rest-api/common-parms.asciidoc[tag=dest-pipeline]
113+
114+
`processed_documents_exp_avg`, `pdea`:::
115+
include::{docdir}/rest-api/common-parms.asciidoc[tag=exponential-avg-documents-processed]
116+
117+
`reason`, `r`:::
118+
include::{docdir}/rest-api/common-parms.asciidoc[tag=state-transform-reason]
119+
120+
`search_failure`, `sf`:::
121+
include::{docdir}/rest-api/common-parms.asciidoc[tag=search-failures]
122+
123+
`search_time`, `stime`:::
124+
include::{docdir}/rest-api/common-parms.asciidoc[tag=search-time-ms]
125+
126+
`search_total`, `st`:::
127+
include::{docdir}/rest-api/common-parms.asciidoc[tag=search-total]
128+
129+
`source_index`, `si`, `sourceIndex`:::
130+
(Default)
131+
include::{docdir}/rest-api/common-parms.asciidoc[tag=source-index-transforms]
132+
133+
`state`, `s`:::
134+
(Default)
135+
include::{docdir}/rest-api/common-parms.asciidoc[tag=state-transform]
136+
137+
`transform_type`, `tt`:::
138+
(Default)
139+
Indicates the type of {transform}: `batch` or `continuous`.
140+
141+
`version`, `v`:::
142+
(Default)
143+
The version of {es} that existed on the node when the {transform} was
144+
created.
145+
146+
include::{docdir}/rest-api/common-parms.asciidoc[tag=help]
147+
148+
include::{docdir}/rest-api/common-parms.asciidoc[tag=cat-s]
149+
150+
`size`::
151+
(Optional, integer)
152+
include::{docdir}/rest-api/common-parms.asciidoc[tag=size-transforms]
153+
154+
include::{docdir}/rest-api/common-parms.asciidoc[tag=time]
19155

20-
//[[cat-transforms-api-query-params]]
21-
//==== {api-query-parms-title}
156+
include::{docdir}/rest-api/common-parms.asciidoc[tag=cat-v]
22157

158+
[[cat-transforms-api-examples]]
159+
==== {api-examples-title}
23160

24-
//[[cat-transforms-api-response-codes]]
25-
//==== {api-response-codes-title}
161+
[source,console]
162+
--------------------------------------------------
163+
GET /_cat/transforms?v&format=json
164+
--------------------------------------------------
165+
// TEST[skip:kibana sample data]
26166

27-
//[[cat-transforms-api-examples]]
28-
//==== {api-examples-title}
167+
[source,console-result]
168+
----
169+
[
170+
{
171+
"id" : "ecommerce_transform",
172+
"create_time" : "2020-03-20T20:31:25.077Z",
173+
"version" : "7.7.0",
174+
"source_index" : "kibana_sample_data_ecommerce",
175+
"dest_index" : "kibana_sample_data_ecommerce_transform",
176+
"pipeline" : null,
177+
"description" : "Maximum priced ecommerce data by customer_id in Asia",
178+
"transform_type" : "continuous",
179+
"frequency" : "5m",
180+
"max_page_search_size" : "500",
181+
"state" : "STARTED"
182+
}
183+
]
184+
----
185+
// TESTRESPONSE[skip:kibana sample data]

docs/reference/redirects.asciidoc

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -385,8 +385,3 @@ coming::[7.x]
385385
=== Data stream APIs
386386

387387
coming::[7.x]
388-
389-
[role="exclude",id="cat-transform"]
390-
=== cat transform API
391-
392-
See <<cat-transforms>>.

docs/reference/rest-api/common-parms.asciidoc

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,10 @@ tag::bytes[]
9999
(Optional, <<byte-units,byte size units>>) Unit used to display byte values.
100100
end::bytes[]
101101

102+
tag::checkpointing-changes-last-detected-at[]
103+
The timestamp when changes were last detected in the source indices.
104+
end::checkpointing-changes-last-detected-at[]
105+
102106
tag::cluster-health-status[]
103107
(string)
104108
Health status of the cluster, based on the state of its primary and replica
@@ -178,6 +182,11 @@ is based on Lucene documents. {es} reclaims the disk space of deleted Lucene
178182
documents when a segment is merged.
179183
end::docs-deleted[]
180184

185+
tag::docs-processed[]
186+
The number of documents that have been processed from the source index of
187+
the {transform}.
188+
end::docs-processed[]
189+
181190
tag::enrich-policy[]
182191
Enrich policy name
183192
used to limit the request.
@@ -207,6 +216,20 @@ Wildcard expressions are not accepted.
207216
--
208217
end::expand-wildcards[]
209218

219+
tag::exponential-avg-checkpoint-duration-ms[]
220+
Exponential moving average of the duration of the checkpoint, in milliseconds.
221+
end::exponential-avg-checkpoint-duration-ms[]
222+
223+
tag::exponential-avg-documents-indexed[]
224+
Exponential moving average of the number of new documents that have been
225+
indexed.
226+
end::exponential-avg-documents-indexed[]
227+
228+
tag::exponential-avg-documents-processed[]
229+
Exponential moving average of the number of documents that have been
230+
processed.
231+
end::exponential-avg-documents-processed[]
232+
210233
tag::field_statistics[]
211234
`field_statistics`::
212235
(Optional, boolean) If `true`, the response includes the document count, sum of document frequencies,
@@ -380,6 +403,18 @@ tag::index[]
380403
used to limit the request.
381404
end::index[]
382405

406+
tag::index-failures[]
407+
The number of indexing failures.
408+
end::index-failures[]
409+
410+
tag::index-time-ms[]
411+
The amount of time spent indexing, in milliseconds.
412+
end::index-time-ms[]
413+
414+
tag::index-total[]
415+
The number of indices created.
416+
end::index-total[]
417+
383418
tag::bulk-index[]
384419
`_index`::
385420
(Optional, string)
@@ -574,6 +609,11 @@ tag::pipeline[]
574609
(Optional, string) ID of the pipeline to use to preprocess incoming documents.
575610
end::pipeline[]
576611

612+
tag::pages-processed[]
613+
The number of search or bulk index operations processed. Documents are
614+
processed in batches instead of individually.
615+
end::pages-processed[]
616+
577617
tag::path-pipeline[]
578618
`<pipeline>`::
579619
(Optional, string) Comma-separated list or wildcard expression of pipeline IDs
@@ -708,13 +748,25 @@ tag::scroll_size[]
708748
Defaults to 100.
709749
end::scroll_size[]
710750

751+
tag::search-failures[]
752+
The number of search failures.
753+
end::search-failures[]
754+
755+
tag::search-time-ms[]
756+
The amount of time spent searching, in milliseconds.
757+
end::search-time-ms[]
758+
711759
tag::search_timeout[]
712760
`timeout`::
713761
(Optional, <<time-units, time units>>)
714762
Explicit timeout for each search request.
715763
Defaults to no timeout.
716764
end::search_timeout[]
717765

766+
tag::search-total[]
767+
The number of search operations on the source index for the {transform}.
768+
end::search-total[]
769+
718770
tag::search_type[]
719771
`search_type`::
720772
(Optional, string) The type of the search operation. Available options:
@@ -804,6 +856,26 @@ A query clause that retrieves a subset of data from the source index. See
804856
<<query-dsl>>.
805857
end::source-query-transforms[]
806858

859+
tag::state-transform[]
860+
The status of the {transform}, which can be one of the following values:
861+
+
862+
--
863+
* `aborting`: The {transform} is aborting.
864+
* `failed`: The {transform} failed. For more information about the failure,
865+
check the reason field.
866+
* `indexing`: The {transform} is actively processing data and creating new
867+
documents.
868+
* `started`: The {transform} is running but not actively indexing data.
869+
* `stopped`: The {transform} is stopped.
870+
* `stopping`: The {transform} is stopping.
871+
--
872+
end::state-transform[]
873+
874+
tag::state-transform-reason[]
875+
If a {transform} has a `failed` state, this property provides details about the
876+
reason for the failure.
877+
end::state-transform-reason[]
878+
807879
tag::stats[]
808880
`stats`::
809881
(Optional, string) Specific `tag` of the request for logging and statistical
@@ -899,6 +971,13 @@ expression. If you do not specify one of these options, the API returns
899971
information for all {transforms}.
900972
end::transform-id-wildcard[]
901973

974+
tag::trigger-count[]
975+
The number of times the {transform} has been triggered by the scheduler. For
976+
example, the scheduler triggers the {transform} indexer to check for updates
977+
or ingest new data at an interval specified in the
978+
<<put-transform-request-body,`frequency` property>>.
979+
end::trigger-count[]
980+
902981
tag::cat-v[]
903982
`v`::
904983
(Optional, boolean) If `true`, the response includes column headings.

0 commit comments

Comments
 (0)