Skip to Content
Docs

Discover JSON field paths and types for a mongo.changes collection

POST
/metrics/solution/schema/discover

Infer JSON field paths and ClickHouse types from recent mongo.changes data (last 7 days). Useful for contextual:* collections. For native-object:* collections, prefer the platform object-type JSON Schema. Details: Solution Metrics AI Reference

Authorization

jwt
headerAuthorizationBearer <JWT>

Request Body

application/json
  1. body
coll_name*string
Length1 <= length

Response Body

application/json
  1. response
db_name*string
coll_name*string
total_paths*integer
Range-9007199254740991 <= value <= 9007199254740991
schema*array<>
Example Request
curl -X POST 'https://observability.your-tenant-id.my.contextual.io/api/v1/metrics/solution/schema/discover' \  -H 'Content-Type: application/json' \  -d '{  "coll_name": "string"}'
Example Response
{  "db_name": "string",  "coll_name": "string",  "total_paths": -9007199254740991,  "schema": [    {      "path": "string",      "type": "string",      "is_numeric": true,      "is_aggregatable": true,      "is_groupable": true    }  ]}