Change-Id: Ia42fb318373388f27d5b1209d5f625612e1f9126
Signed-off-by: Luis Gomez <ecelgp@gmail.com>
+# Clear .kibana index before pushing visualizations
+try:
+ index = '.kibana'
+ res = es.indices.delete(index=index)
+except Exception as e:
+ print(e)
+ # raise e
+ print('Unable to push data to ElasticSearch')
+
+
# Create and push index-pattern to be used by visualizations
INDEX_PATTERN_BODY = {
# Create and push index-pattern to be used by visualizations
INDEX_PATTERN_BODY = {
position: left
title: No. of test cases
series:
position: left
title: No. of test cases
series:
- pass:
- data_type: histogram
- mode: stacked
- field: pass-tests
- label: Pass tests
- schema: metric
- value_axis: 1
- color: green
fail:
data_type: histogram
mode: stacked
fail:
data_type: histogram
mode: stacked
schema: metric
value_axis: 1
color: red
schema: metric
value_axis: 1
color: red
+ pass:
+ data_type: histogram
+ mode: stacked
+ field: pass-tests
+ label: Pass tests
+ schema: metric
+ value_axis: 1
+ color: green
build:
field: test-run
label: Build Number
build:
field: test-run
label: Build Number