Discover JSON field paths and types for a mongo.changes collection
POST
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
jwtheader
AuthorizationBearer <JWT>application/json- body
coll_name*stringLength
1 <= lengthapplication/json- response
db_name*stringcoll_name*stringtotal_paths*integerRange
-9007199254740991 <= value <= 9007199254740991schema*array<>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 } ]}