This plugin will flatten semver versions in the specified properties.
Configuration
Option | Description |
---|---|
comma separated properties to explode version number from Type: string Required: True | my_version_number,app_version |
Using our REST API you can create this transformation like so:
Terminal
# Create a new destinationcurl --location 'https://us.i.posthog.com/api/environments/:project_id/hog_functions' \--header 'Content-Type: application/json' \--header 'Authorization: Bearer <POSTHOG_PERSONAL_API_KEY>' \--data '{"type": "transformation","name": "SemVer Flattener","inputs": {"properties": {"value": ""}},"enabled": true,"template_id": "plugin-semver-flattener-plugin"}'