metrics
GET
https://lucidace.com /v1/projects/{project_id}/metric-groups Scope insight:readParameters
project_idstringpathrequiredlimitintegerquerycursorstringqueryCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/metric-groups"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"data": [
{
"created_at": "2024-01-01T00:00:00Z",
"created_by": "string",
"description": "string",
"id": "string",
"metric_ids": [
"string"
],
"name": "string",
"updated_at": "2024-01-01T00:00:00Z"
}
],
"next_cursor": "string"
}Schema
dataobject[]requiredShow child parameters
created_atstringrequiredcreated_bystringdescriptionstringrequiredidstringrequiredmetric_idsstring[]requiredSaved metric ids in display order.
namestringrequiredupdated_atstringrequirednext_cursorstring404
POST
https://lucidace.com /v1/projects/{project_id}/metric-groups Scope insight:writeParameters
project_idstringpathrequiredRequest body
application/json
descriptionstringmetric_idsstring[]requiredSaved metric ids, 1 to 50, no repeats.
namestringrequired{
"description": "string",
"metric_ids": [
"string"
],
"name": "string"
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/metric-groups" \
-H "Content-Type: application/json" \
-d '{"description":"string","metric_ids":["string"],"name":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201
Example
{
"created_at": "2024-01-01T00:00:00Z",
"created_by": "string",
"description": "string",
"id": "string",
"metric_ids": [
"string"
],
"name": "string",
"updated_at": "2024-01-01T00:00:00Z"
}Schema
created_atstringrequiredcreated_bystringdescriptionstringrequiredidstringrequiredmetric_idsstring[]requiredSaved metric ids in display order.
namestringrequiredupdated_atstringrequired400
403
404
409
GET
https://lucidace.com /v1/projects/{project_id}/metric-groups/{id} Scope insight:readParameters
project_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/metric-groups/{id}"TypeScript
Python
Go
PHP
Ruby
Java
PUT
https://lucidace.com /v1/projects/{project_id}/metric-groups/{id} Scope insight:writeParameters
project_idstringpathrequiredidstringpathrequiredRequest body
application/json
descriptionstringmetric_idsstring[]requiredSaved metric ids, 1 to 50, no repeats.
namestringrequired{
"description": "string",
"metric_ids": [
"string"
],
"name": "string"
}Code samples
cURL
curl -X PUT "https://lucidace.com/v1/projects/{project_id}/metric-groups/{id}" \
-H "Content-Type: application/json" \
-d '{"description":"string","metric_ids":["string"],"name":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
DELETE
https://lucidace.com /v1/projects/{project_id}/metric-groups/{id} Scope insight:writeParameters
project_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X DELETE "https://lucidace.com/v1/projects/{project_id}/metric-groups/{id}"TypeScript
Python
Go
PHP
Ruby
Java
Responses
204
403
404
GET
https://lucidace.com /v1/projects/{project_id}/metric-trees Scope insight:readParameters
project_idstringpathrequiredlimitintegerquerycursorstringqueryCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/metric-trees"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"data": [
{
"created_at": "2024-01-01T00:00:00Z",
"created_by": "string",
"description": "string",
"id": "string",
"name": "string",
"nodes": [
{}
],
"north_star": true,
"updated_at": "2024-01-01T00:00:00Z"
}
],
"next_cursor": "string"
}Schema
dataobject[]requiredShow child parameters
created_atstringrequiredcreated_bystringdescriptionstringrequiredidstringrequirednamestringrequirednodesobject[]required[{id, metric_id, label?, parent_id?, relation}], one root.north_starbooleanrequiredThe project's north-star tree (at most one).
updated_atstringrequirednext_cursorstring404
POST
https://lucidace.com /v1/projects/{project_id}/metric-trees Scope insight:writeParameters
project_idstringpathrequiredRequest body
application/json
descriptionstringnamestringrequirednodesNode[]requiredShow child parameters
idstringrequiredUnique within the tree, 1 to 64 characters.
labelstringmean_of_ratiosbooleanRatio metrics: the mean of the daily ratios instead of total over total.
metric_idstringrequiredA saved
proportion, mean or ratio metric.parent_idstringNull for the single root.
relationstringHow this node combines into its parent (ignored for the root).
north_starbooleanMake this the project's north-star tree (clears the flag on any other).
{
"description": "string",
"name": "string",
"nodes": [
{
"id": "string",
"label": "string",
"mean_of_ratios": true,
"metric_id": "string",
"parent_id": "string",
"relation": "sum"
}
],
"north_star": true
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/metric-trees" \
-H "Content-Type: application/json" \
-d '{"description":"string","name":"string","nodes":[{"id":"string","label":"string","mean_of_ratios":true,"metric_id":"string","parent_id":"string","relation":"sum"}],"north_star":true}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201
Example
{
"created_at": "2024-01-01T00:00:00Z",
"created_by": "string",
"description": "string",
"id": "string",
"name": "string",
"nodes": [
{}
],
"north_star": true,
"updated_at": "2024-01-01T00:00:00Z"
}Schema
created_atstringrequiredcreated_bystringdescriptionstringrequiredidstringrequirednamestringrequirednodesobject[]required[{id, metric_id, label?, parent_id?, relation}], one root.north_starbooleanrequiredThe project's north-star tree (at most one).
updated_atstringrequired400
403
404
GET
https://lucidace.com /v1/projects/{project_id}/metric-trees/north-star Scope insight:readParameters
project_idstringpathrequiredfromstringquerytostringquerycompare_fromstringquerycompare_tostringqueryCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/metric-trees/north-star"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 The north-star tree evaluated; null when the project has none yet
Example
{
"compare_range": {
"from": "2024-01-01T00:00:00Z",
"to": "2024-01-01T00:00:00Z"
},
"name": "string",
"nodes": [
{
"compare_value": 0,
"contribution": 0,
"delta": 0,
"delta_pct": 0,
"error": "string",
"id": "string",
"label": "string",
"metric_id": "string",
"metric_name": "string",
"parent_id": "string",
"relation": "sum",
"value": 0
}
],
"north_star": true,
"range": {
"from": "2024-01-01T00:00:00Z",
"to": "2024-01-01T00:00:00Z"
},
"tree_id": "string"
}Schema
compare_rangeobjectrequiredShow child parameters
fromstringrequiredtostringrequirednamestringrequirednodesNodeEvaluation[]requiredRoot first, then breadth first.
Show child parameters
compare_valuenumbercontributionnumberShare of the parent's change explained by this node (1.0 = all of it); null for the root,
driver nodes and parents that did not change.deltanumbervalue - compare_value.delta_pctnumberdelta / compare_value; null when the comparison value is zero.errorstringWhy the value is missing.
idstringrequiredlabelstringmetric_idstringrequiredmetric_namestringrequiredparent_idstringrelationstringrequiredHow a child node combines into its parent.
valuenumbernorth_starbooleanrequiredrangeobjectrequiredShow child parameters
fromstringrequiredtostringrequiredtree_idstringrequired400
503
GET
https://lucidace.com /v1/projects/{project_id}/metric-trees/{id} Scope insight:readParameters
project_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/metric-trees/{id}"TypeScript
Python
Go
PHP
Ruby
Java
Updated