Skip to content

Commit 2c1779b

Browse files
committed
Add indices.get_data_lifecycle_stats
1 parent 97867a6 commit 2c1779b

File tree

9 files changed

+388
-1
lines changed

9 files changed

+388
-1
lines changed

docs/overlays/elasticsearch-openapi-overlays.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,4 +391,14 @@ actions:
391391
application/json:
392392
examples:
393393
indicesLegacyPutTemplateRequestExample1:
394-
$ref: "../../specification/indices/put_template/indicesPutTemplateRequestExample1.yaml"
394+
$ref: "../../specification/indices/put_template/indicesPutTemplateRequestExample1.yaml"
395+
- target: "$.paths['/_lifecycle/stats']['get']"
396+
description: "Add examples for get features operation"
397+
update:
398+
responses:
399+
200:
400+
content:
401+
application/json:
402+
examples:
403+
dataStreamLifecycleStatsResponseExample1:
404+
$ref: "../../specification/indices/get_data_lifecycle_stats/IndicesGetDataLifecycleStatsResponseExample1.yaml"

output/openapi/elasticsearch-openapi.json

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

output/schema/schema.json

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

output/typescript/types.ts

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

specification/_doc_ids/table.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ convert-processor,https://www.elastic.co/guide/en/elasticsearch/reference/{branc
118118
cron-expressions,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/api-conventions.html#api-cron-expressions
119119
csv-processor,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/csv-processor.html
120120
data-processor,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/date-processor.html
121+
data-stream-lifecycle-stats,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/data-streams-get-lifecycle-stats.html
121122
data-stream-path-param,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/indices-create-data-stream.html#indices-create-data-stream-api-path-params
122123
data-streams,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/data-streams.html
123124
date-index-name-processor,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/date-index-name-processor.html
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"indices.get_data_lifecycle_stats": {
3+
"documentation": {
4+
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/data-streams-get-lifecycle-stats.html",
5+
"description": "Get data stream lifecycle statistics."
6+
},
7+
"stability": "stable",
8+
"visibility": "public",
9+
"headers": {
10+
"accept": ["application/json"]
11+
},
12+
"url": {
13+
"paths": [
14+
{
15+
"path": "/_lifecycle/stats",
16+
"methods": ["GET"]
17+
}
18+
]
19+
}
20+
}
21+
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
/*
2+
* Licensed to Elasticsearch B.V. under one or more contributor
3+
* license agreements. See the NOTICE file distributed with
4+
* this work for additional information regarding copyright
5+
* ownership. Elasticsearch B.V. licenses this file to you under
6+
* the Apache License, Version 2.0 (the "License"); you may
7+
* not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
20+
import { RequestBase } from '@_types/Base'
21+
22+
/**
23+
* Get data stream lifecycle stats.
24+
* Get statistics about the data streams that are managed by a data stream lifecycle.
25+
* @rest_spec_name indices.get_data_lifecycle_stats
26+
* @availability stack since=8.12.0 stability=stable
27+
* @cluster_privileges monitor
28+
* @doc_tag data stream
29+
* @doc_id data-stream-lifecycle-stats
30+
*/
31+
export interface Request extends RequestBase {}

0 commit comments

Comments
 (0)