Skip to content

Commit

Permalink
Add further summaries (#2734)
Browse files Browse the repository at this point in the history
  • Loading branch information
shainaraskas authored Jul 26, 2024
1 parent 6fd441a commit c3dcedf
Show file tree
Hide file tree
Showing 33 changed files with 357 additions and 278 deletions.
184 changes: 100 additions & 84 deletions output/openapi/elasticsearch-openapi.json

Large diffs are not rendered by default.

176 changes: 96 additions & 80 deletions output/openapi/elasticsearch-serverless-openapi.json

Large diffs are not rendered by default.

180 changes: 90 additions & 90 deletions output/schema/schema.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ import { Duration } from '@_types/Time'
import { Operator } from '@_types/query_dsl/Operator'

/**
* Delete documents.
* Deletes documents that match the specified query.
* @rest_spec_name delete_by_query
* @availability stack since=5.0.0 stability=stable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ import { Duration } from '@_types/Time'
import { Operator } from '@_types/query_dsl/Operator'

/**
* Update documents.
* Updates documents that match the specified query.
* If no query is specified, performs an update on every document in the data stream or index without modifying the source, which is useful for picking up mapping changes.
* @rest_spec_name update_by_query
Expand Down
4 changes: 3 additions & 1 deletion specification/cat/aliases/CatAliasesRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,11 @@ import { CatRequestBase } from '@cat/_types/CatBase'
import { ExpandWildcards, Names } from '@_types/common'

/**
* Get aliases.
* Retrieves the cluster’s index aliases, including filter and routing information.
* The API does not return data stream aliases.
* IMPORTANT: cat APIs are only intended for human consumption using the command line or the Kibana console. They are not intended for use by applications. For application consumption, use the aliases API.
* > info
* > CAT APIs are only intended for human consumption using the command line or the Kibana console. They are not intended for use by applications. For application consumption, use [the /_alias endpoints](#endpoint-alias).
* @rest_spec_name cat.aliases
* @availability stack stability=stable
* @availability serverless stability=stable visibility=public
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,12 @@
import { CatRequestBase } from '@cat/_types/CatBase'

/**
* Get component templates.
* Returns information about component templates in a cluster.
* Component templates are building blocks for constructing index templates that specify index mappings, settings, and aliases.
* 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.
* > info
* > 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 /_component_template endpoints](#endpoint-component-template).
* @rest_spec_name cat.component_templates
* @availability stack since=5.1.0 stability=stable
* @availability serverless stability=stable visibility=public
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 @@ -21,10 +21,12 @@ import { CatRequestBase } from '@cat/_types/CatBase'
import { Indices } from '@_types/common'

/**
* Provides quick access to a document count for a data stream, an index, or an entire cluster.
* NOTE: The document count only includes live documents, not deleted documents which have not yet been removed by the merge process.
* 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.
* Get a document count.
* Provides quick access to a document count for a data stream, an index, or an entire cluster.n/
* The document count only includes live documents, not deleted documents which have not yet been removed by the merge process.
* > info
* > 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 endpoints](#endpoint-count).
* @rest_spec_name cat.count
* @availability stack stability=stable
* @availability serverless stability=stable visibility=public
Expand Down
2 changes: 2 additions & 0 deletions specification/cat/help/CatHelpRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
import { CatRequestBase } from '@cat/_types/CatBase'

/**
* Get CAT help.
* Returns help for the CAT APIs.
* @rest_spec_name cat.help
* @availability stack stability=stable
* @availability serverless stability=stable visibility=public
Expand Down
17 changes: 13 additions & 4 deletions specification/cat/indices/CatIndicesRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,21 @@ import { Bytes, ExpandWildcards, HealthStatus, Indices } from '@_types/common'
import { TimeUnit } from '@_types/Time'

/**
* Get index information.
* Returns high-level information about indices in a cluster, including backing indices for data streams.
* 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 index API.
* Use the cat indices API to get the following information for each index in a cluster: shard count; document count; deleted document count; primary store size; total store size of all shards, including shard replicas.
* > info
* > 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 an index endpoint.
*
* Use this request to get the following information for each index in a cluster:
* - shard count
* - document count
* - deleted document count
* - primary store size
* - total store size of all shards, including shard replicas
*
* These metrics are retrieved directly from Lucene, which Elasticsearch uses internally to power indexing and search. As a result, all document counts include hidden nested documents.
* To get an accurate count of Elasticsearch documents, use the cat count or count APIs.
* To get an accurate count of Elasticsearch documents, use the [/_cat/count](#operation-cat-count) or [count](#endpoint-count) endpoints.
* @rest_spec_name cat.indices
* @availability stack stability=stable
* @availability serverless stability=stable visibility=public
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,13 @@ import { Bytes, Id } from '@_types/common'
import { Duration } from '@_types/Time'

/**
* Get data frame analytics jobs.
* Returns configuration and usage information about data frame analytics jobs.
*
* IMPORTANT: cat APIs are only intended for human consumption using the Kibana
* > info
* > 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.
* application consumption, use [the /_ml/data_frame/analytics endpoints](#endpoint-ml).
*
* @rest_spec_name cat.ml_data_frame_analytics
* @availability stack since=7.7.0 stability=stable
Expand Down
6 changes: 4 additions & 2 deletions specification/cat/ml_datafeeds/CatDatafeedsRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,16 @@ import { Id } from '@_types/common'
import { TimeUnit } from '@_types/Time'

/**
* Get datafeeds.
* Returns 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.
*
* IMPORTANT: cat APIs are only intended for human consumption using the Kibana
* > info
* > 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.
* application consumption, use [the /_ml/datafeeds endpoints](#endpoint-ml).
*
* @rest_spec_name cat.ml_datafeeds
* @availability stack since=7.7.0 stability=stable
Expand Down
6 changes: 4 additions & 2 deletions specification/cat/ml_jobs/CatJobsRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,16 @@ import { Bytes, Id } from '@_types/common'
import { TimeUnit } from '@_types/Time'

/**
* Get anomaly detection jobs.
* Returns 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.
*
* IMPORTANT: cat APIs are only intended for human consumption using the Kibana
* > info
* > 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.
* application consumption, use [the /_ml/anomaly_detectors endpoints](#endpoint-ml).
*
* @rest_spec_name cat.ml_jobs
* @availability stack since=7.7.0 stability=stable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,13 @@ import { Bytes, Id } from '@_types/common'
import { integer } from '@_types/Numeric'

/**
* Get trained models.
* Returns configuration and usage information about inference trained models.
*
* IMPORTANT: cat APIs are only intended for human consumption using the Kibana
* > info
* > 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.
* application consumption, use [the /_ml/trained_models endpoints](#endpoint-ml).
*
* @rest_spec_name cat.ml_trained_models
* @availability stack since=7.7.0 stability=stable
Expand Down
6 changes: 4 additions & 2 deletions specification/cat/transforms/CatTransformsRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,13 @@ import { integer } from '@_types/Numeric'
import { Duration, TimeUnit } from '@_types/Time'

/**
* Get transforms.
* Returns configuration and usage information about transforms.
*
* IMPORTANT: cat APIs are only intended for human consumption using the Kibana
* > info
* > 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 transform statistics API.
* application consumption, use [the /_transform endpoints](#endpoint-transform).
*
* @rest_spec_name cat.transforms
* @availability stack since=7.7.0 stability=stable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import { RequestBase } from '@_types/Base'
import { Name } from '@_types/common'

/**
* Delete an enrich policy.
* Deletes an existing enrich policy and its enrich index.
* @rest_spec_name enrich.delete_policy
* @availability stack since=7.5.0 stability=stable
Expand Down
1 change: 1 addition & 0 deletions specification/enrich/get_policy/GetEnrichPolicyRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import { RequestBase } from '@_types/Base'
import { Names } from '@_types/common'

/**
* Get an enrich policy.
* Returns information about an enrich policy.
* @rest_spec_name enrich.get_policy
* @availability stack since=7.5.0 stability=stable
Expand Down
1 change: 1 addition & 0 deletions specification/enrich/put_policy/PutEnrichPolicyRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import { RequestBase } from '@_types/Base'
import { Name } from '@_types/common'

/**
* Create an enrich policy.
* Creates an enrich policy.
* @doc_id put-enrich-policy-api
* @rest_spec_name enrich.put_policy
Expand Down
1 change: 1 addition & 0 deletions specification/enrich/stats/EnrichStatsRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import { RequestBase } from '@_types/Base'

/**
* Get enrich stats.
* Returns enrich coordinator statistics and information about enrich policies that are currently executing.
* @rest_spec_name enrich.stats
* @availability stack since=7.5.0 stability=stable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import { RequestBase } from '@_types/Base'
import { ExpandWildcards, Fields, Indices } from '@_types/common'

/**
* Get mapping definitions.
* Retrieves mapping definitions for one or more fields.
* For data streams, the API retrieves field mappings for the stream’s backing indices.
* @rest_spec_name indices.get_field_mapping
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import { ExpandWildcards, Indices } from '@_types/common'
import { Duration } from '@_types/Time'

/**
* Get mapping definitions.
* Retrieves mapping definitions for one or more indices.
* For data streams, the API retrieves mappings for the stream’s backing indices.
* @rest_spec_name indices.get_mapping
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ import { RuntimeFields } from '@_types/mapping/RuntimeFields'
import { Duration } from '@_types/Time'

/**
* Update field mappings.
* Adds new fields to an existing data stream or index.
* You can also use this API to change the search settings of existing fields.
* For data streams, these changes are applied to all backing indices by default.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ import { QueryContainer } from '@_types/query_dsl/abstractions'
import { Operator } from '@_types/query_dsl/Operator'

/**
* Validates a potentially expensive query without executing it.
* Validate a query.
* Validates a query without running it.
* @rest_spec_name indices.validate_query
* @availability stack since=1.3.0 stability=stable
* @availability serverless stability=stable visibility=public
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import { Id } from '@_types/common'
import { Duration } from '@_types/Time'

/**
* Delete a transform.
* Deletes a transform.
* @rest_spec_name transform.delete_transform
* @availability stack since=7.5.0 stability=stable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import { Name, Names } from '@_types/common'
import { integer } from '@_types/Numeric'

/**
* Get transforms.
* Retrieves configuration information for transforms.
* @rest_spec_name transform.get_transform
* @availability stack since=7.5.0 stability=stable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import { long } from '@_types/Numeric'
import { Duration } from '@_types/Time'

/**
* Get transform stats.
* Retrieves usage information for transforms.
* @rest_spec_name transform.get_transform_stats
* @availability stack since=7.5.0 stability=stable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ import { Id } from '@_types/common'
import { Duration } from '@_types/Time'

/**
* Previews a transform.
* Preview a transform.
* Generates a preview of the results that you will get when you create a transform with the same configuration.
*
* It returns a maximum of 100 results. The calculations are based on all the current data in the source index. It also
* generates a list of mappings and settings for the destination index. These values are determined based on the field
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import { Id, Metadata } from '@_types/common'
import { Duration } from '@_types/Time'

/**
* Create a transform.
* Creates a transform.
*
* A transform copies data from source indices, transforms it, and persists it into an entity-centric destination index. You can also think of the destination index as a two-dimensional tabular data structure (known as
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import { RequestBase } from '@_types/Base'
import { Id } from '@_types/common'

/**
* Reset a transform.
* Resets a transform.
* Before you can reset it, you must stop it; alternatively, use the `force` query parameter.
* If the destination index was created by the transform, it is deleted.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ import { Id } from '@_types/common'
import { Duration } from '@_types/Time'

/**
* Schedules now a transform.
* Schedule a transform to start now.
* Instantly runs a transform to process data.
*
* If you _schedule_now a transform, it will process the new data instantly,
* without waiting for the configured frequency interval. After _schedule_now API is called,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import { Id } from '@_types/common'
import { Duration } from '@_types/Time'

/**
* Start a transform.
* Starts a transform.
*
* When you start a transform, it creates the destination index if it does not already exist. The `number_of_shards` is
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import { Name } from '@_types/common'
import { Duration } from '@_types/Time'

/**
* Stop transforms.
* Stops one or more transforms.
* @rest_spec_name transform.stop_transform
* @availability stack since=7.5.0 stability=stable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import { Id, Metadata } from '@_types/common'
import { Duration } from '@_types/Time'

/**
* Update a transform.
* Updates certain properties of a transform.
*
* All updated properties except `description` do not take effect until after the transform starts the next checkpoint,
Expand Down

0 comments on commit c3dcedf

Please sign in to comment.