Skip to main content
POST
/
{slug}
/
metrics
/
compute-bulk
Compute metrics in bulk
curl --request POST \
  --url https://api.dimred.com/api/v2/{slug}/metrics/compute-bulk \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '{
  "project_id": "<string>",
  "metric_ids": [
    "<string>"
  ],
  "payloads": [
    {
      "data_point_id": "<string>",
      "expected": "<any>",
      "output": "<any>",
      "input_data": "<any>"
    }
  ]
}'
{
  "results": [
    {
      "data_point_id": "<string>",
      "metrics": {}
    }
  ],
  "raw": [
    {
      "data_point_id": "<string>",
      "metric_tuples": [
        "<any>"
      ]
    }
  ]
}

Authorizations

X-API-Key
string
header
required

API key for authentication

Path Parameters

slug
string
required

Organization slug

Body

application/json
project_id
string
required

Project ID

metric_ids
string[]
required

List of metric IDs to compute

payloads
object[]
required

List of payloads to compute metrics for

Response

200 - application/json

Metrics computed successfully

results
object[]
required

Aggregated results

raw
object[]
required

Raw computation results

I