Skip to content

Commit

Permalink
Merge branch 'release/2024.6.27'
Browse files Browse the repository at this point in the history
  • Loading branch information
jheredianet committed Jun 27, 2024
2 parents 8d9ce5a + a2cc994 commit dc1b1bc
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dashboards/DatabaseDashboadInfo.json
Original file line number Diff line number Diff line change
Expand Up @@ -1180,7 +1180,7 @@
"format": "table",
"hide": false,
"rawQuery": true,
"rawSql": "SELECT '2024.6.24' AS \"Current Version\"",
"rawSql": "SELECT '2024.6.27' AS \"Current Version\"",
"refId": "DashboardVersion",
"sql": {
"columns": [
Expand Down
47 changes: 42 additions & 5 deletions dashboards/RangeDegradation.json
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
"viz": false
},
"insertNulls": false,
"lineInterpolation": "linear",
"lineInterpolation": "smooth",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
Expand Down Expand Up @@ -205,7 +205,6 @@
"y": 0
},
"id": 38,
"interval": "1M",
"options": {
"legend": {
"calcs": [
Expand All @@ -232,7 +231,7 @@
"format": "time_series",
"hide": false,
"rawQuery": true,
"rawSql": "SELECT $__time(cp.start_date), \r\n (cp.end_[[preferred_range]]_range_km / cp.end_battery_level * 100) AS \"range\",\r\n convert_km(p.odometer::numeric,'$length_unit') AS \"Odometer [[[length_unit]]]\"\r\nFROM charging_processes cp\r\n INNER JOIN positions p ON cp.position_id = p.id\r\nWHERE $__timeFilter(cp.start_date) and cp.car_id = $car_id\r\nand cp.duration_min > 10 \r\nORDER by cp.start_date\r\n",
"rawSql": "SELECT $__time(cp.start_date), \r\n convert_km((cp.end_[[preferred_range]]_range_km / cp.end_battery_level * 100)::numeric,'$length_unit') AS \"range\",\r\n convert_km(p.odometer::numeric,'$length_unit') AS \"Odometer [[[length_unit]]]\"\r\nFROM charging_processes cp\r\n INNER JOIN positions p ON cp.position_id = p.id\r\nWHERE $__timeFilter(cp.start_date) and cp.car_id = $car_id\r\nand cp.duration_min > 10 \r\nORDER by cp.start_date\r\n",
"refId": "A",
"sql": {
"columns": [
Expand Down Expand Up @@ -261,7 +260,7 @@
"format": "time_series",
"hide": false,
"rawQuery": true,
"rawSql": "SELECT $__timeGroup(cp.start_date, $__interval) AS time, \r\n AVG(cp.end_[[preferred_range]]_range_km / cp.end_battery_level * 100) AS \"Max [[preferred_range]] range ($__interval avg) [[[length_unit]]]\"\r\nFROM charging_processes cp\r\nWHERE $__timeFilter(cp.start_date) and cp.car_id = $car_id\r\nand cp.duration_min > 10 \r\nGROUP BY 1\r\nORDER BY 1",
"rawSql": "SELECT $__timeGroup(cp.start_date, $interval) AS time, \r\n AVG(convert_km((cp.end_[[preferred_range]]_range_km / cp.end_battery_level * 100)::numeric,'$length_unit')) AS \"Max [[preferred_range]] range ($interval avg) [[[length_unit]]]\"\r\nFROM charging_processes cp\r\nWHERE $__timeFilter(cp.start_date) and cp.car_id = $car_id\r\nand cp.duration_min > 10 \r\nGROUP BY 1\r\nORDER BY 1",
"refId": "B",
"sql": {
"columns": [
Expand Down Expand Up @@ -772,6 +771,44 @@
"tagsQuery": "",
"type": "query",
"useTags": false
},
{
"current": {
"selected": true,
"text": "15d",
"value": "15d"
},
"hide": 0,
"includeAll": false,
"label": "Interval AVG",
"multi": false,
"name": "interval",
"options": [
{
"selected": false,
"text": "1d",
"value": "1d"
},
{
"selected": false,
"text": "7d",
"value": "7d"
},
{
"selected": true,
"text": "15d",
"value": "15d"
},
{
"selected": false,
"text": "30d",
"value": "30d"
}
],
"query": "1d,7d,15d,30d ",
"queryValue": "",
"skipUrlSync": false,
"type": "custom"
}
]
},
Expand All @@ -786,6 +823,6 @@
"timezone": "browser",
"title": "Range Degradation",
"uid": "jchmRiqUfXgm",
"version": 1,
"version": 3,
"weekStart": ""
}

0 comments on commit dc1b1bc

Please sign in to comment.