Download Timeseries
Available Guides
- Download Raw Timeseries Data
- Download Raw Timeseries Data to CSV file
- Download Aggregated Timeseries Data
Reference:
| Field | Description |
|---|---|
| resource | Asset / Data Stream pair in KRN format. The KRN format is krn:ad:<asset_name>/<data_stream_name> |
| payload | The data value |
| timestamp | Exact UTC time when the data value was recorded, formatted in ISO 8601. |
| data_type | Type of data stored, such as number, string, or boolean. |
| source | User, Workload or Application that created the data in the Cloud |
| fields | The field name keys for the data saved. By default this is just value |
| created | UTC time when the data was created, formatted in ISO 8601. |
| updated | UTC time when any of the data information was updated, formatted in ISO 8601. |
Download Raw Timeseries Data
You can export a range of data from the Data Explorer page.
To do this go to the Data Explorer page.
Select the Asset.
Select one Data Stream only.
Choose a time period.
Then click on the download button.
| API cURL Example | |
|---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | |
You will receive a response body with a status code of 200, indicating a successful operation.
For example, the response body might look like this:
| API cURL Example Response | |
|---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | |
We will convert the information into a Pandas DataFrame.
| API Client (Python) Example | |
|---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | |
The response will look something like this;
| API Client (Python) Example Response | |
|---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | |
Download Raw Timeseries Data to CSV file
You can download a range of data from the Data Explorer page.
You can only download the raw data. It is not possible in Kelvin UI to aggregate the data before downloading.
You will need to aggregate the data in a spreadsheet or other third party program.
To do this go to the Data Explorer page.
Select the Asset.
Select one Data Stream only.
Choose a time period.
Then click on the download button.
| API cURL Example | |
|---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | |
The data.csv file will look something like this;
| Sample Downloaded Timeseries Data CSV File | |
|---|---|
1 2 3 | |
We will save the information into a CSV file.
| API Client (Python) Example | |
|---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | |
The data.csv file will look something like this;
| API Client (Python) Example Response | |
|---|---|
1 2 3 | |
Download Aggregated Timeseries Data
In Time Series API, you can download a range of data either in a raw format or aggregated format. The type of aggregation possible depends on the Data Type for the Asset / Data Stream pair.
Available Aggregations:
| Data Type | Aggregate Option | Description |
|---|---|---|
| number | none | Raw data is returned |
| count | Counts the number of values within each time bucket. | |
| distinct | Returns distinct values within each time_bucket bucket. |
|
| integral | Calculates the area under the curve for each time_bucket bucket. |
|
| mean | Calculates the average value within each time bucket. | |
| median | Finds the middle value in each time bucket. | |
| mode | Identifies the most frequently occurring value in each time time_bucket. |
|
| spread | Represents the difference between the max and min values within each time time_bucket. |
|
| stddev | Measures variation within each time time_bucket. |
|
| sum | Adds up all the values within each time time_bucket. |
|
| string | none | Raw data is returned |
| count | Counts the number of values within each time_bucket bucket. |
|
| distinct | Returns distinct values within each time time_bucket. |
|
| mode | Identifies the most frequently occurring value in each time time_bucket. |
There are also the options to;
time_bucket: The window of data to aggregate, e.g. 5m, 1h (see https://golang.org/pkg/time/#ParseDuration for the acceptable formats)time_shift: The offset for each window.fill: allows you to fill missing points from a time bucket. It might be one of: none (default); null; linear (performs a linear regression); previous (uses the previous non-empty value); or an int.
In this example we will get the mean value per hour over a 24 hour period for an Asset / Data Stream pair. The Asset name is pcp_01 and the Data Stream name is casing_pressure.
It is not possible to export aggregated data from the Kelvin UI.
| API cURL Example | |
|---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | |
You will receive a response body with a status code of 200, indicating a successful operation.
For example, the response body might look like this:
| API cURL Example Response | |
|---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | |
We will convert the information into a Pandas DataFrame.
| API Client (Python) Example | |
|---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | |
The response will look something like this;
| API Client (Python) Example Response | |
|---|---|
1 2 3 4 5 6 7 8 9 10 | |




