From fb2b9e3ef7cde105cca50f714d636e375d8939a8 Mon Sep 17 00:00:00 2001 From: James Rodewig <40268737+jrodewig@users.noreply.github.com> Date: Thu, 19 Nov 2020 09:51:03 -0500 Subject: [PATCH] [DOCS] Document get data stream API's _meta prop (#65221) --- docs/reference/indices/get-data-stream.asciidoc | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/docs/reference/indices/get-data-stream.asciidoc b/docs/reference/indices/get-data-stream.asciidoc index 50768b9350ac1..0e1e916f68c9d 100644 --- a/docs/reference/indices/get-data-stream.asciidoc +++ b/docs/reference/indices/get-data-stream.asciidoc @@ -40,6 +40,9 @@ PUT /_index_template/my-index-template "settings": { "index.lifecycle.name": "my-lifecycle-policy" } + }, + "_meta": { + "my-meta-field": "foo" } } @@ -136,6 +139,12 @@ Universally unique identifier (UUID) for the index. Current <> for the data stream. This number acts as a cumulative count of the stream's rollovers, starting at `1`. +`_meta`:: +(object) +Custom metadata for the stream, copied from the `_meta` object of the +stream's matching <>. If empty, +the response omits this property. + `status`:: (string) <> of the data stream. @@ -207,6 +216,9 @@ The API returns the following response: } ], "generation": 2, + "_meta": { + "my-meta-field": "foo" + }, "status": "GREEN", "template": "my-index-template", "ilm_policy": "my-lifecycle-policy", @@ -224,6 +236,9 @@ The API returns the following response: } ], "generation": 1, + "_meta": { + "my-meta-field": "foo" + }, "status": "YELLOW", "template": "my-index-template", "ilm_policy": "my-lifecycle-policy",