Insight
Last updated
Last updated
Insights are real-time widgets that you can add to each of your projects. They are use-case agnostic and can be used to display any information that you want in real-time.
POST
https://api.logsnag.com/v1/insight
Insights are real-time events such as KPI, performance, and other metrics that are not captured as a regular event. You can publish them periodically or as soon as they occur and the latest value will be stored in LogSnag.
Important: Fields ending with an *
are required in your request!
For each insight, the title should remain the same across all updates. However, you may change the value or the icon depending on the status of the insight. For example, if you decide to display the status of a service, you can change the icon to 🟢 if the service is up and 🔴 if it is down.
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Content-Type
String
application/json
Authorization
String
Bearer <TOKEN>
project*
String
Project name
title*
String
Insight title
value*
String, Number
Insight value
icon
Emoji
Single emoji as the insight icon