Skip to content

Commit

Permalink
perf: exclude streaming date when getting battery level (#4286)
Browse files Browse the repository at this point in the history
  • Loading branch information
swiffer authored Oct 21, 2024
1 parent 944c074 commit d5cb2c6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions grafana/dashboards/overview.json
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@
"group": [],
"metricColumn": "none",
"rawQuery": true,
"rawSql": "(SELECT battery_level, date\nFROM positions\nWHERE car_id = $car_id\nORDER BY date DESC\nLIMIT 1)\nUNION\nSELECT battery_level, date\nFROM charges c\nJOIN charging_processes p ON p.id = c.charging_process_id\nWHERE $__timeFilter(date) AND p.car_id = $car_id\nORDER BY date DESC\nLIMIT 1",
"rawSql": "(SELECT battery_level, date\nFROM positions\nWHERE car_id = $car_id and ideal_battery_range_km is not null\nORDER BY date DESC\nLIMIT 1)\nUNION\nSELECT battery_level, date\nFROM charges c\nJOIN charging_processes p ON p.id = c.charging_process_id\nWHERE $__timeFilter(date) AND p.car_id = $car_id\nORDER BY date DESC\nLIMIT 1",
"refId": "A",
"select": [
[
Expand Down Expand Up @@ -2167,6 +2167,6 @@
"timezone": "",
"title": "Overview",
"uid": "kOuP_Fggz",
"version": 10,
"version": 13,
"weekStart": ""
}
}

0 comments on commit d5cb2c6

Please sign in to comment.