Transformations

List transformation models

Changed on
get/models/transformations

Request

  • Base URL: http://localhost:8080/api/v1
  • URL: http://localhost:8080/api/v1/models/transformations
  • Auth: none declared

Query parameters

databasestring

Filter by database name

type'scheduled' | 'incremental'

Filter by transformation type

status'success' | 'failed' | 'running' | 'pending'

Filter by last run status

Response

List of transformation models

totalinteger required

Example response

{
  "models": [
    {
      "id": "analytics.daily_active_users",
      "database": "analytics",
      "table": "daily_active_users",
      "description": "Daily aggregation of unique active users",
      "content_type": "sql",
      "content": "SELECT\n  toDate(event_time) AS date,\n  uniqExact(user_id) AS active_users\nFROM sources.events\nWHERE event_time >= {{ start_time }}\n  AND event_time < {{ end_time }}\nGROUP BY date\n",
      "tags": [
        "analytics",
        "daily"
      ],
      "depends_on": [
        "ethereum.beacon_blocks",
        [
          "source1.data",
          "source2.data"
        ],
        "analytics.hourly_stats"
      ],
      "schedule": "@every 5m"
    }
  ]
}

Changes

    • info

      added the optional property ////// to the response with the status

    • info

      added the optional property ////// to the response with the status

    • info

      added the optional property /// to the response with the status