Metrics are real-time widgets that . They are versatile and can include icons, symbols, and be used to display any information you want in any of your projects.
Endpoint Url
POST
This endpoint allows you to send a metric to SaasHound.
Request Headers
ParameterTypeDescriptionRequired
Content-Type *string application/json Required
Authorization *string Bearer <TOKEN> Required
Request Params
ParameterTypeDescriptionRequired
project string The project associated with the metric Optional
title string The title of the metric Optional
value string | boolean | number The value of the metric. If increment is set to true, value will be updated by the new value Optional
icon emoji The icon associated with the metric Optional
symbol string The symbol associated with the metric, e.g. $, %, etc. Optional
increment boolean If true, the value will be incremented by the new value Optional
Response
Example Code
Incrementing Metric Values
When sending a metric, you can choose to increment the value of the metric by setting the increment property to true. This will add the value to the existing value of the metric.
For example, if you send a metric with a value of 1254 and then send another metric with a value of 5 and increment set to true, the value of the metric will be 1259.