Skip to content

Commit

Permalink
Updating the filter for supercharger (#2832)
Browse files Browse the repository at this point in the history
* Updating the filter for supercharger

Updating the where clause for geofence and address as some of the superchargers are named as SuperCharger.

* Update grafana/dashboards/charging-stats.json

Co-authored-by: Adrian Kumpf <8999358+adriankumpf@users.noreply.github.com>

Co-authored-by: Adrian Kumpf <8999358+adriankumpf@users.noreply.github.com>
  • Loading branch information
sultantariq and adriankumpf committed Jan 13, 2023
1 parent 3f33d9c commit 8928064
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion grafana/dashboards/charging-stats.json
Expand Up @@ -274,7 +274,7 @@
"group": [],
"metricColumn": "none",
"rawQuery": true,
"rawSql": "SELECT\n\tsum(cp.cost)\nFROM\n\tcharging_processes cp\nLEFT JOIN \n\taddresses addr ON addr.id = address_id\nLEFT JOIN\n geofences geo ON geo.id = geofence_id\nWHERE\n $__timeFilter(end_date)\n AND (addr.name LIKE '%Supercharger%' OR geo.name LIKE '%Supercharger%')\n\tAND cp.cost IS NOT NULL\n\tAND cp.car_id = $car_id;",
"rawSql": "SELECT\n\tsum(cp.cost)\nFROM\n\tcharging_processes cp\nLEFT JOIN \n\taddresses addr ON addr.id = address_id\nLEFT JOIN\n geofences geo ON geo.id = geofence_id\nWHERE\n $__timeFilter(end_date)\n AND (addr.name ILIKE '%supercharger%' OR geo.name ILIKE '%supercharger%')\n\tAND cp.cost IS NOT NULL\n\tAND cp.car_id = $car_id;",
"refId": "A",
"select": [
[
Expand Down

0 comments on commit 8928064

Please sign in to comment.