[GET] evGraph
/api/manager/evGraph
EVGraphRequestDTO
Attributes:
Name | Type | Description |
---|---|---|
site_id |
str
|
id of the site |
start |
str
|
start datetime of the graph |
end |
str
|
end datetime of the graph |
tz |
str
|
timezone of the request |
graph_type |
GraphTypeEnum
|
line / bar graph |
meter |
str
|
name of the charger meter |
charger |
str
|
name of the charger |
user_id |
str
|
id of the user logged in |
Notes
- The only optional parameter is the
charger
- If the difference between the start and end values are more than a day, the interval between datapoints will be 15 minutes for the line graph and 1 day for the bar graph.
EVGraphResponseDTO
Attributes:
Name | Type | Description |
---|---|---|
data |
list
|
list of lists containing the data points |
order |
list
|
list of strings containing the order of the data points |
statistics |
EVGraphStatisticsDTO
|
dict containing the statistics of the data points |
The statistics object will contain the following keys:
EVGraphStatisticsDTO
Attributes:
Name | Type | Description |
---|---|---|
duration |
list
|
duration of transactions based on ORDER |
total_energy |
list
|
list of total energy based on ORDER |
latest_value |
list
|
list of latest meter readings based on ORDER |
peak_value |
list
|
list of peak meter readings based on ORDER |
peak_time |
list
|
list of peak meter readings time based on ORDER |
Notes
- order represents the arrangement of the data points inside the data array. The first datapoint will always be a string literal of the datetime
- The last element of any array will always be the total sum of the values of the datapoints before it