[GET] generation
/api/graphs/generation
GenerationGraphRequestDTO
Attributes:
| Name | Type | Description |
|---|---|---|
site_id |
int
|
(str) id of the site |
start |
datetime
|
(str) start datetime in the format "YYYY-MM-DD HH:MM:SS" |
end |
datetime
|
(str) end datetime in the format "YYYY-MM-DD HH:MM:SS" |
graph_type |
GraphTypeEnum
|
(str) type of graph to display (line, bar) |
meter_id |
Optional[int]
|
Optional parameter that is passed if the graph required is solar meter vs its inverters otherwise it graphs all solar meters and its total |
NOTE: if component is an empty string, it means all components are selected
GenerationGraphResponseDTO
Attributes:
| Name | Type | Description |
|---|---|---|
data |
list
|
list of data points |
order |
list
|
list of the order of the data points |
statistics |
GenerationGraphStatisticsDTO
|
statistics for the graph |
GenerationGraphStatisticsDTO
Attributes:
| Name | Type | Description |
|---|---|---|
total_energy |
list
|
list of the total energy |
day_peak_time |
list
|
list of datetime values for the day peak |
day_peak_value |
list
|
list of the day peak values |
latest_value |
list
|
list of the latest values |
average_peak |
list
|
list of the average peak values |
max_peak_time |
list
|
list of datetime values for the max peak |
max_peak_value |
list
|
list of the max peak values |