elasticsearch: more tests (#64971)

* elasticsearch: more tests

* fix issue with uppercase refID on linux

---------

Co-authored-by: Todd Treece <todd.treece@grafana.com>
This commit is contained in:
Gábor Farkas
2023-03-20 14:50:26 +01:00
committed by GitHub
parent ee2dd62a1f
commit e1321f8721
13 changed files with 851 additions and 1 deletions
@@ -0,0 +1,111 @@
{
"took": 8,
"responses": [
{
"took": 8,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 142,
"relation": "eq"
},
"max_score": null,
"hits": []
},
"aggregations": {
"2": {
"buckets": [
{
"key_as_string": "1679061180000",
"key": 1679061180000,
"doc_count": 12,
"1": {
"count": 12,
"min": 34,
"max": 45,
"avg": 39.5,
"sum": 474,
"sum_of_squares": 18866,
"variance": 11.916666666666666,
"variance_population": 11.916666666666666,
"variance_sampling": 13,
"std_deviation": 3.452052529534663,
"std_deviation_population": 3.452052529534663,
"std_deviation_sampling": 3.605551275463989,
"std_deviation_bounds": {
"upper": 46.40410505906932,
"lower": 32.59589494093068,
"upper_population": 46.40410505906932,
"lower_population": 32.59589494093068,
"upper_sampling": 46.711102550927976,
"lower_sampling": 32.288897449072024
}
}
},
{
"key_as_string": "1679061240000",
"key": 1679061240000,
"doc_count": 66,
"1": {
"count": 66,
"min": 46,
"max": 111,
"avg": 78.5,
"sum": 5181,
"sum_of_squares": 430661,
"variance": 362.9166666666667,
"variance_population": 362.9166666666667,
"variance_sampling": 368.5,
"std_deviation": 19.05037182489273,
"std_deviation_population": 19.05037182489273,
"std_deviation_sampling": 19.196353820452465,
"std_deviation_bounds": {
"upper": 116.60074364978546,
"lower": 40.39925635021454,
"upper_population": 116.60074364978546,
"lower_population": 40.39925635021454,
"upper_sampling": 116.89270764090493,
"lower_sampling": 40.10729235909507
}
}
},
{
"key_as_string": "1679061300000",
"key": 1679061300000,
"doc_count": 64,
"1": {
"count": 64,
"min": 112,
"max": 175,
"avg": 143.5,
"sum": 9184,
"sum_of_squares": 1339744,
"variance": 341.25,
"variance_population": 341.25,
"variance_sampling": 346.6666666666667,
"std_deviation": 18.472953201911167,
"std_deviation_population": 18.472953201911167,
"std_deviation_sampling": 18.618986725025255,
"std_deviation_bounds": {
"upper": 180.44590640382233,
"lower": 106.55409359617767,
"upper_population": 180.44590640382233,
"lower_population": 106.55409359617767,
"upper_sampling": 180.7379734500505,
"lower_sampling": 106.2620265499495
}
}
}
]
}
},
"status": 200
}
]
}