0.0.4-alpha1 • Published 3 years ago

avo-dbt v0.0.4-alpha1

Weekly downloads
-
License
Ms-PL
Repository
github
Last release
3 years ago

avo-dbt

The avo-dbt library allows you to take your Avo Tracking Plan—events and metrics—and generate dbt models and tests to help you validate raw data and simplify visualising your metrics.

Prerquisites

Download your Avo tracking plan as a JSON

OR

Open a metric and download it's JSON

OR

Fetch your schema from the Avo API (coming soon)

Don't have an account yet? Head over to avo.app/onboarding to get started if you don't have an account yet.

Install the package from NPM (Python coming soon)

npm install avo-dbt

Commands

Generate Event

avo-dbt generate-event <eventId> <pathToAvoFile>

Takes the event from your avo file and creates models and tests for it on a yaml format that is printed to the standard output.

Generate Metric

avo-dbt generate-metric <metricId> <pathToAvoFile>

Finds the metric in your Avo json file and creates models and tests for each event in the metric and finally the funnel itself to the standard output on yaml format.

Developing

Is something missing or could be improved? Reach out to us or open up a Pull Request yourself.

Test

npm test
npm run <script>