Skip to content

Commit 084bd5b

Browse files
authored
x-pack/plugin/core: rename double_metrics template (#103033)
* x-pack/plugin/core: rename double_metrics template Rename double_metrics to float_metrics, and create a new double_metrics (with lower priority) that has no match_mapping_type. The new one is intended to be used with the dynamic_templates request parameter.
1 parent 72efee2 commit 084bd5b

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

docs/changelog/103033.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 103033
2+
summary: "X-pack/plugin/core: rename `double_metrics` template"
3+
area: Data streams
4+
type: enhancement
5+
issues: []

x-pack/plugin/apm-data/src/yamlRestTest/resources/rest-api-spec/test/10_apm.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ setup:
175175
full_name: double_metric
176176
mapping:
177177
double_metric:
178-
type: float
178+
type: double
179179
index: false
180180
summary_metric:
181181
full_name: summary_metric

x-pack/plugin/core/template-resources/src/main/resources/[email protected]

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,22 @@
1212
}
1313
},
1414
{
15-
"double_metrics": {
15+
"float_metrics": {
1616
"match_mapping_type": "double",
1717
"mapping": {
1818
"type": "float",
1919
"index": false
2020
}
2121
}
2222
},
23+
{
24+
"double_metrics": {
25+
"mapping": {
26+
"type": "double",
27+
"index": false
28+
}
29+
}
30+
},
2331
{
2432
"histogram_metrics": {
2533
"mapping": {

0 commit comments

Comments
 (0)