Skip to content

Commit

Permalink
spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
martijnvg committed Aug 24, 2023
1 parent 688443c commit a335650
Showing 1 changed file with 55 additions and 55 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -226,55 +226,56 @@ public void testTsdbDataStreamsNanos() throws Exception {
public void testTsbdDataStreamComponentTemplateWithAllSettingsAndMappings() throws Exception {
// Different component and index template. All settings and mapping are in component template.
final String COMPONENT_TEMPLATE_WITH_SETTINGS_AND_MAPPINGS = """
{
"template": {
"settings":{
"index": {
"mode": "time_series",
"routing_path": ["metricset", "k8s.pod.uid"]
}
},
"mappings":{
"dynamic_templates": [
{
"labels": {
"path_match": "pod.labels.*",
"mapping": {
"type": "keyword",
"time_series_dimension": true
{
"template": {
"settings":{
"index": {
"mode": "time_series",
"routing_path": ["metricset", "k8s.pod.uid"]
}
},
"mappings":{
"dynamic_templates": [
{
"labels": {
"path_match": "pod.labels.*",
"mapping": {
"type": "keyword",
"time_series_dimension": true
}
}
}
}
],
"properties": {
"@timestamp" : {
"type": "date"
},
"metricset": {
"type": "keyword",
"time_series_dimension": true
},
"k8s": {
"properties": {
"pod": {
"properties": {
"uid": {
"type": "keyword",
"time_series_dimension": true
},
"name": {
"type": "keyword"
},
"ip": {
"type": "ip"
},
"network": {
"properties": {
"tx": {
"type": "long"
},
"rx": {
"type": "long"
],
"properties": {
"@timestamp" : {
"type": "date"
},
"metricset": {
"type": "keyword",
"time_series_dimension": true
},
"k8s": {
"properties": {
"pod": {
"properties": {
"uid": {
"type": "keyword",
"time_series_dimension": true
},
"name": {
"type": "keyword"
},
"ip": {
"type": "ip"
},
"network": {
"properties": {
"tx": {
"type": "long"
},
"rx": {
"type": "long"
}
}
}
}
Expand All @@ -285,15 +286,14 @@ public void testTsbdDataStreamComponentTemplateWithAllSettingsAndMappings() thro
}
}
}
}
""";
""";
final String DELEGATE_TEMPLATE = """
{
"index_patterns": ["k8s*"],
"composed_of": ["custom_template"],
"data_stream": {
}
}""";
{
"index_patterns": ["k8s*"],
"composed_of": ["custom_template"],
"data_stream": {
}
}""";

// Delete and add new the templates:
var deleteRequest = new Request("DELETE", "/_index_template/1");
Expand Down

0 comments on commit a335650

Please sign in to comment.