Many of our customers get to a point in their usage of Alooma where they'd like to move their mappings into source control for change tracking.
To enable this, we rely on our programmatic access mechanism, the Alooma API (aka alooma.py). You can use the
api.set_mapping functions to get the mapping as JSON and set the mapping from the source control.
This is most commonly done by customers who have a production and a development environment, so the example below addresses that use case:
dev = alooma.Client(user, pass, account_name='dev_env_name')
prod = alooma.Client(user, pass, account_name='prod_env_name')
mapping = dev.get_mapping(event_type)
#Potentially modify mapping, e.g. using a different schema on Redshift, but this is pretty rare.
#Push mapping to source control (e.g. write the JSON to a local file that is in sync with a repo, but the methods here vary)
For any questions on source control of mappings, or anything else, contact us!