curl --request GET \
--url https://app.herondata.io/api/rules/metrics \
--header 'x-api-key: <api-key>'[
{
"date_range": "last_180_days",
"description": "Total number of unique transactions",
"group": "transaction_metrics",
"label": "unique_transactions",
"unit": "count"
}
]Read all available metrics to define rules on
curl --request GET \
--url https://app.herondata.io/api/rules/metrics \
--header 'x-api-key: <api-key>'[
{
"date_range": "last_180_days",
"description": "Total number of unique transactions",
"group": "transaction_metrics",
"label": "unique_transactions",
"unit": "count"
}
]OK
The date range this metric covers
"last_180_days"
Human-readable description of the metric
"Total number of unique transactions"
The group/category this metric belongs to
"transaction_metrics"
The label/name of the metric
"unique_transactions"
The unit of measurement for this metric
"count"
Was this page helpful?