DataDog / schema

Datadog JSON Schemas
Apache License 2.0
22 stars 18 forks source link

[APM] Add semantic core JSON schema #28

Closed ichinaski closed 1 year ago

ichinaski commented 1 year ago

Adds minimalist PoC to generate JSON schemas on the semantic-core directory.

From the README:

semantic-core

Playground repo for the Semantic Core

Setup

python3 -m venv venv
source venv/bin/activate
pip install pydantic

Generate json schema

This will output a schema.json file in the [VERSION] directory:

python3 gen_semantic_defs.py [VERSION]

Example:

python3 gen_semantic_defs.py v1

creates the v1 directory if necessary, and writes the schema.json file.