product-usage

Metrics Devrev Ingest

POST
Ingest endpoint for DevRev metrics data from clients.

Request

This endpoint expects an object.
metrics
list of objectsRequired
Metrics data received from Dev orgs.
POST
1curl -X POST https://api.devrev.ai/metrics.devrev.ingest \
2 -H "Authorization: <apiKey>" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "metrics": [
6 {
7 "data_points": [
8 {
9 "timestamp": "2023-01-01T12:00:00Z",
10 "value": 1.1
11 }
12 ],
13 "name": "name",
14 "org_ref": "org_ref"
15 }
16 ]
17}'