Skip to content

Download Data Tags

Insights & Data Tags

In the Kelvin UI and in the Kelvin SDK, Data Tags are now known as Insights.

In the Kelvin SDK, the Data Tag names are deprecated in favor of the Insight names.

The Kelvin API and the Kelvin API Client (Python) still use the Data Tag names, so the examples on this page use them too.

Insights Management

You can also manage your insights using the Kelvin SDK and Kelvin API.

You can read all the details in the Platform Administration in the Insights section.

Available Guides

Reference:

Field Description
start_date Start date for the Data Tag. Time is based on UTC timezone, formatted in RFC 3339.
end_date End date for the Data Tag. Time is based on UTC timezone, formatted in RFC 3339.
tag_name Tag name to categorize the Data Tag
resource The Asset that this Data Tag is related to. This is in KRN format (e.g. krn:asset:bp_01)
source The process that created this Data Tag. This can be a user or an automated process like a workload, Applications, Docker Apps, etc. This is KRN format.
description Detailed description of the Data Tag.
contexts A list of associated resources with this Data Tag. This can be a Data Stream, Applications or any other valid resource in the Kelvin Platform.
acceptance accepted, or snoozed while the Insight type is snoozed for the Asset.

To list only some Data Tags by acceptance, add acceptance to the request with accepted, snoozed or both. If you do not set it, all the Data Tags are returned.

Download Data Tags for an Asset

In this example we will retrieve all Data Tags for an Asset.

You can download a range of Data Tag information from the Data Explorer page.

To do this go to the Data Explorer page.

Select the Asset.

Select one or more Data Streams that you want to download the related information.

Choose a time period.

Then click on the download button.

Select the Export Insights option.

And finally confirm the download by clicking on the Okay button.

API cURL Example
curl -X "POST" \
  "https://<url.kelvin.ai>/api/v4/datatags/list" \
  -H "Authorization: Bearer <Your Current Token>" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{
        "start_date": "2025-07-01T12:00:00.000Z",
        "end_date": "2025-08-01T12:00:00.000Z",
        "resources": [
          "krn:asset:pcp_01"
        ]
    }'

The response will look like this;

API cURL Example Response
{
   "pagination":{
      "next_page":null,
      "previous_page":null
   },
   "data":[
      {
         "id":"80d9c4f1-9aa6-4ac8-9b31-18f49640b282",
         "start_date":"2025-07-19T14:40:14.98Z",
         "end_date":"2025-07-20T02:40:14.98Z",
         "tag_name":"Maintenance event",
         "resource":"krn:asset:pcp_01",
         "source":"krn:user:demo@kelvin.ai",
         "description":null,
         "contexts":[],
         "created":"2025-04-20T13:48:15.09811Z",
         "updated":"2025-04-20T13:48:15.09811Z"
      }
   ]
}
API Client (Python) Example
from kelvin.api.client import Client

# Login
client = Client(url="https://<url.kelvin.ai>", username="<your_username>")
client.login(password="<your_password>")

# List all Data Tags
response = client.data_tag.list_data_tag(
    data={
        "start_date": "2025-07-01T12:00:00.000Z",
        "end_date": "2025-08-01T12:00:00.000Z",
        "resources": [
            "krn:asset:pcp_01",
        ],
    }
)

# Convert the response into a Pandas DataFrame
df = response.to_df()

# Print the result
print(df)

The response will look like this;

API Client (Python) Example Response
1
2
3
4
                                     id                        start_date                          end_date           tag_name  ... description contexts                           created                           updated
0  80d9c4f1-9aa6-4ac8-9b31-18f49640b282  2025-04-19T14:40:14.980000+00:00  2025-04-20T02:40:14.980000+00:00  Maintenance event  ...        None       []  2025-04-20T13:48:15.098110+00:00  2025-04-20T13:48:15.098110+00:00

[1 rows x 10 columns]