Introduction
Apex Clean Energy is creating a business intelligence dashboard to help asset managers, executives, and other internal teams track key performance indicators of a single site or fleet of sites.
To achieve this, Apex is currently collecting and sanitizing an array of
data points from a wide range of sources. These include data points around
generation, revenue, wind, and (increasingly) availability. This data is
processed on a continuous basis and fed into the KOR database.
The KOR database, and in particular the t_datapoint table will serve as the
basis for a majority of the intelligence provided through the dashboard. This
specification serves as the blueprint for the bridge required to span the gap
between the raw data being collected in KOR and displaying that information in
a compelling and delightful interface for real world consumption.
This specification dictates what the dashboard experience (the front end)
requires in order to function. How this data is queried in KOR and ultimately
prepared is beyond the scope of this document (at least initially).
Work in progress
This specification will continue to evolve over time. Contributions from the Apex team are welcome! To contribute directly, contact Justin Schroeder or Luan Nguyen at Braid for access to the private repository.
Data interface
The dashboard will be built to initially support visualizations for three key performance indicators: Wind speed, generation, and revenue. Once the initial dashboard has been created, it should be a relatively trivial process to add additional indicators provided there is supporting data. Data points for these indicators should be returned with identical structure outlined below.
Intervals
The underlying vector in the dashboard's data is time. While data sources may provide their contents with dramatically disparate regularity, the dashboard should, to a large degree, smooth out those irregularities by normalizing time and even interpolating when necessary. The three intervals that must be supported are:
- Monthly
- Daily
- Hourly
Note
There is potential for the granularity to increase over time. While these three intervals are strictly required, no assumptions should be made that the dashboard will be limited to these three.
Interface requirement
When the dashboard requests data for a single data set at a given interval the expectation is that the results will include exactly one data point for each interval – no more, no less. To accomplish this, data summary or interpolation may be necessary.
Summarizing data
The dashboard itself will not be able to perform data summarization beyond its ability to display final values to the end user. The data being fed to the dashboard should be already processed and ready for display for the requested interval. Depending on the data points and the granularity of the interval requested it is possible that different methods of aggregation will be required. Typically it's as simple as summing the data or averaging the data, however Apex should make the final determination on what kind of information makes the most sense to the target audience for a given data set at a given interval.
Interpolating data
In addition to data summary, it may at times be necessary to interpolate data for a more granular interval. A sparse but vital data point should still be represented at all time scales. A simple average should do for most cases, but it will be up to the Apex team to determine if a more complex interpolation is necessary.
Timestamps
Timestamps should represent the second at which a given interval begins. The interval's end point will be implicit from the current series interval duration. Additionally, timestamps should be formated in compliance with ISO 8601, normalized to UTC, with 1 minute specificity (at least).
// Example
2018-09-22T01:56:00+00:00
Structure
Data must be provided to the dashboard as JSON. Data points should be in
chronological order. Fields such as interval, metric, unit, start_at,
end_at are always required for each set of data. The source of the data
is optional, but can be as granular as a single turbine or as broad as a fleet
of sites. A sample structure for a single request would look like this:
{
"interval": "daily",
"start_at": "2018-05-08T04:00:00+00:00",
"end_at": "2018-05-14T04:00:00+00:00",
"metric": "generation",
"unit": "MWh",
"source": {
"site": "Hoopeston",
"collector": "CL-4332",
"turbine": "13"
},
"points": [
{
"timestamp": "2018-05-08T04:00:00+00:00",
"value": 2.376,
"tags": ["interpolated"]
},
{
"timestamp": "2018-05-09T04:00:00+00:00",
"value": 3.2
},
{
"timestamp": "2018-05-10T04:00:00+00:00",
"value": 2.8,
"tags": ["interpolated"]
},
{
"timestamp": "2018-05-11T04:00:00+00:00",
"value": 2.8,
"tags": ["interpolated"]
},
{
"timestamp": "2018-05-12T04:00:00+00:00",
"value": 2.8,
"tags": ["interpolated"]
},
{
"timestamp": "2018-05-13T04:00:00+00:00",
"value": 2.8,
"tags": ["interpolated"]
},
{
"timestamp": "2018-05-14T04:00:00+00:00",
"value": 2.4
}
]
}