Adapters

Adapters let Vanity

Officially Supported

Community Supported

Have one out there? Open a PR to update these docs!

Building an Adapter

An adapter should inherit from AbstractAdapter . It should wrap an underlying connection to a datastore and implement an API that Vanity can use to store/access metrics and experiments.

A good place to start when creating your own adapter is to copy one of the adapters mentioned above and replace the client specific code with whatever client you are attempting to adapt.

The API for an adapter is divided into four categories: connections, metrics methods, experiment configuration methods and experiment data methods.

Connection methods

Metric methods

Experiment configuration methods

Experiment data methods

These ab_* methods interact with the underlying data of an experiment.