From f638a28c0228224cf42a99a3292598dcdabd8028 Mon Sep 17 00:00:00 2001 From: Elastic Machine Date: Mon, 16 Sep 2024 06:04:03 +0000 Subject: [PATCH] Auto-generated API code --- ...01b23f09d2b7f140faf649eadbbf3ac3.asciidoc} | 2 +- .../01cd0ea360282a2c591a366679d7187d.asciidoc | 12 ++ ...05e637284bc3bedd46e0b7c26ad983c4.asciidoc} | 2 +- ...0b4e50f1b5a0537cbb1a41276bb51c54.asciidoc} | 2 +- ...1c330f0fc9eac19d0edeb8c4017b9b93.asciidoc} | 2 +- ...1cbecd19be22979aefb45b4f160e77ea.asciidoc} | 2 +- ...24a037008e0fc2550ecb6a5d36c04a93.asciidoc} | 2 +- ...2968ffb8135f77ba3a9b876dd4918119.asciidoc} | 2 +- ...310bdfb0d0d75bac7bff036a3fe51d4d.asciidoc} | 2 +- ...36ac0ef9ea63efc431580f7ade8ad53c.asciidoc} | 2 +- .../3a489743e49902df38e3368cae00717a.asciidoc | 8 ++ ...3a4953663a5a3809b692c27446e16b7f.asciidoc} | 2 +- ...4a72c68b96f44e80463084dfc0449d51.asciidoc} | 2 +- ...4dc151eebefd484a28aed1a175743364.asciidoc} | 2 +- ...4eeded40f30949e359714a5bb6c88612.asciidoc} | 2 +- .../4f6694ef147a73b1163bde3c13779d26.asciidoc | 11 ++ ...548a9b6f447bb820380c1c23e57c18c3.asciidoc} | 2 +- ...551467688d8c701315d0a371850a4056.asciidoc} | 2 +- ...60d3f9a99cc91b43aaa7524a9a74dba0.asciidoc} | 4 +- ...6b6e275efe3d2aafe0fc3443f2c96868.asciidoc} | 2 +- ...7888c509774a2abfe82ca370c43d8789.asciidoc} | 2 +- .../84237aa9da49ab4b4c4e2b21d2548df2.asciidoc | 11 ++ ...894fce12d8f0d01e4c4083885a0c0077.asciidoc} | 2 +- ...968fb5b92aa65af09544f7c002b0953e.asciidoc} | 2 +- ...9d66cb59711f24e6b4ff85608c9b5a1b.asciidoc} | 4 +- ...a769d696bf12f5e9de4b3250646d250c.asciidoc} | 2 +- ...a95ae76fca7c3e273e4bd10323b3caa6.asciidoc} | 2 +- .../aa814309ad5f1630886ba75255b444f5.asciidoc | 8 ++ ...b09f155602f9b2a6c40fe7c4a5436b7a.asciidoc} | 2 +- ...c8fa8d7e029792d539464fede18ce258.asciidoc} | 6 +- ...d3440ec81dde5f1a01c0206cb35e539c.asciidoc} | 2 +- ...dd7814258121d3c2e576a7f00469d7e3.asciidoc} | 2 +- .../e3fe842951dc873d7d00c8f6a010c53f.asciidoc | 12 ++ ...e9625da419bff6470ffd9927c59ca159.asciidoc} | 2 +- ...ef46c42d473b2acc151a6a41272e0f14.asciidoc} | 2 +- ...efbd4936cca1a752493d8fa2ba6ad1a3.asciidoc} | 2 +- ...f03352bb1129938a89f97e4b650038dd.asciidoc} | 2 +- ...f86337e13526c968848cfe29a52d658f.asciidoc} | 2 +- docs/reference.asciidoc | 24 ++-- src/api/types.ts | 135 +++++++++++++++--- src/api/typesWithBodyKey.ts | 135 +++++++++++++++--- 41 files changed, 349 insertions(+), 79 deletions(-) rename docs/doc_examples/{e944653610f311fa06148d5b0afdf697.asciidoc => 01b23f09d2b7f140faf649eadbbf3ac3.asciidoc} (94%) create mode 100644 docs/doc_examples/01cd0ea360282a2c591a366679d7187d.asciidoc rename docs/doc_examples/{9868ce609f4450702934fcbf4c340bf1.asciidoc => 05e637284bc3bedd46e0b7c26ad983c4.asciidoc} (89%) rename docs/doc_examples/{46025fc47dfbfa410790df0dd6bdad8d.asciidoc => 0b4e50f1b5a0537cbb1a41276bb51c54.asciidoc} (91%) rename docs/doc_examples/{be30ea12f605fd61acba689b68e00bbe.asciidoc => 1c330f0fc9eac19d0edeb8c4017b9b93.asciidoc} (91%) rename docs/doc_examples/{7c63a1d2fbec5283e913ff39fafd0604.asciidoc => 1cbecd19be22979aefb45b4f160e77ea.asciidoc} (90%) rename docs/doc_examples/{da3cecc36a7313385d32c7f52ccfb7e3.asciidoc => 24a037008e0fc2550ecb6a5d36c04a93.asciidoc} (93%) rename docs/doc_examples/{dfcdadcf91529d3a399e05684195028e.asciidoc => 2968ffb8135f77ba3a9b876dd4918119.asciidoc} (87%) rename docs/doc_examples/{5f8d90515995a5eee189d722abe3b111.asciidoc => 310bdfb0d0d75bac7bff036a3fe51d4d.asciidoc} (90%) rename docs/doc_examples/{65e892a362d940e4a74965f21c15ca09.asciidoc => 36ac0ef9ea63efc431580f7ade8ad53c.asciidoc} (88%) create mode 100644 docs/doc_examples/3a489743e49902df38e3368cae00717a.asciidoc rename docs/doc_examples/{60d689aae3f8de1e6830329dfd69a6a6.asciidoc => 3a4953663a5a3809b692c27446e16b7f.asciidoc} (87%) rename docs/doc_examples/{cc28a3dafcd5056f2a3ec07f6fda5091.asciidoc => 4a72c68b96f44e80463084dfc0449d51.asciidoc} (92%) rename docs/doc_examples/{a53ff77d83222c0e76453e630d64787e.asciidoc => 4dc151eebefd484a28aed1a175743364.asciidoc} (92%) rename docs/doc_examples/{c9373ff5ed6b026173428fbb92ca2d9f.asciidoc => 4eeded40f30949e359714a5bb6c88612.asciidoc} (88%) create mode 100644 docs/doc_examples/4f6694ef147a73b1163bde3c13779d26.asciidoc rename docs/doc_examples/{3a7a6ab88a49b484fafb10c8eb09b562.asciidoc => 548a9b6f447bb820380c1c23e57c18c3.asciidoc} (92%) rename docs/doc_examples/{b468d0124dc485385a34504d5b7af82a.asciidoc => 551467688d8c701315d0a371850a4056.asciidoc} (87%) rename docs/doc_examples/{1745ac9e6d22a2ffe7ac381f9ba238f9.asciidoc => 60d3f9a99cc91b43aaa7524a9a74dba0.asciidoc} (66%) rename docs/doc_examples/{a69c7c3412af73758f629e76263063b5.asciidoc => 6b6e275efe3d2aafe0fc3443f2c96868.asciidoc} (86%) rename docs/doc_examples/{84490ee2c6c07dbd2101ce2e3751e1aa.asciidoc => 7888c509774a2abfe82ca370c43d8789.asciidoc} (88%) create mode 100644 docs/doc_examples/84237aa9da49ab4b4c4e2b21d2548df2.asciidoc rename docs/doc_examples/{113ac8466084ee6ac4ed272e342dc468.asciidoc => 894fce12d8f0d01e4c4083885a0c0077.asciidoc} (88%) rename docs/doc_examples/{7e5bee18e61d950e823782da1b733903.asciidoc => 968fb5b92aa65af09544f7c002b0953e.asciidoc} (91%) rename docs/doc_examples/{50ddf374cfa8128538ea092ee98b723d.asciidoc => 9d66cb59711f24e6b4ff85608c9b5a1b.asciidoc} (79%) rename docs/doc_examples/{82eff1d681a5d0d1538ef011bb32ab9a.asciidoc => a769d696bf12f5e9de4b3250646d250c.asciidoc} (85%) rename docs/doc_examples/{0ba5acede9d43af424e85428e7d35420.asciidoc => a95ae76fca7c3e273e4bd10323b3caa6.asciidoc} (91%) create mode 100644 docs/doc_examples/aa814309ad5f1630886ba75255b444f5.asciidoc rename docs/doc_examples/{88ec7fa6768a7e13cd2158667a69e97f.asciidoc => b09f155602f9b2a6c40fe7c4a5436b7a.asciidoc} (90%) rename docs/doc_examples/{804cdf477ec829740e3d045140400c3b.asciidoc => c8fa8d7e029792d539464fede18ce258.asciidoc} (81%) rename docs/doc_examples/{443f0e8fbba83777b2df624879d188d5.asciidoc => d3440ec81dde5f1a01c0206cb35e539c.asciidoc} (87%) rename docs/doc_examples/{0e3abd15dde97a2334621190c4ad4f96.asciidoc => dd7814258121d3c2e576a7f00469d7e3.asciidoc} (92%) create mode 100644 docs/doc_examples/e3fe842951dc873d7d00c8f6a010c53f.asciidoc rename docs/doc_examples/{4655c3dea0c61935b7ecf1e57441df66.asciidoc => e9625da419bff6470ffd9927c59ca159.asciidoc} (82%) rename docs/doc_examples/{4f792d86ff79dcfe4643cd95505f8d5f.asciidoc => ef46c42d473b2acc151a6a41272e0f14.asciidoc} (92%) rename docs/doc_examples/{4fe78a4dfb747fd5dc34145ec6b76183.asciidoc => efbd4936cca1a752493d8fa2ba6ad1a3.asciidoc} (92%) rename docs/doc_examples/{349823d86980d40ac45248c19a59e339.asciidoc => f03352bb1129938a89f97e4b650038dd.asciidoc} (91%) rename docs/doc_examples/{517d291044c3e4448b8804322616ab4a.asciidoc => f86337e13526c968848cfe29a52d658f.asciidoc} (92%) diff --git a/docs/doc_examples/e944653610f311fa06148d5b0afdf697.asciidoc b/docs/doc_examples/01b23f09d2b7f140faf649eadbbf3ac3.asciidoc similarity index 94% rename from docs/doc_examples/e944653610f311fa06148d5b0afdf697.asciidoc rename to docs/doc_examples/01b23f09d2b7f140faf649eadbbf3ac3.asciidoc index 4982ab849..2752b8336 100644 --- a/docs/doc_examples/e944653610f311fa06148d5b0afdf697.asciidoc +++ b/docs/doc_examples/01b23f09d2b7f140faf649eadbbf3ac3.asciidoc @@ -26,7 +26,7 @@ const response1 = await client.cluster.putComponentTemplate({ type: "keyword", script: { source: - "emit(doc['@timestamp'].value.dayOfWeekEnum.getDisplayName(TextStyle.FULL, Locale.ROOT))", + "emit(doc['@timestamp'].value.dayOfWeekEnum.getDisplayName(TextStyle.FULL, Locale.ENGLISH))", }, }, }, diff --git a/docs/doc_examples/01cd0ea360282a2c591a366679d7187d.asciidoc b/docs/doc_examples/01cd0ea360282a2c591a366679d7187d.asciidoc new file mode 100644 index 000000000..71f3092da --- /dev/null +++ b/docs/doc_examples/01cd0ea360282a2c591a366679d7187d.asciidoc @@ -0,0 +1,12 @@ +// This file is autogenerated, DO NOT EDIT +// Use `node scripts/generate-docs-examples.js` to generate the docs examples + +[source, js] +---- +const response = await client.tasks.list({ + human: "true", + detailed: "true", + actions: "indices:data/write/bulk", +}); +console.log(response); +---- diff --git a/docs/doc_examples/9868ce609f4450702934fcbf4c340bf1.asciidoc b/docs/doc_examples/05e637284bc3bedd46e0b7c26ad983c4.asciidoc similarity index 89% rename from docs/doc_examples/9868ce609f4450702934fcbf4c340bf1.asciidoc rename to docs/doc_examples/05e637284bc3bedd46e0b7c26ad983c4.asciidoc index efbc3834d..1b9967b11 100644 --- a/docs/doc_examples/9868ce609f4450702934fcbf4c340bf1.asciidoc +++ b/docs/doc_examples/05e637284bc3bedd46e0b7c26ad983c4.asciidoc @@ -4,7 +4,7 @@ [source, js] ---- const response = await client.ingest.putPipeline({ - id: "alibabacloud_ai_search_embeddings", + id: "alibabacloud_ai_search_embeddings_pipeline", processors: [ { inference: { diff --git a/docs/doc_examples/46025fc47dfbfa410790df0dd6bdad8d.asciidoc b/docs/doc_examples/0b4e50f1b5a0537cbb1a41276bb51c54.asciidoc similarity index 91% rename from docs/doc_examples/46025fc47dfbfa410790df0dd6bdad8d.asciidoc rename to docs/doc_examples/0b4e50f1b5a0537cbb1a41276bb51c54.asciidoc index 40e7af427..6f9ec7de2 100644 --- a/docs/doc_examples/46025fc47dfbfa410790df0dd6bdad8d.asciidoc +++ b/docs/doc_examples/0b4e50f1b5a0537cbb1a41276bb51c54.asciidoc @@ -10,7 +10,7 @@ const response = await client.search({ type: "keyword", script: { source: - "emit(doc['@timestamp'].value.dayOfWeekEnum\n .getDisplayName(TextStyle.FULL, Locale.ROOT))", + "emit(doc['@timestamp'].value.dayOfWeekEnum\n .getDisplayName(TextStyle.FULL, Locale.ENGLISH))", }, }, }, diff --git a/docs/doc_examples/be30ea12f605fd61acba689b68e00bbe.asciidoc b/docs/doc_examples/1c330f0fc9eac19d0edeb8c4017b9b93.asciidoc similarity index 91% rename from docs/doc_examples/be30ea12f605fd61acba689b68e00bbe.asciidoc rename to docs/doc_examples/1c330f0fc9eac19d0edeb8c4017b9b93.asciidoc index b3f5d0d2b..0c57e6552 100644 --- a/docs/doc_examples/be30ea12f605fd61acba689b68e00bbe.asciidoc +++ b/docs/doc_examples/1c330f0fc9eac19d0edeb8c4017b9b93.asciidoc @@ -4,7 +4,7 @@ [source, js] ---- const response = await client.ingest.putPipeline({ - id: "hugging_face_embeddings", + id: "hugging_face_embeddings_pipeline", processors: [ { inference: { diff --git a/docs/doc_examples/7c63a1d2fbec5283e913ff39fafd0604.asciidoc b/docs/doc_examples/1cbecd19be22979aefb45b4f160e77ea.asciidoc similarity index 90% rename from docs/doc_examples/7c63a1d2fbec5283e913ff39fafd0604.asciidoc rename to docs/doc_examples/1cbecd19be22979aefb45b4f160e77ea.asciidoc index d83687e37..91636c2e3 100644 --- a/docs/doc_examples/7c63a1d2fbec5283e913ff39fafd0604.asciidoc +++ b/docs/doc_examples/1cbecd19be22979aefb45b4f160e77ea.asciidoc @@ -4,7 +4,7 @@ [source, js] ---- const response = await client.ingest.putPipeline({ - id: "google_vertex_ai_embeddings", + id: "google_vertex_ai_embeddings_pipeline", processors: [ { inference: { diff --git a/docs/doc_examples/da3cecc36a7313385d32c7f52ccfb7e3.asciidoc b/docs/doc_examples/24a037008e0fc2550ecb6a5d36c04a93.asciidoc similarity index 93% rename from docs/doc_examples/da3cecc36a7313385d32c7f52ccfb7e3.asciidoc rename to docs/doc_examples/24a037008e0fc2550ecb6a5d36c04a93.asciidoc index 4439e3423..6972b07c9 100644 --- a/docs/doc_examples/da3cecc36a7313385d32c7f52ccfb7e3.asciidoc +++ b/docs/doc_examples/24a037008e0fc2550ecb6a5d36c04a93.asciidoc @@ -10,7 +10,7 @@ const response = await client.search({ "date.day_of_week": { type: "keyword", script: - "emit(doc['date'].value.dayOfWeekEnum.getDisplayName(TextStyle.FULL, Locale.ROOT))", + "emit(doc['date'].value.dayOfWeekEnum.getDisplayName(TextStyle.FULL, Locale.ENGLISH))", }, }, aggs: { diff --git a/docs/doc_examples/dfcdadcf91529d3a399e05684195028e.asciidoc b/docs/doc_examples/2968ffb8135f77ba3a9b876dd4918119.asciidoc similarity index 87% rename from docs/doc_examples/dfcdadcf91529d3a399e05684195028e.asciidoc rename to docs/doc_examples/2968ffb8135f77ba3a9b876dd4918119.asciidoc index a9c2986d4..7a6220c32 100644 --- a/docs/doc_examples/dfcdadcf91529d3a399e05684195028e.asciidoc +++ b/docs/doc_examples/2968ffb8135f77ba3a9b876dd4918119.asciidoc @@ -11,7 +11,7 @@ const response = await client.reindex({ }, dest: { index: "azure-ai-studio-embeddings", - pipeline: "azure_ai_studio_embeddings", + pipeline: "azure_ai_studio_embeddings_pipeline", }, }); console.log(response); diff --git a/docs/doc_examples/5f8d90515995a5eee189d722abe3b111.asciidoc b/docs/doc_examples/310bdfb0d0d75bac7bff036a3fe51d4d.asciidoc similarity index 90% rename from docs/doc_examples/5f8d90515995a5eee189d722abe3b111.asciidoc rename to docs/doc_examples/310bdfb0d0d75bac7bff036a3fe51d4d.asciidoc index 028813b2e..34cfe5d2f 100644 --- a/docs/doc_examples/5f8d90515995a5eee189d722abe3b111.asciidoc +++ b/docs/doc_examples/310bdfb0d0d75bac7bff036a3fe51d4d.asciidoc @@ -4,7 +4,7 @@ [source, js] ---- const response = await client.ingest.putPipeline({ - id: "azure_ai_studio_embeddings", + id: "azure_ai_studio_embeddings_pipeline", processors: [ { inference: { diff --git a/docs/doc_examples/65e892a362d940e4a74965f21c15ca09.asciidoc b/docs/doc_examples/36ac0ef9ea63efc431580f7ade8ad53c.asciidoc similarity index 88% rename from docs/doc_examples/65e892a362d940e4a74965f21c15ca09.asciidoc rename to docs/doc_examples/36ac0ef9ea63efc431580f7ade8ad53c.asciidoc index fdab99f78..eead102c5 100644 --- a/docs/doc_examples/65e892a362d940e4a74965f21c15ca09.asciidoc +++ b/docs/doc_examples/36ac0ef9ea63efc431580f7ade8ad53c.asciidoc @@ -11,7 +11,7 @@ const response = await client.reindex({ }, dest: { index: "openai-embeddings", - pipeline: "openai_embeddings", + pipeline: "openai_embeddings_pipeline", }, }); console.log(response); diff --git a/docs/doc_examples/3a489743e49902df38e3368cae00717a.asciidoc b/docs/doc_examples/3a489743e49902df38e3368cae00717a.asciidoc new file mode 100644 index 000000000..5aec6e804 --- /dev/null +++ b/docs/doc_examples/3a489743e49902df38e3368cae00717a.asciidoc @@ -0,0 +1,8 @@ +// This file is autogenerated, DO NOT EDIT +// Use `node scripts/generate-docs-examples.js` to generate the docs examples + +[source, js] +---- +const response = await client.nodes.hotThreads(); +console.log(response); +---- diff --git a/docs/doc_examples/60d689aae3f8de1e6830329dfd69a6a6.asciidoc b/docs/doc_examples/3a4953663a5a3809b692c27446e16b7f.asciidoc similarity index 87% rename from docs/doc_examples/60d689aae3f8de1e6830329dfd69a6a6.asciidoc rename to docs/doc_examples/3a4953663a5a3809b692c27446e16b7f.asciidoc index dabaf1110..1d6946015 100644 --- a/docs/doc_examples/60d689aae3f8de1e6830329dfd69a6a6.asciidoc +++ b/docs/doc_examples/3a4953663a5a3809b692c27446e16b7f.asciidoc @@ -11,7 +11,7 @@ const response = await client.reindex({ }, dest: { index: "amazon-bedrock-embeddings", - pipeline: "amazon_bedrock_embeddings", + pipeline: "amazon_bedrock_embeddings_pipeline", }, }); console.log(response); diff --git a/docs/doc_examples/cc28a3dafcd5056f2a3ec07f6fda5091.asciidoc b/docs/doc_examples/4a72c68b96f44e80463084dfc0449d51.asciidoc similarity index 92% rename from docs/doc_examples/cc28a3dafcd5056f2a3ec07f6fda5091.asciidoc rename to docs/doc_examples/4a72c68b96f44e80463084dfc0449d51.asciidoc index 4f6f802d9..002ca35ca 100644 --- a/docs/doc_examples/cc28a3dafcd5056f2a3ec07f6fda5091.asciidoc +++ b/docs/doc_examples/4a72c68b96f44e80463084dfc0449d51.asciidoc @@ -10,7 +10,7 @@ const response = await client.search({ type: "keyword", script: { source: - "emit(doc['@timestamp'].value.dayOfWeekEnum.getDisplayName(TextStyle.FULL, Locale.ROOT))", + "emit(doc['@timestamp'].value.dayOfWeekEnum.getDisplayName(TextStyle.FULL, Locale.ENGLISH))", }, }, }, diff --git a/docs/doc_examples/a53ff77d83222c0e76453e630d64787e.asciidoc b/docs/doc_examples/4dc151eebefd484a28aed1a175743364.asciidoc similarity index 92% rename from docs/doc_examples/a53ff77d83222c0e76453e630d64787e.asciidoc rename to docs/doc_examples/4dc151eebefd484a28aed1a175743364.asciidoc index 2113b36ee..f7f5c27d2 100644 --- a/docs/doc_examples/a53ff77d83222c0e76453e630d64787e.asciidoc +++ b/docs/doc_examples/4dc151eebefd484a28aed1a175743364.asciidoc @@ -4,7 +4,7 @@ [source, js] ---- const response = await client.ingest.putPipeline({ - id: "openai_embeddings", + id: "openai_embeddings_pipeline", processors: [ { inference: { diff --git a/docs/doc_examples/c9373ff5ed6b026173428fbb92ca2d9f.asciidoc b/docs/doc_examples/4eeded40f30949e359714a5bb6c88612.asciidoc similarity index 88% rename from docs/doc_examples/c9373ff5ed6b026173428fbb92ca2d9f.asciidoc rename to docs/doc_examples/4eeded40f30949e359714a5bb6c88612.asciidoc index 21b881926..435c2eaff 100644 --- a/docs/doc_examples/c9373ff5ed6b026173428fbb92ca2d9f.asciidoc +++ b/docs/doc_examples/4eeded40f30949e359714a5bb6c88612.asciidoc @@ -11,7 +11,7 @@ const response = await client.reindex({ }, dest: { index: "elser-embeddings", - pipeline: "elser_embeddings", + pipeline: "elser_embeddings_pipeline", }, }); console.log(response); diff --git a/docs/doc_examples/4f6694ef147a73b1163bde3c13779d26.asciidoc b/docs/doc_examples/4f6694ef147a73b1163bde3c13779d26.asciidoc new file mode 100644 index 000000000..0793b4e08 --- /dev/null +++ b/docs/doc_examples/4f6694ef147a73b1163bde3c13779d26.asciidoc @@ -0,0 +1,11 @@ +// This file is autogenerated, DO NOT EDIT +// Use `node scripts/generate-docs-examples.js` to generate the docs examples + +[source, js] +---- +const response = await client.nodes.stats({ + human: "true", + filter_path: "nodes.*.indexing_pressure", +}); +console.log(response); +---- diff --git a/docs/doc_examples/3a7a6ab88a49b484fafb10c8eb09b562.asciidoc b/docs/doc_examples/548a9b6f447bb820380c1c23e57c18c3.asciidoc similarity index 92% rename from docs/doc_examples/3a7a6ab88a49b484fafb10c8eb09b562.asciidoc rename to docs/doc_examples/548a9b6f447bb820380c1c23e57c18c3.asciidoc index 1362f5945..376f11be8 100644 --- a/docs/doc_examples/3a7a6ab88a49b484fafb10c8eb09b562.asciidoc +++ b/docs/doc_examples/548a9b6f447bb820380c1c23e57c18c3.asciidoc @@ -4,7 +4,7 @@ [source, js] ---- const response = await client.ingest.putPipeline({ - id: "cohere_embeddings", + id: "cohere_embeddings_pipeline", processors: [ { inference: { diff --git a/docs/doc_examples/b468d0124dc485385a34504d5b7af82a.asciidoc b/docs/doc_examples/551467688d8c701315d0a371850a4056.asciidoc similarity index 87% rename from docs/doc_examples/b468d0124dc485385a34504d5b7af82a.asciidoc rename to docs/doc_examples/551467688d8c701315d0a371850a4056.asciidoc index cafdc3e63..cc9792da6 100644 --- a/docs/doc_examples/b468d0124dc485385a34504d5b7af82a.asciidoc +++ b/docs/doc_examples/551467688d8c701315d0a371850a4056.asciidoc @@ -11,7 +11,7 @@ const response = await client.reindex({ }, dest: { index: "hugging-face-embeddings", - pipeline: "hugging_face_embeddings", + pipeline: "hugging_face_embeddings_pipeline", }, }); console.log(response); diff --git a/docs/doc_examples/1745ac9e6d22a2ffe7ac381f9ba238f9.asciidoc b/docs/doc_examples/60d3f9a99cc91b43aaa7524a9a74dba0.asciidoc similarity index 66% rename from docs/doc_examples/1745ac9e6d22a2ffe7ac381f9ba238f9.asciidoc rename to docs/doc_examples/60d3f9a99cc91b43aaa7524a9a74dba0.asciidoc index 5c00b0b5c..627606897 100644 --- a/docs/doc_examples/1745ac9e6d22a2ffe7ac381f9ba238f9.asciidoc +++ b/docs/doc_examples/60d3f9a99cc91b43aaa7524a9a74dba0.asciidoc @@ -3,8 +3,8 @@ [source, js] ---- -const response = await client.nodes.hotThreads({ - node_id: "my-node,my-other-node", +const response = await client.nodes.stats({ + metric: "breaker", }); console.log(response); ---- diff --git a/docs/doc_examples/a69c7c3412af73758f629e76263063b5.asciidoc b/docs/doc_examples/6b6e275efe3d2aafe0fc3443f2c96868.asciidoc similarity index 86% rename from docs/doc_examples/a69c7c3412af73758f629e76263063b5.asciidoc rename to docs/doc_examples/6b6e275efe3d2aafe0fc3443f2c96868.asciidoc index 2312ca864..ddb9c53f2 100644 --- a/docs/doc_examples/a69c7c3412af73758f629e76263063b5.asciidoc +++ b/docs/doc_examples/6b6e275efe3d2aafe0fc3443f2c96868.asciidoc @@ -11,7 +11,7 @@ const response = await client.reindex({ }, dest: { index: "google-vertex-ai-embeddings", - pipeline: "google_vertex_ai_embeddings", + pipeline: "google_vertex_ai_embeddings_pipeline", }, }); console.log(response); diff --git a/docs/doc_examples/84490ee2c6c07dbd2101ce2e3751e1aa.asciidoc b/docs/doc_examples/7888c509774a2abfe82ca370c43d8789.asciidoc similarity index 88% rename from docs/doc_examples/84490ee2c6c07dbd2101ce2e3751e1aa.asciidoc rename to docs/doc_examples/7888c509774a2abfe82ca370c43d8789.asciidoc index 572e30e93..d4e0c4db6 100644 --- a/docs/doc_examples/84490ee2c6c07dbd2101ce2e3751e1aa.asciidoc +++ b/docs/doc_examples/7888c509774a2abfe82ca370c43d8789.asciidoc @@ -11,7 +11,7 @@ const response = await client.reindex({ }, dest: { index: "cohere-embeddings", - pipeline: "cohere_embeddings", + pipeline: "cohere_embeddings_pipeline", }, }); console.log(response); diff --git a/docs/doc_examples/84237aa9da49ab4b4c4e2b21d2548df2.asciidoc b/docs/doc_examples/84237aa9da49ab4b4c4e2b21d2548df2.asciidoc new file mode 100644 index 000000000..09a235c98 --- /dev/null +++ b/docs/doc_examples/84237aa9da49ab4b4c4e2b21d2548df2.asciidoc @@ -0,0 +1,11 @@ +// This file is autogenerated, DO NOT EDIT +// Use `node scripts/generate-docs-examples.js` to generate the docs examples + +[source, js] +---- +const response = await client.snapshot.create({ + repository: "my_repository", + snapshot: "_verify_integrity", +}); +console.log(response); +---- diff --git a/docs/doc_examples/113ac8466084ee6ac4ed272e342dc468.asciidoc b/docs/doc_examples/894fce12d8f0d01e4c4083885a0c0077.asciidoc similarity index 88% rename from docs/doc_examples/113ac8466084ee6ac4ed272e342dc468.asciidoc rename to docs/doc_examples/894fce12d8f0d01e4c4083885a0c0077.asciidoc index 406ed089e..5a195c6f2 100644 --- a/docs/doc_examples/113ac8466084ee6ac4ed272e342dc468.asciidoc +++ b/docs/doc_examples/894fce12d8f0d01e4c4083885a0c0077.asciidoc @@ -11,7 +11,7 @@ const response = await client.reindex({ }, dest: { index: "mistral-embeddings", - pipeline: "mistral_embeddings", + pipeline: "mistral_embeddings_pipeline", }, }); console.log(response); diff --git a/docs/doc_examples/7e5bee18e61d950e823782da1b733903.asciidoc b/docs/doc_examples/968fb5b92aa65af09544f7c002b0953e.asciidoc similarity index 91% rename from docs/doc_examples/7e5bee18e61d950e823782da1b733903.asciidoc rename to docs/doc_examples/968fb5b92aa65af09544f7c002b0953e.asciidoc index f63ee943b..410d4fc38 100644 --- a/docs/doc_examples/7e5bee18e61d950e823782da1b733903.asciidoc +++ b/docs/doc_examples/968fb5b92aa65af09544f7c002b0953e.asciidoc @@ -7,7 +7,7 @@ const response = await client.search({ index: "semantic-embeddings", query: { semantic: { - field: "semantic_text", + field: "content", query: "How to avoid muscle soreness while running?", }, }, diff --git a/docs/doc_examples/50ddf374cfa8128538ea092ee98b723d.asciidoc b/docs/doc_examples/9d66cb59711f24e6b4ff85608c9b5a1b.asciidoc similarity index 79% rename from docs/doc_examples/50ddf374cfa8128538ea092ee98b723d.asciidoc rename to docs/doc_examples/9d66cb59711f24e6b4ff85608c9b5a1b.asciidoc index ff7c02793..8c361f48c 100644 --- a/docs/doc_examples/50ddf374cfa8128538ea092ee98b723d.asciidoc +++ b/docs/doc_examples/9d66cb59711f24e6b4ff85608c9b5a1b.asciidoc @@ -4,7 +4,9 @@ [source, js] ---- const response = await client.tasks.list({ - filter_path: "nodes.*.tasks", + pretty: "true", + human: "true", + detailed: "true", }); console.log(response); ---- diff --git a/docs/doc_examples/82eff1d681a5d0d1538ef011bb32ab9a.asciidoc b/docs/doc_examples/a769d696bf12f5e9de4b3250646d250c.asciidoc similarity index 85% rename from docs/doc_examples/82eff1d681a5d0d1538ef011bb32ab9a.asciidoc rename to docs/doc_examples/a769d696bf12f5e9de4b3250646d250c.asciidoc index c7b1a1209..6bce3ee50 100644 --- a/docs/doc_examples/82eff1d681a5d0d1538ef011bb32ab9a.asciidoc +++ b/docs/doc_examples/a769d696bf12f5e9de4b3250646d250c.asciidoc @@ -11,7 +11,7 @@ const response = await client.reindex({ }, dest: { index: "alibabacloud-ai-search-embeddings", - pipeline: "alibabacloud_ai_search_embeddings", + pipeline: "alibabacloud_ai_search_embeddings_pipeline", }, }); console.log(response); diff --git a/docs/doc_examples/0ba5acede9d43af424e85428e7d35420.asciidoc b/docs/doc_examples/a95ae76fca7c3e273e4bd10323b3caa6.asciidoc similarity index 91% rename from docs/doc_examples/0ba5acede9d43af424e85428e7d35420.asciidoc rename to docs/doc_examples/a95ae76fca7c3e273e4bd10323b3caa6.asciidoc index a279b534c..fbff6cd91 100644 --- a/docs/doc_examples/0ba5acede9d43af424e85428e7d35420.asciidoc +++ b/docs/doc_examples/a95ae76fca7c3e273e4bd10323b3caa6.asciidoc @@ -4,7 +4,7 @@ [source, js] ---- const response = await client.ingest.putPipeline({ - id: "azure_openai_embeddings", + id: "azure_openai_embeddings_pipeline", processors: [ { inference: { diff --git a/docs/doc_examples/aa814309ad5f1630886ba75255b444f5.asciidoc b/docs/doc_examples/aa814309ad5f1630886ba75255b444f5.asciidoc new file mode 100644 index 000000000..736d58e62 --- /dev/null +++ b/docs/doc_examples/aa814309ad5f1630886ba75255b444f5.asciidoc @@ -0,0 +1,8 @@ +// This file is autogenerated, DO NOT EDIT +// Use `node scripts/generate-docs-examples.js` to generate the docs examples + +[source, js] +---- +const response = await client.cluster.pendingTasks(); +console.log(response); +---- diff --git a/docs/doc_examples/88ec7fa6768a7e13cd2158667a69e97f.asciidoc b/docs/doc_examples/b09f155602f9b2a6c40fe7c4a5436b7a.asciidoc similarity index 90% rename from docs/doc_examples/88ec7fa6768a7e13cd2158667a69e97f.asciidoc rename to docs/doc_examples/b09f155602f9b2a6c40fe7c4a5436b7a.asciidoc index 517644e96..ef0a0529b 100644 --- a/docs/doc_examples/88ec7fa6768a7e13cd2158667a69e97f.asciidoc +++ b/docs/doc_examples/b09f155602f9b2a6c40fe7c4a5436b7a.asciidoc @@ -8,7 +8,7 @@ const response = await client.search({ day_of_week: { type: "keyword", script: - "\n emit(doc['timestamp'].value.dayOfWeekEnum\n .getDisplayName(TextStyle.FULL, Locale.ROOT))\n ", + "\n emit(doc['timestamp'].value.dayOfWeekEnum\n .getDisplayName(TextStyle.FULL, Locale.ENGLISH))\n ", }, }, size: 0, diff --git a/docs/doc_examples/804cdf477ec829740e3d045140400c3b.asciidoc b/docs/doc_examples/c8fa8d7e029792d539464fede18ce258.asciidoc similarity index 81% rename from docs/doc_examples/804cdf477ec829740e3d045140400c3b.asciidoc rename to docs/doc_examples/c8fa8d7e029792d539464fede18ce258.asciidoc index 255b2df23..598fd1f7b 100644 --- a/docs/doc_examples/804cdf477ec829740e3d045140400c3b.asciidoc +++ b/docs/doc_examples/c8fa8d7e029792d539464fede18ce258.asciidoc @@ -7,14 +7,10 @@ const response = await client.indices.create({ index: "semantic-embeddings", mappings: { properties: { - semantic_text: { + content: { type: "semantic_text", inference_id: "my-elser-endpoint", }, - content: { - type: "text", - copy_to: "semantic_text", - }, }, }, }); diff --git a/docs/doc_examples/443f0e8fbba83777b2df624879d188d5.asciidoc b/docs/doc_examples/d3440ec81dde5f1a01c0206cb35e539c.asciidoc similarity index 87% rename from docs/doc_examples/443f0e8fbba83777b2df624879d188d5.asciidoc rename to docs/doc_examples/d3440ec81dde5f1a01c0206cb35e539c.asciidoc index 30dfcbd4f..8a5eced01 100644 --- a/docs/doc_examples/443f0e8fbba83777b2df624879d188d5.asciidoc +++ b/docs/doc_examples/d3440ec81dde5f1a01c0206cb35e539c.asciidoc @@ -11,7 +11,7 @@ const response = await client.reindex({ }, dest: { index: "azure-openai-embeddings", - pipeline: "azure_openai_embeddings", + pipeline: "azure_openai_embeddings_pipeline", }, }); console.log(response); diff --git a/docs/doc_examples/0e3abd15dde97a2334621190c4ad4f96.asciidoc b/docs/doc_examples/dd7814258121d3c2e576a7f00469d7e3.asciidoc similarity index 92% rename from docs/doc_examples/0e3abd15dde97a2334621190c4ad4f96.asciidoc rename to docs/doc_examples/dd7814258121d3c2e576a7f00469d7e3.asciidoc index 17e833805..da4ac42b8 100644 --- a/docs/doc_examples/0e3abd15dde97a2334621190c4ad4f96.asciidoc +++ b/docs/doc_examples/dd7814258121d3c2e576a7f00469d7e3.asciidoc @@ -4,7 +4,7 @@ [source, js] ---- const response = await client.ingest.putPipeline({ - id: "mistral_embeddings", + id: "mistral_embeddings_pipeline", processors: [ { inference: { diff --git a/docs/doc_examples/e3fe842951dc873d7d00c8f6a010c53f.asciidoc b/docs/doc_examples/e3fe842951dc873d7d00c8f6a010c53f.asciidoc new file mode 100644 index 000000000..33c2f68ce --- /dev/null +++ b/docs/doc_examples/e3fe842951dc873d7d00c8f6a010c53f.asciidoc @@ -0,0 +1,12 @@ +// This file is autogenerated, DO NOT EDIT +// Use `node scripts/generate-docs-examples.js` to generate the docs examples + +[source, js] +---- +const response = await client.tasks.list({ + human: "true", + detailed: "true", + actions: "indices:data/write/search", +}); +console.log(response); +---- diff --git a/docs/doc_examples/4655c3dea0c61935b7ecf1e57441df66.asciidoc b/docs/doc_examples/e9625da419bff6470ffd9927c59ca159.asciidoc similarity index 82% rename from docs/doc_examples/4655c3dea0c61935b7ecf1e57441df66.asciidoc rename to docs/doc_examples/e9625da419bff6470ffd9927c59ca159.asciidoc index c9f7520c1..d3ff499f4 100644 --- a/docs/doc_examples/4655c3dea0c61935b7ecf1e57441df66.asciidoc +++ b/docs/doc_examples/e9625da419bff6470ffd9927c59ca159.asciidoc @@ -5,7 +5,7 @@ ---- const response = await client.cat.threadPool({ v: "true", - h: "id,name,active,rejected,completed", + h: "id,name,queue,active,rejected,completed", }); console.log(response); ---- diff --git a/docs/doc_examples/4f792d86ff79dcfe4643cd95505f8d5f.asciidoc b/docs/doc_examples/ef46c42d473b2acc151a6a41272e0f14.asciidoc similarity index 92% rename from docs/doc_examples/4f792d86ff79dcfe4643cd95505f8d5f.asciidoc rename to docs/doc_examples/ef46c42d473b2acc151a6a41272e0f14.asciidoc index 8d47d41ed..5fbb3c8b7 100644 --- a/docs/doc_examples/4f792d86ff79dcfe4643cd95505f8d5f.asciidoc +++ b/docs/doc_examples/ef46c42d473b2acc151a6a41272e0f14.asciidoc @@ -12,7 +12,7 @@ const response = await client.indices.create({ type: "keyword", script: { source: - "emit(doc['@timestamp'].value.dayOfWeekEnum.getDisplayName(TextStyle.FULL, Locale.ROOT))", + "emit(doc['@timestamp'].value.dayOfWeekEnum.getDisplayName(TextStyle.FULL, Locale.ENGLISH))", }, }, }, diff --git a/docs/doc_examples/4fe78a4dfb747fd5dc34145ec6b76183.asciidoc b/docs/doc_examples/efbd4936cca1a752493d8fa2ba6ad1a3.asciidoc similarity index 92% rename from docs/doc_examples/4fe78a4dfb747fd5dc34145ec6b76183.asciidoc rename to docs/doc_examples/efbd4936cca1a752493d8fa2ba6ad1a3.asciidoc index 87df83fca..0dca28ff5 100644 --- a/docs/doc_examples/4fe78a4dfb747fd5dc34145ec6b76183.asciidoc +++ b/docs/doc_examples/efbd4936cca1a752493d8fa2ba6ad1a3.asciidoc @@ -11,7 +11,7 @@ const response = await client.indices.create({ type: "keyword", script: { source: - "emit(doc['@timestamp'].value.dayOfWeekEnum.getDisplayName(TextStyle.FULL, Locale.ROOT))", + "emit(doc['@timestamp'].value.dayOfWeekEnum.getDisplayName(TextStyle.FULL, Locale.ENGLISH))", }, }, }, diff --git a/docs/doc_examples/349823d86980d40ac45248c19a59e339.asciidoc b/docs/doc_examples/f03352bb1129938a89f97e4b650038dd.asciidoc similarity index 91% rename from docs/doc_examples/349823d86980d40ac45248c19a59e339.asciidoc rename to docs/doc_examples/f03352bb1129938a89f97e4b650038dd.asciidoc index 93a193897..f39a62d6f 100644 --- a/docs/doc_examples/349823d86980d40ac45248c19a59e339.asciidoc +++ b/docs/doc_examples/f03352bb1129938a89f97e4b650038dd.asciidoc @@ -4,7 +4,7 @@ [source, js] ---- const response = await client.ingest.putPipeline({ - id: "amazon_bedrock_embeddings", + id: "amazon_bedrock_embeddings_pipeline", processors: [ { inference: { diff --git a/docs/doc_examples/517d291044c3e4448b8804322616ab4a.asciidoc b/docs/doc_examples/f86337e13526c968848cfe29a52d658f.asciidoc similarity index 92% rename from docs/doc_examples/517d291044c3e4448b8804322616ab4a.asciidoc rename to docs/doc_examples/f86337e13526c968848cfe29a52d658f.asciidoc index 67bb14a80..d244f1a1e 100644 --- a/docs/doc_examples/517d291044c3e4448b8804322616ab4a.asciidoc +++ b/docs/doc_examples/f86337e13526c968848cfe29a52d658f.asciidoc @@ -4,7 +4,7 @@ [source, js] ---- const response = await client.ingest.putPipeline({ - id: "elser_embeddings", + id: "elser_embeddings_pipeline", processors: [ { inference: { diff --git a/docs/reference.asciidoc b/docs/reference.asciidoc index 69f32391f..01c260ca6 100644 --- a/docs/reference.asciidoc +++ b/docs/reference.asciidoc @@ -925,7 +925,7 @@ client.search({ ... }) ** *`index` (Optional, string | string[])*: List of data streams, indices, and aliases to search. Supports wildcards (`*`). To search all data streams and indices, omit this parameter or use `*` or `_all`. -** *`aggregations` (Optional, Record)*: Defines the aggregations that are run as part of the search request. +** *`aggregations` (Optional, Record)*: Defines the aggregations that are run as part of the search request. ** *`collapse` (Optional, { field, inner_hits, max_concurrent_group_searches, collapse })*: Collapses search results the values of the specified field. ** *`explain` (Optional, boolean)*: If true, returns detailed information about score computation as part of a hit. ** *`ext` (Optional, Record)*: Configuration of search extensions defined by Elasticsearch plugins. @@ -1082,7 +1082,7 @@ client.searchMvt({ index, field, zoom, x, y }) ** *`zoom` (number)*: Zoom level for the vector tile to search ** *`x` (number)*: X coordinate for the vector tile to search ** *`y` (number)*: Y coordinate for the vector tile to search -** *`aggs` (Optional, Record)*: Sub-aggregations for the geotile_grid. +** *`aggs` (Optional, Record)*: Sub-aggregations for the geotile_grid. Supports the following aggregation types: - avg @@ -1458,7 +1458,7 @@ client.asyncSearch.submit({ ... }) * *Request (object):* ** *`index` (Optional, string | string[])*: A list of index names to search; use `_all` or empty string to perform the operation on all indices -** *`aggregations` (Optional, Record)* +** *`aggregations` (Optional, Record)* ** *`collapse` (Optional, { field, inner_hits, max_concurrent_group_searches, collapse })* ** *`explain` (Optional, boolean)*: If true, returns detailed information about score computation as part of a hit. ** *`ext` (Optional, Record)*: Configuration of search extensions defined by Elasticsearch plugins. @@ -3510,7 +3510,7 @@ client.esql.query({ query }) ** *`filter` (Optional, { bool, boosting, common, combined_fields, constant_score, dis_max, distance_feature, exists, function_score, fuzzy, geo_bounding_box, geo_distance, geo_polygon, geo_shape, has_child, has_parent, ids, intervals, knn, match, match_all, match_bool_prefix, match_none, match_phrase, match_phrase_prefix, more_like_this, multi_match, nested, parent_id, percolate, pinned, prefix, query_string, range, rank_feature, regexp, rule, script, script_score, semantic, shape, simple_query_string, span_containing, span_field_masking, span_first, span_multi, span_near, span_not, span_or, span_term, span_within, sparse_vector, term, terms, terms_set, text_expansion, weighted_tokens, wildcard, wrapper, type })*: Specify a Query DSL query in the filter parameter to filter the set of documents that an ES|QL query runs on. ** *`locale` (Optional, string)* ** *`params` (Optional, number | number | string | boolean | null[])*: To avoid any attempts of hacking or code injection, extract the values in a separate list of parameters. Use question mark placeholders (?) in the query string for each of the parameters. -** *`format` (Optional, string)*: A short version of the Accept header, e.g. json, yaml. +** *`format` (Optional, Enum("csv" | "json" | "tsv" | "txt" | "yaml" | "cbor" | "smile" | "arrow"))*: A short version of the Accept header, e.g. json, yaml. ** *`delimiter` (Optional, string)*: The character to use between values within a CSV row. Only valid for the CSV format. [discrete] @@ -3611,7 +3611,7 @@ client.fleet.search({ index }) * *Request (object):* ** *`index` (string | string)*: A single target to search. If the target is an index alias, it must resolve to a single index. -** *`aggregations` (Optional, Record)* +** *`aggregations` (Optional, Record)* ** *`collapse` (Optional, { field, inner_hits, max_concurrent_group_searches, collapse })* ** *`explain` (Optional, boolean)*: If true, returns detailed information about score computation as part of a hit. ** *`ext` (Optional, Record)*: Configuration of search extensions defined by Elasticsearch plugins. @@ -5172,6 +5172,10 @@ Resources on remote clusters can be specified using the ``:`` syn If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. Supports a list of values, such as `open,hidden`. Valid values are: `all`, `open`, `closed`, `hidden`, `none`. +** *`ignore_unavailable` (Optional, boolean)*: If `false`, the request returns an error if it targets a missing or closed index. +** *`allow_no_indices` (Optional, boolean)*: If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices. +This behavior applies even if the request targets other open indices. +For example, a request targeting `foo*,bar*` returns an error if an index starts with `foo` but no index starts with `bar`. [discrete] ==== rollover @@ -5712,8 +5716,8 @@ client.ingest.putPipeline({ id }) ** *`id` (string)*: ID of the ingest pipeline to create or update. ** *`_meta` (Optional, Record)*: Optional metadata about the ingest pipeline. May have any contents. This map is not automatically generated by Elasticsearch. ** *`description` (Optional, string)*: Description of the ingest pipeline. -** *`on_failure` (Optional, { append, attachment, bytes, circle, convert, csv, date, date_index_name, dissect, dot_expander, drop, enrich, fail, foreach, geoip, grok, gsub, html_strip, inference, join, json, kv, lowercase, pipeline, remove, rename, reroute, script, set, set_security_user, sort, split, trim, uppercase, urldecode, uri_parts, user_agent }[])*: Processors to run immediately after a processor failure. Each processor supports a processor-level `on_failure` value. If a processor without an `on_failure` value fails, Elasticsearch uses this pipeline-level parameter as a fallback. The processors in this parameter run sequentially in the order specified. Elasticsearch will not attempt to run the pipeline's remaining processors. -** *`processors` (Optional, { append, attachment, bytes, circle, convert, csv, date, date_index_name, dissect, dot_expander, drop, enrich, fail, foreach, geoip, grok, gsub, html_strip, inference, join, json, kv, lowercase, pipeline, remove, rename, reroute, script, set, set_security_user, sort, split, trim, uppercase, urldecode, uri_parts, user_agent }[])*: Processors used to perform transformations on documents before indexing. Processors run sequentially in the order specified. +** *`on_failure` (Optional, { append, attachment, bytes, circle, convert, csv, date, date_index_name, dissect, dot_expander, drop, enrich, fail, foreach, geo_grid, geoip, grok, gsub, html_strip, inference, join, json, kv, lowercase, pipeline, redact, remove, rename, reroute, script, set, set_security_user, sort, split, trim, uppercase, urldecode, uri_parts, user_agent }[])*: Processors to run immediately after a processor failure. Each processor supports a processor-level `on_failure` value. If a processor without an `on_failure` value fails, Elasticsearch uses this pipeline-level parameter as a fallback. The processors in this parameter run sequentially in the order specified. Elasticsearch will not attempt to run the pipeline's remaining processors. +** *`processors` (Optional, { append, attachment, bytes, circle, convert, csv, date, date_index_name, dissect, dot_expander, drop, enrich, fail, foreach, geo_grid, geoip, grok, gsub, html_strip, inference, join, json, kv, lowercase, pipeline, redact, remove, rename, reroute, script, set, set_security_user, sort, split, trim, uppercase, urldecode, uri_parts, user_agent }[])*: Processors used to perform transformations on documents before indexing. Processors run sequentially in the order specified. ** *`version` (Optional, number)*: Version number used by external systems to track ingest pipelines. This parameter is intended for external systems only. Elasticsearch does not use or validate pipeline version numbers. ** *`master_timeout` (Optional, string | -1 | 0)*: Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. ** *`timeout` (Optional, string | -1 | 0)*: Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. @@ -7257,7 +7261,7 @@ client.ml.putDatafeed({ datafeed_id }) ** *`datafeed_id` (string)*: A numerical character string that uniquely identifies the datafeed. This identifier can contain lowercase alphanumeric characters (a-z and 0-9), hyphens, and underscores. It must start and end with alphanumeric characters. -** *`aggregations` (Optional, Record)*: If set, the datafeed performs aggregation searches. +** *`aggregations` (Optional, Record)*: If set, the datafeed performs aggregation searches. Support for aggregations is limited and should be used only with low cardinality data. ** *`chunking_config` (Optional, { mode, time_span })*: Datafeeds might be required to search over long time periods, for several months or years. This search is split into time chunks in order to ensure the load on Elasticsearch is managed. @@ -7788,7 +7792,7 @@ client.ml.updateDatafeed({ datafeed_id }) ** *`datafeed_id` (string)*: A numerical character string that uniquely identifies the datafeed. This identifier can contain lowercase alphanumeric characters (a-z and 0-9), hyphens, and underscores. It must start and end with alphanumeric characters. -** *`aggregations` (Optional, Record)*: If set, the datafeed performs aggregation searches. Support for aggregations is limited and should be used only +** *`aggregations` (Optional, Record)*: If set, the datafeed performs aggregation searches. Support for aggregations is limited and should be used only with low cardinality data. ** *`chunking_config` (Optional, { mode, time_span })*: Datafeeds might search over long time periods, for several months or years. This search is split into time chunks in order to ensure the load on Elasticsearch is managed. Chunking configuration controls how the size of @@ -8421,7 +8425,7 @@ client.rollup.rollupSearch({ index }) * *Request (object):* ** *`index` (string | string[])*: Enables searching rolled-up data using the standard Query DSL. -** *`aggregations` (Optional, Record)*: Specifies aggregations. +** *`aggregations` (Optional, Record)*: Specifies aggregations. ** *`query` (Optional, { bool, boosting, common, combined_fields, constant_score, dis_max, distance_feature, exists, function_score, fuzzy, geo_bounding_box, geo_distance, geo_polygon, geo_shape, has_child, has_parent, ids, intervals, knn, match, match_all, match_bool_prefix, match_none, match_phrase, match_phrase_prefix, more_like_this, multi_match, nested, parent_id, percolate, pinned, prefix, query_string, range, rank_feature, regexp, rule, script, script_score, semantic, shape, simple_query_string, span_containing, span_field_masking, span_first, span_multi, span_near, span_not, span_or, span_term, span_within, sparse_vector, term, terms, terms_set, text_expansion, weighted_tokens, wildcard, wrapper, type })*: Specifies a DSL query. ** *`size` (Optional, number)*: Must be zero if set, as rollups work on pre-aggregated data. ** *`rest_total_hits_as_int` (Optional, boolean)*: Indicates whether hits.total should be rendered as an integer or an object in the rest search response diff --git a/src/api/types.ts b/src/api/types.ts index 09a66d2b6..4007052a9 100644 --- a/src/api/types.ts +++ b/src/api/types.ts @@ -1734,11 +1734,23 @@ export interface SearchShardsRequest extends RequestBase { } export interface SearchShardsResponse { - nodes: Record + nodes: Record shards: NodeShard[][] indices: Record } +export interface SearchShardsSearchShardsNodeAttributes { + name: NodeName + ephemeral_id: Id + transport_address: TransportAddress + external_id: string + attributes: Record + roles: NodeRoles + version: VersionString + min_index_version: integer + max_index_version: integer +} + export interface SearchShardsShardStoreIndex { aliases?: Name[] filter?: QueryDslQueryContainer @@ -2226,6 +2238,8 @@ export interface GetStats { total: long } +export type GrokPattern = string + export type HealthStatus = 'green' | 'GREEN' | 'yellow' | 'YELLOW' | 'red' | 'RED' export type Host = string @@ -2380,8 +2394,6 @@ export interface NodeAttributes { id?: NodeId name: NodeName transport_address: TransportAddress - roles?: NodeRoles - external_id?: string } export type NodeId = string @@ -2831,7 +2843,7 @@ export interface AggregationsAdjacencyMatrixBucketKeys extends AggregationsMulti export type AggregationsAdjacencyMatrixBucket = AggregationsAdjacencyMatrixBucketKeys & { [property: string]: AggregationsAggregate | string | long } -export type AggregationsAggregate = AggregationsCardinalityAggregate | AggregationsHdrPercentilesAggregate | AggregationsHdrPercentileRanksAggregate | AggregationsTDigestPercentilesAggregate | AggregationsTDigestPercentileRanksAggregate | AggregationsPercentilesBucketAggregate | AggregationsMedianAbsoluteDeviationAggregate | AggregationsMinAggregate | AggregationsMaxAggregate | AggregationsSumAggregate | AggregationsAvgAggregate | AggregationsWeightedAvgAggregate | AggregationsValueCountAggregate | AggregationsSimpleValueAggregate | AggregationsDerivativeAggregate | AggregationsBucketMetricValueAggregate | AggregationsStatsAggregate | AggregationsStatsBucketAggregate | AggregationsExtendedStatsAggregate | AggregationsExtendedStatsBucketAggregate | AggregationsGeoBoundsAggregate | AggregationsGeoCentroidAggregate | AggregationsHistogramAggregate | AggregationsDateHistogramAggregate | AggregationsAutoDateHistogramAggregate | AggregationsVariableWidthHistogramAggregate | AggregationsStringTermsAggregate | AggregationsLongTermsAggregate | AggregationsDoubleTermsAggregate | AggregationsUnmappedTermsAggregate | AggregationsLongRareTermsAggregate | AggregationsStringRareTermsAggregate | AggregationsUnmappedRareTermsAggregate | AggregationsMultiTermsAggregate | AggregationsMissingAggregate | AggregationsNestedAggregate | AggregationsReverseNestedAggregate | AggregationsGlobalAggregate | AggregationsFilterAggregate | AggregationsChildrenAggregate | AggregationsParentAggregate | AggregationsSamplerAggregate | AggregationsUnmappedSamplerAggregate | AggregationsGeoHashGridAggregate | AggregationsGeoTileGridAggregate | AggregationsGeoHexGridAggregate | AggregationsRangeAggregate | AggregationsDateRangeAggregate | AggregationsGeoDistanceAggregate | AggregationsIpRangeAggregate | AggregationsIpPrefixAggregate | AggregationsFiltersAggregate | AggregationsAdjacencyMatrixAggregate | AggregationsSignificantLongTermsAggregate | AggregationsSignificantStringTermsAggregate | AggregationsUnmappedSignificantTermsAggregate | AggregationsCompositeAggregate | AggregationsFrequentItemSetsAggregate | AggregationsScriptedMetricAggregate | AggregationsTopHitsAggregate | AggregationsInferenceAggregate | AggregationsStringStatsAggregate | AggregationsBoxPlotAggregate | AggregationsTopMetricsAggregate | AggregationsTTestAggregate | AggregationsRateAggregate | AggregationsCumulativeCardinalityAggregate | AggregationsMatrixStatsAggregate | AggregationsGeoLineAggregate +export type AggregationsAggregate = AggregationsCardinalityAggregate | AggregationsHdrPercentilesAggregate | AggregationsHdrPercentileRanksAggregate | AggregationsTDigestPercentilesAggregate | AggregationsTDigestPercentileRanksAggregate | AggregationsPercentilesBucketAggregate | AggregationsMedianAbsoluteDeviationAggregate | AggregationsMinAggregate | AggregationsMaxAggregate | AggregationsSumAggregate | AggregationsAvgAggregate | AggregationsWeightedAvgAggregate | AggregationsValueCountAggregate | AggregationsSimpleValueAggregate | AggregationsDerivativeAggregate | AggregationsBucketMetricValueAggregate | AggregationsStatsAggregate | AggregationsStatsBucketAggregate | AggregationsExtendedStatsAggregate | AggregationsExtendedStatsBucketAggregate | AggregationsGeoBoundsAggregate | AggregationsGeoCentroidAggregate | AggregationsHistogramAggregate | AggregationsDateHistogramAggregate | AggregationsAutoDateHistogramAggregate | AggregationsVariableWidthHistogramAggregate | AggregationsStringTermsAggregate | AggregationsLongTermsAggregate | AggregationsDoubleTermsAggregate | AggregationsUnmappedTermsAggregate | AggregationsLongRareTermsAggregate | AggregationsStringRareTermsAggregate | AggregationsUnmappedRareTermsAggregate | AggregationsMultiTermsAggregate | AggregationsMissingAggregate | AggregationsNestedAggregate | AggregationsReverseNestedAggregate | AggregationsGlobalAggregate | AggregationsFilterAggregate | AggregationsChildrenAggregate | AggregationsParentAggregate | AggregationsSamplerAggregate | AggregationsUnmappedSamplerAggregate | AggregationsGeoHashGridAggregate | AggregationsGeoTileGridAggregate | AggregationsGeoHexGridAggregate | AggregationsRangeAggregate | AggregationsDateRangeAggregate | AggregationsGeoDistanceAggregate | AggregationsIpRangeAggregate | AggregationsIpPrefixAggregate | AggregationsFiltersAggregate | AggregationsAdjacencyMatrixAggregate | AggregationsSignificantLongTermsAggregate | AggregationsSignificantStringTermsAggregate | AggregationsUnmappedSignificantTermsAggregate | AggregationsCompositeAggregate | AggregationsFrequentItemSetsAggregate | AggregationsTimeSeriesAggregate | AggregationsScriptedMetricAggregate | AggregationsTopHitsAggregate | AggregationsInferenceAggregate | AggregationsStringStatsAggregate | AggregationsBoxPlotAggregate | AggregationsTopMetricsAggregate | AggregationsTTestAggregate | AggregationsRateAggregate | AggregationsCumulativeCardinalityAggregate | AggregationsMatrixStatsAggregate | AggregationsGeoLineAggregate export interface AggregationsAggregateBase { meta?: Metadata @@ -2916,6 +2928,7 @@ export interface AggregationsAggregationContainer { sum?: AggregationsSumAggregation sum_bucket?: AggregationsSumBucketAggregation terms?: AggregationsTermsAggregation + time_series?: AggregationsTimeSeriesAggregation top_hits?: AggregationsTopHitsAggregation t_test?: AggregationsTTestAggregation top_metrics?: AggregationsTopMetricsAggregation @@ -4112,6 +4125,20 @@ export interface AggregationsTestPopulation { filter?: QueryDslQueryContainer } +export interface AggregationsTimeSeriesAggregate extends AggregationsMultiBucketAggregateBase { +} + +export interface AggregationsTimeSeriesAggregation extends AggregationsBucketAggregationBase { + size?: integer + keyed?: boolean +} + +export interface AggregationsTimeSeriesBucketKeys extends AggregationsMultiBucketBase { + key: Record +} +export type AggregationsTimeSeriesBucket = AggregationsTimeSeriesBucketKeys +& { [property: string]: AggregationsAggregate | Record | long } + export interface AggregationsTopHitsAggregate extends AggregationsAggregateBase { hits: SearchHitsMetadata } @@ -6615,6 +6642,7 @@ export interface CatIndicesIndicesRecord { ss?: string | null storeSize?: string | null 'pri.store.size'?: string | null + 'dataset.size'?: string | null 'completion.size'?: string cs?: string completionSize?: string @@ -7732,6 +7760,7 @@ export interface CatShardsShardsRecord { dc?: string | null store?: string | null sto?: string | null + dataset?: string | null ip?: string | null id?: string node?: string | null @@ -9653,7 +9682,9 @@ export interface EnrichStatsCacheStats { node_id: Id count: integer hits: integer + hits_time_in_millis: DurationValue misses: integer + misses_time_in_millis: DurationValue evictions: integer } @@ -9759,8 +9790,10 @@ export type EqlSearchResponse = EqlEqlSearchResponseBase - patterns: string[] + patterns: GrokPattern[] trace_match?: boolean } @@ -12344,6 +12395,7 @@ export interface IngestProcessorContainer { enrich?: IngestEnrichProcessor fail?: IngestFailProcessor foreach?: IngestForeachProcessor + geo_grid?: IngestGeoGridProcessor geoip?: IngestGeoIpProcessor grok?: IngestGrokProcessor gsub?: IngestGsubProcessor @@ -12354,6 +12406,7 @@ export interface IngestProcessorContainer { kv?: IngestKeyValueProcessor lowercase?: IngestLowercaseProcessor pipeline?: IngestPipelineProcessor + redact?: IngestRedactProcessor remove?: IngestRemoveProcessor rename?: IngestRenameProcessor reroute?: IngestRerouteProcessor @@ -12369,6 +12422,16 @@ export interface IngestProcessorContainer { user_agent?: IngestUserAgentProcessor } +export interface IngestRedactProcessor extends IngestProcessorBase { + field: Field + patterns: GrokPattern[] + pattern_definitions?: Record + prefix?: string + suffix?: string + ignore_missing?: boolean + skip_if_unlicensed?: boolean +} + export interface IngestRemoveProcessor extends IngestProcessorBase { field: Fields keep?: Fields @@ -12948,7 +13011,7 @@ export type MlCategorizationStatus = 'ok' | 'warn' export interface MlCategory { category_id: ulong examples: string[] - grok_pattern?: string + grok_pattern?: GrokPattern job_id: Id max_matching_length: ulong partition_field_name?: string @@ -15431,6 +15494,25 @@ export interface NodesHttp { current_open?: integer total_opened?: long clients?: NodesClient[] + routes: Record +} + +export interface NodesHttpRoute { + requests: NodesHttpRouteRequests + responses: NodesHttpRouteResponses +} + +export interface NodesHttpRouteRequests { + count: long + total_size_in_bytes: long + size_histogram: NodesSizeHttpHistogram[] +} + +export interface NodesHttpRouteResponses { + count: long + total_size_in_bytes: long + handling_time_histogram: NodesTimeHttpHistogram[] + size_histogram: NodesSizeHttpHistogram[] } export interface NodesIndexingPressure { @@ -15445,16 +15527,25 @@ export interface NodesIndexingPressureMemory { } export interface NodesIngest { - pipelines?: Record + pipelines?: Record total?: NodesIngestTotal } +export interface NodesIngestStats { + count: long + current: long + failed: long + processors: Record[] + time_in_millis: DurationValue + ingested_as_first_pipeline_in_bytes: long + produced_as_first_pipeline_in_bytes: long +} + export interface NodesIngestTotal { - count?: long - current?: long - failed?: long - processors?: Record[] - time_in_millis?: DurationValue + count: long + current: long + failed: long + time_in_millis: DurationValue } export interface NodesIoStatDevice { @@ -15659,6 +15750,12 @@ export interface NodesSerializedClusterStateDetail { compressed_size_in_bytes?: long } +export interface NodesSizeHttpHistogram { + count: long + ge_bytes?: long + lt_bytes?: long +} + export interface NodesStats { adaptive_selection?: Record breakers?: Record @@ -15693,6 +15790,12 @@ export interface NodesThreadCount { threads?: long } +export interface NodesTimeHttpHistogram { + count: long + ge_millis?: long + lt_millis?: long +} + export interface NodesTransport { inbound_handling_time_histogram?: NodesTransportHistogram[] outbound_handling_time_histogram?: NodesTransportHistogram[] @@ -18449,7 +18552,7 @@ export interface TextStructureFindStructureRequest { ecs_compatibility?: string explain?: boolean format?: string - grok_pattern?: string + grok_pattern?: GrokPattern has_header_row?: boolean line_merge_size_limit?: uint lines_to_sample?: uint @@ -18476,7 +18579,7 @@ export interface TextStructureFindStructureResponse { num_lines_analyzed: integer column_names?: string[] explanation?: string[] - grok_pattern?: string + grok_pattern?: GrokPattern multiline_start_pattern?: string exclude_lines_pattern?: string java_timestamp_formats?: string[] @@ -18504,7 +18607,7 @@ export interface TextStructureTestGrokPatternMatchedText { export interface TextStructureTestGrokPatternRequest extends RequestBase { ecs_compatibility?: string - grok_pattern: string + grok_pattern: GrokPattern text: string[] } diff --git a/src/api/typesWithBodyKey.ts b/src/api/typesWithBodyKey.ts index 271a1fa29..0dc180f99 100644 --- a/src/api/typesWithBodyKey.ts +++ b/src/api/typesWithBodyKey.ts @@ -1792,11 +1792,23 @@ export interface SearchShardsRequest extends RequestBase { } export interface SearchShardsResponse { - nodes: Record + nodes: Record shards: NodeShard[][] indices: Record } +export interface SearchShardsSearchShardsNodeAttributes { + name: NodeName + ephemeral_id: Id + transport_address: TransportAddress + external_id: string + attributes: Record + roles: NodeRoles + version: VersionString + min_index_version: integer + max_index_version: integer +} + export interface SearchShardsShardStoreIndex { aliases?: Name[] filter?: QueryDslQueryContainer @@ -2299,6 +2311,8 @@ export interface GetStats { total: long } +export type GrokPattern = string + export type HealthStatus = 'green' | 'GREEN' | 'yellow' | 'YELLOW' | 'red' | 'RED' export type Host = string @@ -2453,8 +2467,6 @@ export interface NodeAttributes { id?: NodeId name: NodeName transport_address: TransportAddress - roles?: NodeRoles - external_id?: string } export type NodeId = string @@ -2904,7 +2916,7 @@ export interface AggregationsAdjacencyMatrixBucketKeys extends AggregationsMulti export type AggregationsAdjacencyMatrixBucket = AggregationsAdjacencyMatrixBucketKeys & { [property: string]: AggregationsAggregate | string | long } -export type AggregationsAggregate = AggregationsCardinalityAggregate | AggregationsHdrPercentilesAggregate | AggregationsHdrPercentileRanksAggregate | AggregationsTDigestPercentilesAggregate | AggregationsTDigestPercentileRanksAggregate | AggregationsPercentilesBucketAggregate | AggregationsMedianAbsoluteDeviationAggregate | AggregationsMinAggregate | AggregationsMaxAggregate | AggregationsSumAggregate | AggregationsAvgAggregate | AggregationsWeightedAvgAggregate | AggregationsValueCountAggregate | AggregationsSimpleValueAggregate | AggregationsDerivativeAggregate | AggregationsBucketMetricValueAggregate | AggregationsStatsAggregate | AggregationsStatsBucketAggregate | AggregationsExtendedStatsAggregate | AggregationsExtendedStatsBucketAggregate | AggregationsGeoBoundsAggregate | AggregationsGeoCentroidAggregate | AggregationsHistogramAggregate | AggregationsDateHistogramAggregate | AggregationsAutoDateHistogramAggregate | AggregationsVariableWidthHistogramAggregate | AggregationsStringTermsAggregate | AggregationsLongTermsAggregate | AggregationsDoubleTermsAggregate | AggregationsUnmappedTermsAggregate | AggregationsLongRareTermsAggregate | AggregationsStringRareTermsAggregate | AggregationsUnmappedRareTermsAggregate | AggregationsMultiTermsAggregate | AggregationsMissingAggregate | AggregationsNestedAggregate | AggregationsReverseNestedAggregate | AggregationsGlobalAggregate | AggregationsFilterAggregate | AggregationsChildrenAggregate | AggregationsParentAggregate | AggregationsSamplerAggregate | AggregationsUnmappedSamplerAggregate | AggregationsGeoHashGridAggregate | AggregationsGeoTileGridAggregate | AggregationsGeoHexGridAggregate | AggregationsRangeAggregate | AggregationsDateRangeAggregate | AggregationsGeoDistanceAggregate | AggregationsIpRangeAggregate | AggregationsIpPrefixAggregate | AggregationsFiltersAggregate | AggregationsAdjacencyMatrixAggregate | AggregationsSignificantLongTermsAggregate | AggregationsSignificantStringTermsAggregate | AggregationsUnmappedSignificantTermsAggregate | AggregationsCompositeAggregate | AggregationsFrequentItemSetsAggregate | AggregationsScriptedMetricAggregate | AggregationsTopHitsAggregate | AggregationsInferenceAggregate | AggregationsStringStatsAggregate | AggregationsBoxPlotAggregate | AggregationsTopMetricsAggregate | AggregationsTTestAggregate | AggregationsRateAggregate | AggregationsCumulativeCardinalityAggregate | AggregationsMatrixStatsAggregate | AggregationsGeoLineAggregate +export type AggregationsAggregate = AggregationsCardinalityAggregate | AggregationsHdrPercentilesAggregate | AggregationsHdrPercentileRanksAggregate | AggregationsTDigestPercentilesAggregate | AggregationsTDigestPercentileRanksAggregate | AggregationsPercentilesBucketAggregate | AggregationsMedianAbsoluteDeviationAggregate | AggregationsMinAggregate | AggregationsMaxAggregate | AggregationsSumAggregate | AggregationsAvgAggregate | AggregationsWeightedAvgAggregate | AggregationsValueCountAggregate | AggregationsSimpleValueAggregate | AggregationsDerivativeAggregate | AggregationsBucketMetricValueAggregate | AggregationsStatsAggregate | AggregationsStatsBucketAggregate | AggregationsExtendedStatsAggregate | AggregationsExtendedStatsBucketAggregate | AggregationsGeoBoundsAggregate | AggregationsGeoCentroidAggregate | AggregationsHistogramAggregate | AggregationsDateHistogramAggregate | AggregationsAutoDateHistogramAggregate | AggregationsVariableWidthHistogramAggregate | AggregationsStringTermsAggregate | AggregationsLongTermsAggregate | AggregationsDoubleTermsAggregate | AggregationsUnmappedTermsAggregate | AggregationsLongRareTermsAggregate | AggregationsStringRareTermsAggregate | AggregationsUnmappedRareTermsAggregate | AggregationsMultiTermsAggregate | AggregationsMissingAggregate | AggregationsNestedAggregate | AggregationsReverseNestedAggregate | AggregationsGlobalAggregate | AggregationsFilterAggregate | AggregationsChildrenAggregate | AggregationsParentAggregate | AggregationsSamplerAggregate | AggregationsUnmappedSamplerAggregate | AggregationsGeoHashGridAggregate | AggregationsGeoTileGridAggregate | AggregationsGeoHexGridAggregate | AggregationsRangeAggregate | AggregationsDateRangeAggregate | AggregationsGeoDistanceAggregate | AggregationsIpRangeAggregate | AggregationsIpPrefixAggregate | AggregationsFiltersAggregate | AggregationsAdjacencyMatrixAggregate | AggregationsSignificantLongTermsAggregate | AggregationsSignificantStringTermsAggregate | AggregationsUnmappedSignificantTermsAggregate | AggregationsCompositeAggregate | AggregationsFrequentItemSetsAggregate | AggregationsTimeSeriesAggregate | AggregationsScriptedMetricAggregate | AggregationsTopHitsAggregate | AggregationsInferenceAggregate | AggregationsStringStatsAggregate | AggregationsBoxPlotAggregate | AggregationsTopMetricsAggregate | AggregationsTTestAggregate | AggregationsRateAggregate | AggregationsCumulativeCardinalityAggregate | AggregationsMatrixStatsAggregate | AggregationsGeoLineAggregate export interface AggregationsAggregateBase { meta?: Metadata @@ -2989,6 +3001,7 @@ export interface AggregationsAggregationContainer { sum?: AggregationsSumAggregation sum_bucket?: AggregationsSumBucketAggregation terms?: AggregationsTermsAggregation + time_series?: AggregationsTimeSeriesAggregation top_hits?: AggregationsTopHitsAggregation t_test?: AggregationsTTestAggregation top_metrics?: AggregationsTopMetricsAggregation @@ -4185,6 +4198,20 @@ export interface AggregationsTestPopulation { filter?: QueryDslQueryContainer } +export interface AggregationsTimeSeriesAggregate extends AggregationsMultiBucketAggregateBase { +} + +export interface AggregationsTimeSeriesAggregation extends AggregationsBucketAggregationBase { + size?: integer + keyed?: boolean +} + +export interface AggregationsTimeSeriesBucketKeys extends AggregationsMultiBucketBase { + key: Record +} +export type AggregationsTimeSeriesBucket = AggregationsTimeSeriesBucketKeys +& { [property: string]: AggregationsAggregate | Record | long } + export interface AggregationsTopHitsAggregate extends AggregationsAggregateBase { hits: SearchHitsMetadata } @@ -6692,6 +6719,7 @@ export interface CatIndicesIndicesRecord { ss?: string | null storeSize?: string | null 'pri.store.size'?: string | null + 'dataset.size'?: string | null 'completion.size'?: string cs?: string completionSize?: string @@ -7809,6 +7837,7 @@ export interface CatShardsShardsRecord { dc?: string | null store?: string | null sto?: string | null + dataset?: string | null ip?: string | null id?: string node?: string | null @@ -9805,7 +9834,9 @@ export interface EnrichStatsCacheStats { node_id: Id count: integer hits: integer + hits_time_in_millis: DurationValue misses: integer + misses_time_in_millis: DurationValue evictions: integer } @@ -9914,8 +9945,10 @@ export type EqlSearchResponse = EqlEqlSearchResponseBase - patterns: string[] + patterns: GrokPattern[] trace_match?: boolean } @@ -12569,6 +12620,7 @@ export interface IngestProcessorContainer { enrich?: IngestEnrichProcessor fail?: IngestFailProcessor foreach?: IngestForeachProcessor + geo_grid?: IngestGeoGridProcessor geoip?: IngestGeoIpProcessor grok?: IngestGrokProcessor gsub?: IngestGsubProcessor @@ -12579,6 +12631,7 @@ export interface IngestProcessorContainer { kv?: IngestKeyValueProcessor lowercase?: IngestLowercaseProcessor pipeline?: IngestPipelineProcessor + redact?: IngestRedactProcessor remove?: IngestRemoveProcessor rename?: IngestRenameProcessor reroute?: IngestRerouteProcessor @@ -12594,6 +12647,16 @@ export interface IngestProcessorContainer { user_agent?: IngestUserAgentProcessor } +export interface IngestRedactProcessor extends IngestProcessorBase { + field: Field + patterns: GrokPattern[] + pattern_definitions?: Record + prefix?: string + suffix?: string + ignore_missing?: boolean + skip_if_unlicensed?: boolean +} + export interface IngestRemoveProcessor extends IngestProcessorBase { field: Fields keep?: Fields @@ -13186,7 +13249,7 @@ export type MlCategorizationStatus = 'ok' | 'warn' export interface MlCategory { category_id: ulong examples: string[] - grok_pattern?: string + grok_pattern?: GrokPattern job_id: Id max_matching_length: ulong partition_field_name?: string @@ -15783,6 +15846,25 @@ export interface NodesHttp { current_open?: integer total_opened?: long clients?: NodesClient[] + routes: Record +} + +export interface NodesHttpRoute { + requests: NodesHttpRouteRequests + responses: NodesHttpRouteResponses +} + +export interface NodesHttpRouteRequests { + count: long + total_size_in_bytes: long + size_histogram: NodesSizeHttpHistogram[] +} + +export interface NodesHttpRouteResponses { + count: long + total_size_in_bytes: long + handling_time_histogram: NodesTimeHttpHistogram[] + size_histogram: NodesSizeHttpHistogram[] } export interface NodesIndexingPressure { @@ -15797,16 +15879,25 @@ export interface NodesIndexingPressureMemory { } export interface NodesIngest { - pipelines?: Record + pipelines?: Record total?: NodesIngestTotal } +export interface NodesIngestStats { + count: long + current: long + failed: long + processors: Record[] + time_in_millis: DurationValue + ingested_as_first_pipeline_in_bytes: long + produced_as_first_pipeline_in_bytes: long +} + export interface NodesIngestTotal { - count?: long - current?: long - failed?: long - processors?: Record[] - time_in_millis?: DurationValue + count: long + current: long + failed: long + time_in_millis: DurationValue } export interface NodesIoStatDevice { @@ -16011,6 +16102,12 @@ export interface NodesSerializedClusterStateDetail { compressed_size_in_bytes?: long } +export interface NodesSizeHttpHistogram { + count: long + ge_bytes?: long + lt_bytes?: long +} + export interface NodesStats { adaptive_selection?: Record breakers?: Record @@ -16045,6 +16142,12 @@ export interface NodesThreadCount { threads?: long } +export interface NodesTimeHttpHistogram { + count: long + ge_millis?: long + lt_millis?: long +} + export interface NodesTransport { inbound_handling_time_histogram?: NodesTransportHistogram[] outbound_handling_time_histogram?: NodesTransportHistogram[] @@ -18931,7 +19034,7 @@ export interface TextStructureFindStructureRequest { ecs_compatibility?: string explain?: boolean format?: string - grok_pattern?: string + grok_pattern?: GrokPattern has_header_row?: boolean line_merge_size_limit?: uint lines_to_sample?: uint @@ -18959,7 +19062,7 @@ export interface TextStructureFindStructureResponse { num_lines_analyzed: integer column_names?: string[] explanation?: string[] - grok_pattern?: string + grok_pattern?: GrokPattern multiline_start_pattern?: string exclude_lines_pattern?: string java_timestamp_formats?: string[] @@ -18989,7 +19092,7 @@ export interface TextStructureTestGrokPatternRequest extends RequestBase { ecs_compatibility?: string /** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */ body?: { - grok_pattern: string + grok_pattern: GrokPattern text: string[] } }