Skip to content

Commit 02db0ac

Browse files
committed
Fixes format.
1 parent b91c04f commit 02db0ac

10 files changed

+21
-11
lines changed

specification/indices/add_block/IndicesAddBlockResponseExample1.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@ summary: A successful response for adding an index block to an index.
22
description: ''
33
type: response
44
response_code: 200
5-
value: "{\n \"acknowledged\" : true,\n \"shards_acknowledged\" : true,\n \"indices\"\
5+
value:
6+
"{\n \"acknowledged\" : true,\n \"shards_acknowledged\" : true,\n \"indices\"\
67
\ : [ {\n \"name\" : \"my-index-000001\",\n \"blocked\" : true\n } ]\n}"

specification/indices/clone/indicesCloneRequestExample1.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@ summary: Clone an existing index.
22
method_request: POST /my_source_index/_clone/my_target_index
33
description: 'The API accepts `settings` and `aliases` parameters for the target index.'
44
type: request
5-
value: "{\n \"settings\": {\n \"index.number_of_shards\": 5\n },\n \"aliases\"\
5+
value:
6+
"{\n \"settings\": {\n \"index.number_of_shards\": 5\n },\n \"aliases\"\
67
: {\n \"my_search_indices\": {}\n }\n}"

specification/indices/close/indicesCloseResponseExample1.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@ summary: A successful response for closing an index.
22
description: ''
33
type: response
44
response_code: 200
5-
value: "{\n \"acknowledged\": true,\n \"shards_acknowledged\": true,\n \"indices\"\
5+
value:
6+
"{\n \"acknowledged\": true,\n \"shards_acknowledged\": true,\n \"indices\"\
67
: {\n \"my-index-000001\": {\n \"closed\": true\n }\n }\n}"

specification/indices/create/indicesCreateRequestExample1.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@ summary: Creates an index.
22
method_request: PUT /my-index-000001
33
description: This request specifies the `number_of_shards` and `number_of_replicas`.
44
type: request
5-
value: "{\n \"settings\": {\n \"number_of_shards\": 3,\n \"number_of_replicas\"\
6-
: 2\n }\n}"
5+
value:
6+
"{\n \"settings\": {\n \"number_of_shards\": 3,\n \"number_of_replicas\"\
7+
: 2\n }\n}"

specification/indices/create/indicesCreateRequestExample2.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@ summary: Creates an index with mapping.
22
method_request: PUT /test
33
description: You can provide mapping definitions in the create index API requests.
44
type: request
5-
value: "{\n \"settings\": {\n \"number_of_shards\": 1\n },\n \"mappings\": {\n\
5+
value:
6+
"{\n \"settings\": {\n \"number_of_shards\": 1\n },\n \"mappings\": {\n\
67
\ \"properties\": {\n \"field1\": { \"type\": \"text\" }\n }\n }\n}"

specification/indices/data_streams_stats/indicesDataStreamStatsResponseExample1.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ summary: A successful response for retrieving statistics for a data stream.
22
description: ''
33
type: response
44
response_code: 200
5-
value: "{\n \"_shards\": {\n \"total\": 10,\n \"successful\": 5,\n \"failed\"\
5+
value:
6+
"{\n \"_shards\": {\n \"total\": 10,\n \"successful\": 5,\n \"failed\"\
67
: 0\n },\n \"data_stream_count\": 2,\n \"backing_indices\": 5,\n \"total_store_size\"\
78
: \"7kb\",\n \"total_store_size_bytes\": 7268,\n \"data_streams\": [\n {\n\
89
\ \"data_stream\": \"my-data-stream\",\n \"backing_indices\": 3,\n \

specification/indices/explain_data_lifecycle/IndicesExplainDataLifecycleResponseExample1.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ summary: A successful response for retrieving data stream lifecycle status for a
22
description: ''
33
type: response
44
response_code: 200
5-
value: "{\n \"indices\": {\n \".ds-metrics-2023.03.22-000001\": {\n \"index\"\
5+
value:
6+
"{\n \"indices\": {\n \".ds-metrics-2023.03.22-000001\": {\n \"index\"\
67
\ : \".ds-metrics-2023.03.22-000001\",\n \"managed_by_lifecycle\" : true,\n\
78
\ \"index_creation_date_millis\" : 1679475563571,\n \"time_since_index_creation\"\
89
\ : \"843ms\",\n \"rollover_date_millis\" : 1679475564293,\n \"time_since_rollover\"\

specification/indices/get_data_lifecycle/IndicesGetDataLifecycleResponseExample1.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ summary: A successful response of getting the lifecycle of a set of data streams
22
description: ''
33
type: response
44
response_code: 200
5-
value: "{\n \"data_streams\": [\n {\n \"name\": \"my-data-stream-1\",\n \
5+
value:
6+
"{\n \"data_streams\": [\n {\n \"name\": \"my-data-stream-1\",\n \
67
\ \"lifecycle\": {\n \"enabled\": true,\n \"data_retention\":\
78
\ \"7d\"\n }\n },\n {\n \"name\": \"my-data-stream-2\",\n \"\
89
lifecycle\": {\n \"enabled\": true,\n \"data_retention\": \"7d\"\n\

specification/indices/get_data_stream/indicesGetDataStreamResponseExample1.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ summary: A successful response for retrieving information about a data stream.
22
description: ''
33
type: response
44
response_code: 200
5-
value: "{\n \"data_streams\": [\n {\n \"name\": \"my-data-stream\",\n \
5+
value:
6+
"{\n \"data_streams\": [\n {\n \"name\": \"my-data-stream\",\n \
67
\ \"timestamp_field\": {\n \"name\": \"@timestamp\"\n },\n \"\
78
indices\": [\n {\n \"index_name\": \".ds-my-data-stream-2099.03.07-000001\"\
89
,\n \"index_uuid\": \"xCEhwsp8Tey0-FLNFYVwSg\",\n \"prefer_ilm\"\

specification/indices/put_data_lifecycle/IndicesPutDataLifecycleRequestExample2.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ summary: Configures a data stream lifecycle.
22
method_request: PUT _data_stream/my-weather-sensor-data-stream/_lifecycle
33
description: This example configures two downsampling rounds.
44
type: request
5-
value: "{\n \"downsampling\": [\n {\n \"after\": \"1d\",\n \"\
5+
value:
6+
"{\n \"downsampling\": [\n {\n \"after\": \"1d\",\n \"\
67
fixed_interval\": \"10m\"\n },\n {\n \"after\": \"7d\",\n \
78
\ \"fixed_interval\": \"1d\"\n }\n ]\n}"

0 commit comments

Comments
 (0)