Skip to content

Commit

Permalink
More edits
Browse files Browse the repository at this point in the history
  • Loading branch information
lcawl committed Jan 18, 2025
1 parent 149ce8c commit 85900f8
Show file tree
Hide file tree
Showing 49 changed files with 196 additions and 163 deletions.
50 changes: 25 additions & 25 deletions output/openapi/elasticsearch-openapi.json

Large diffs are not rendered by default.

38 changes: 19 additions & 19 deletions output/openapi/elasticsearch-serverless-openapi.json

Large diffs are not rendered by default.

155 changes: 78 additions & 77 deletions output/schema/schema.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions specification/_doc_ids/table.csv
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ calendar-and-fixed-intervals,https://www.elastic.co/guide/en/elasticsearch/refer
cat-alias,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/cat-alias.html
cat-allocation,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/cat-allocation.html
cat-anomaly-detectors,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/cat-anomaly-detectors.html
cat-component-templates,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/cat-component-templates.html
cat-count,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/cat-count.html
cat-datafeeds,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/cat-datafeeds.html
cat-dfanalytics,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/cat-dfanalytics.html
Expand Down
4 changes: 2 additions & 2 deletions specification/cat/aliases/CatAliasesRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@ export interface Request extends CatRequestBase {
/**
* The type of index that wildcard patterns can match.
* If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
* It supports comma-separated values, such as `open,hidden`.
* It supports comma-separated values, such as `open,hidden`.
*/
expand_wildcards?: ExpandWildcards
/**
* The period to wait for a connection to the master node.
* If the master node is not available before the timeout expires, the request fails and returns an error.
* If the master node is not available before the timeout expires, the request fails and returns an error.
* To indicated that the request should never timeout, you can set it to `-1`.
* @server_default 30s
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ description: >
# response_code: 200
value: |-
shards shards.undesired write_load.forecast disk.indices.forecast disk.indices disk.used disk.avail disk.total disk.percent host ip node node.role
1 0 0.0 260b 260b 47.3gb 43.4gb 100.7gb 46 127.0.0.1 127.0.0.1 CSUXak2 himrst
1 0 0.0 260b 260b 47.3gb 43.4gb 100.7gb 46 127.0.0.1 127.0.0.1 CSUXak2 himrst
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,17 @@ import { Duration } from '@_types/Time'

/**
* Get component templates.
* Returns information about component templates in a cluster.
*
* Get information about component templates in a cluster.
* Component templates are building blocks for constructing index templates that specify index mappings, settings, and aliases.
*
* CAT APIs are only intended for human consumption using the command line or Kibana console.
* IMPORTANT: CAT APIs are only intended for human consumption using the command line or Kibana console.
* They are not intended for use by applications. For application consumption, use the get component template API.
* @rest_spec_name cat.component_templates
* @availability stack since=5.1.0 stability=stable
* @availability serverless stability=stable visibility=public
* @cluster_privileges monitor
* @doc_id cat-component-templates
*/
export interface Request extends CatRequestBase {
urls: [
Expand All @@ -44,7 +46,10 @@ export interface Request extends CatRequestBase {
}
]
path_parts: {
/** The name of the component template. Accepts wildcard expressions. If omitted, all component templates are returned. */
/**
* The name of the component template.
* It accepts wildcard expressions.
* If it is omitted, all component templates are returned. */
name?: string
}
query_parameters: {
Expand All @@ -57,7 +62,7 @@ export interface Request extends CatRequestBase {
*/
local?: boolean
/**
* Period to wait for a connection to the master node.
* The period to wait for a connection to the master node.
* @server_default 30s
*/
master_timeout?: Duration
Expand Down
10 changes: 6 additions & 4 deletions specification/cat/count/CatCountRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,11 @@ import { Indices } from '@_types/common'

/**
* Get a document count.
* Provides quick access to a document count for a data stream, an index, or an entire cluster.
*
* Get quick access to a document count for a data stream, an index, or an entire cluster.
* The document count only includes live documents, not deleted documents which have not yet been removed by the merge process.
*
* CAT APIs are only intended for human consumption using the command line or Kibana console.
* IMPORTANT: CAT APIs are only intended for human consumption using the command line or Kibana console.
* They are not intended for use by applications. For application consumption, use the count API.
* @rest_spec_name cat.count
* @availability stack stability=stable
Expand All @@ -46,8 +47,9 @@ export interface Request extends CatRequestBase {
]
path_parts: {
/**
* Comma-separated list of data streams, indices, and aliases used to limit the request.
* Supports wildcards (`*`). To target all data streams and indices, omit this parameter or use `*` or `_all`.
* A comma-separated list of data streams, indices, and aliases used to limit the request.
* It supports wildcards (`*`).
* To target all data streams and indices, omit this parameter or use `*` or `_all`.
*/
index?: Indices
}
Expand Down
2 changes: 2 additions & 0 deletions specification/cat/fielddata/CatFielddataRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ import { Bytes, Fields } from '@_types/common'

/**
* Get field data cache information.
*
* Get the amount of heap memory currently used by the field data cache on every data node in the cluster.
*
* IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console.
* They are not intended for use by applications. For application consumption, use the nodes stats API.
* @rest_spec_name cat.fielddata
Expand Down
3 changes: 2 additions & 1 deletion specification/cat/health/CatHealthRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ import { TimeUnit } from '@_types/Time'

/**
* Get the cluster health status.
* IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console.
*
* IMPORTANT: CAT APIs are only intended for human consumption using the command line or Kibana console.
* They are not intended for use by applications. For application consumption, use the cluster health API.
* This API is often used to check malfunctioning clusters.
* To help you track cluster health alongside log files and alerting systems, the API returns timestamps in two formats:
Expand Down
3 changes: 2 additions & 1 deletion specification/cat/help/CatHelpRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@

/**
* Get CAT help.
* Returns help for the CAT APIs.
*
* Get help for the CAT APIs.
* @rest_spec_name cat.help
* @availability stack stability=stable
* @availability serverless stability=stable visibility=public
Expand Down
3 changes: 2 additions & 1 deletion specification/cat/indices/CatIndicesRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ import { Duration, TimeUnit } from '@_types/Time'

/**
* Get index information.
* Returns high-level information about indices in a cluster, including backing indices for data streams.
*
* Get high-level information about indices in a cluster, including backing indices for data streams.
*
* Use this request to get the following information for each index in a cluster:
* - shard count
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ description: >
value: |-
health status index uuid pri rep docs.count docs.deleted store.size pri.store.size dataset.size
yellow open my-index-000001 u8FNjxh8Rfy_awN11oDKYQ 1 1 1200 0 88.1kb 88.1kb 88.1kb
green open my-index-000002 nYFWZEO7TUiOjLQXBaYJpA 1 0 0 0 260b 260b 260b
green open my-index-000002 nYFWZEO7TUiOjLQXBaYJpA 1 0 0 0 260b 260b 260b
2 changes: 2 additions & 0 deletions specification/cat/master/CatMasterRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ import { Duration } from '@_types/Time'

/**
* Get master node information.
*
* Get information about the master node, including the ID, bound IP address, and name.
*
* IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the nodes info API.
* @rest_spec_name cat.master
* @availability stack stability=stable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ description: >
# response_code:
value: |-
id host ip node
YzWoH_2BT-6UjVGDyPdqYg 127.0.0.1 127.0.0.1 YzWoH_2
YzWoH_2BT-6UjVGDyPdqYg 127.0.0.1 127.0.0.1 YzWoH_2
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@ import { TimeUnit } from '@_types/Time'

/**
* Get data frame analytics jobs.
* Returns configuration and usage information about data frame analytics jobs.
*
* CAT APIs are only intended for human consumption using the Kibana
* Get configuration and usage information about data frame analytics jobs.
*
* IMPORTANT: CAT APIs are only intended for human consumption using the Kibana
* console or command line. They are not intended for use by applications. For
* application consumption, use the get data frame analytics jobs statistics API.
*
Expand Down
5 changes: 3 additions & 2 deletions specification/cat/ml_datafeeds/CatDatafeedsRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,13 @@ import { TimeUnit } from '@_types/Time'

/**
* Get datafeeds.
* Returns configuration and usage information about datafeeds.
*
* Get configuration and usage information about datafeeds.
* This API returns a maximum of 10,000 datafeeds.
* If the Elasticsearch security features are enabled, you must have `monitor_ml`, `monitor`, `manage_ml`, or `manage`
* cluster privileges to use this API.
*
* CAT APIs are only intended for human consumption using the Kibana
* IMPORTANT: CAT APIs are only intended for human consumption using the Kibana
* console or command line. They are not intended for use by applications. For
* application consumption, use the get datafeed statistics API.
*
Expand Down
5 changes: 3 additions & 2 deletions specification/cat/ml_jobs/CatJobsRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,13 @@ import { TimeUnit } from '@_types/Time'

/**
* Get anomaly detection jobs.
* Returns configuration and usage information for anomaly detection jobs.
*
* Get configuration and usage information for anomaly detection jobs.
* This API returns a maximum of 10,000 jobs.
* If the Elasticsearch security features are enabled, you must have `monitor_ml`,
* `monitor`, `manage_ml`, or `manage` cluster privileges to use this API.
*
* CAT APIs are only intended for human consumption using the Kibana
* IMPORTANT: CAT APIs are only intended for human consumption using the Kibana
* console or command line. They are not intended for use by applications. For
* application consumption, use the get anomaly detection job statistics API.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@ import { TimeUnit } from '@_types/Time'

/**
* Get trained models.
* Returns configuration and usage information about inference trained models.
*
* CAT APIs are only intended for human consumption using the Kibana
* Get configuration and usage information about inference trained models.
*
* IMPORTANT: CAT APIs are only intended for human consumption using the Kibana
* console or command line. They are not intended for use by applications. For
* application consumption, use the get trained models statistics API.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ value: |-
id created_by operations license create_time version
ddddd-1580216177138 _xpack 196 PLATINUM 2020-01-28T12:56:17.138Z 8.0.0
flight-regress-1580215685537 _xpack 102 PLATINUM 2020-01-28T12:48:05.537Z 8.0.0
lang_ident_model_1 _xpack 39629 BASIC 2019-12-05T12:28:34.594Z 7.6.0
lang_ident_model_1 _xpack 39629 BASIC 2019-12-05T12:28:34.594Z 7.6.0
1 change: 1 addition & 0 deletions specification/cat/nodeattrs/CatNodeAttributesRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import { Duration } from '@_types/Time'

/**
* Get node attribute information.
*
* Get information about custom node attributes.
* IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the nodes info API.
* @rest_spec_name cat.nodeattrs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ description: >
# response_code: 200
value: |-
name pid attr value
node-0 19566 testattr test
node-0 19566 testattr test
1 change: 1 addition & 0 deletions specification/cat/nodes/CatNodesRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import { Duration, TimeUnit } from '@_types/Time'

/**
* Get node information.
*
* Get information about the nodes in a cluster.
* IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the nodes info API.
* @rest_spec_name cat.nodes
Expand Down
1 change: 1 addition & 0 deletions specification/cat/pending_tasks/CatPendingTasksRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import { Duration, TimeUnit } from '@_types/Time'

/**
* Get pending task information.
*
* Get information about cluster-level changes that have not yet taken effect.
* IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the pending cluster tasks API.
* @rest_spec_name cat.pending_tasks
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ value: |-
1688 816ms HIGH update-mapping [foo][t]
1689 802ms HIGH update-mapping [foo][t]
1690 787ms HIGH update-mapping [foo][t]
1691 773ms HIGH update-mapping [foo][t]
1691 773ms HIGH update-mapping [foo][t]
1 change: 1 addition & 0 deletions specification/cat/plugins/CatPluginsRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import { Duration } from '@_types/Time'

/**
* Get plugin information.
*
* Get a list of plugins running on each node of a cluster.
* IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the nodes info API.
* @rest_spec_name cat.plugins
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ value: |-
U7321H6 mapper-annotated-text 8.17.0 The Mapper Annotated_text plugin adds support for text fields with markup used to inject annotation tokens into the index.
U7321H6 mapper-murmur3 8.17.0 The Mapper Murmur3 plugin allows to compute hashes of a field's values at index-time and to store them in the index.
U7321H6 mapper-size 8.17.0 The Mapper Size plugin allows document to record their uncompressed size at index time.
U7321H6 store-smb 8.17.0 The Store SMB plugin adds support for SMB stores.
U7321H6 store-smb 8.17.0 The Store SMB plugin adds support for SMB stores.
1 change: 1 addition & 0 deletions specification/cat/recovery/CatRecoveryRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import { TimeUnit } from '@_types/Time'

/**
* Get shard recovery information.
*
* Get information about ongoing and completed shard recoveries.
* Shard recovery is the process of initializing a shard copy, such as restoring a primary shard from a snapshot or syncing a replica shard from a primary shard. When a shard recovery completes, the recovered shard is available for search and indexing.
* For data streams, the API returns information about the stream’s backing indices.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ description: >
# response_code: 200
value: |-
i s t ty st shost thost f fp b bp
my-index-000001 0 1252ms peer done 192.168.1.1 192.168.1.2 0 100.0% 0b 100.0%
my-index-000001 0 1252ms peer done 192.168.1.1 192.168.1.2 0 100.0% 0b 100.0%
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ description: >
# response_code: 200
value: |-
i s t ty st rep snap f fp b bp
my-index-000001 0 1978ms snapshot done my-repo snap-1 79 8.0% 12086 9.0%
my-index-000001 0 1978ms snapshot done my-repo snap-1 79 8.0% 12086 9.0%
1 change: 1 addition & 0 deletions specification/cat/repositories/CatRepositoriesRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import { Duration } from '@_types/Time'

/**
* Get snapshot repository information.
*
* Get a list of snapshot repositories for a cluster.
* IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the get snapshot repository API.
* @rest_spec_name cat.repositories
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ description: >
value: |-
id type
repo1 fs
repo2 s3
repo2 s3
1 change: 1 addition & 0 deletions specification/cat/segments/CatSegmentsRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import { Duration } from '@_types/Time'

/**
* Get segment information.
*
* Get low-level information about the Lucene segments in index shards.
* For data streams, the API returns information about the backing indices.
* IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the index segments API.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ description: >
value: |-
index shard prirep ip segment generation docs.count docs.deleted size size.memory committed searchable version compound
test 0 p 127.0.0.1 _0 0 1 0 3kb 0 false true 9.12.0 true
test1 0 p 127.0.0.1 _0 0 1 0 3kb 0 false true 9.12.0 true
test1 0 p 127.0.0.1 _0 0 1 0 3kb 0 false true 9.12.0 true
1 change: 1 addition & 0 deletions specification/cat/shards/CatShardsRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import { Duration, TimeUnit } from '@_types/Time'

/**
* Get shard information.
*
* Get information about the shards in a cluster.
* For data streams, the API returns information about the backing indices.
* IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ description: >
# type: response
# response_code: 200
value: |-
my-index-000001 0 p STARTED 3014 31.1mb 192.168.56.10 H5dfFeA
my-index-000001 0 p STARTED 3014 31.1mb 192.168.56.10 H5dfFeA
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ description: >
# type: response
# response_code: 200
value: |-
my-index-000001 0 p STARTED 3014 31.1mb 192.168.56.10 H5dfFeA
my-index-000001 0 p STARTED 3014 31.1mb 192.168.56.10 H5dfFeA
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ description: >
# type: response
# response_code: 200
value: |-
my-index-000001 0 p RELOCATING 3014 31.1mb 192.168.56.10 H5dfFeA -> -> 192.168.56.30 bGG90GE
my-index-000001 0 p RELOCATING 3014 31.1mb 192.168.56.10 H5dfFeA -> -> 192.168.56.30 bGG90GE
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ description: >
# response_code: 200
value: |-
my-index-000001 0 p STARTED 3014 31.1mb 192.168.56.10 H5dfFeA
my-index-000001 0 r INITIALIZING 0 14.3mb 192.168.56.30 bGG90GE
my-index-000001 0 r INITIALIZING 0 14.3mb 192.168.56.30 bGG90GE
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ value: |-
my-index-000001 0 p STARTED 3014 31.1mb 192.168.56.10 H5dfFeA
my-index-000001 0 r STARTED 3014 31.1mb 192.168.56.30 bGG90GE
my-index-000001 0 r STARTED 3014 31.1mb 192.168.56.20 I8hydUG
my-index-000001 0 r UNASSIGNED ALLOCATION_FAILED
my-index-000001 0 r UNASSIGNED ALLOCATION_FAILED
3 changes: 2 additions & 1 deletion specification/cat/snapshots/CatSnapshotsRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ import { Names } from '@_types/common'
import { Duration, TimeUnit } from '@_types/Time'

/**
* Get snapshot information
* Get snapshot information.
*
* Get information about the snapshots stored in one or more repositories.
* A snapshot is a backup of an index or running Elasticsearch cluster.
* IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the get snapshot API.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ description: >
value: |-
id repository status start_epoch start_time end_epoch end_time duration indices successful_shards failed_shards total_shards
snap1 repo1 FAILED 1445616705 18:11:45 1445616978 18:16:18 4.6m 1 4 1 5
snap2 repo1 SUCCESS 1445634298 23:04:58 1445634672 23:11:12 6.2m 2 10 0 10
snap2 repo1 SUCCESS 1445634298 23:04:58 1445634672 23:11:12 6.2m 2 10 0 10
Loading

0 comments on commit 85900f8

Please sign in to comment.