Uploaded image for project: 'Red Hat 3scale API Management'
  1. Red Hat 3scale API Management
  2. THREESCALE-3158

APIAP: Migrate metrics to backend API level

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • System
    • 3scale 2019-08-12

      Add a polymorphic owner to `Metric` so it can belong to either a service (case of existing non-APIAP services and also APIAP products in APIAP v2) or to a Backend API.

      Dev note

      No need to "migrate" existing metrics to the services' backend APIs, but only fill the `owner_id` and `owner_type` (via db migration) and make sure a backend API can own a metric directly. This will easy the support of APIAP and non-APIAP services in parallel for a moment and exempt us from having to run a heavy migration that would potentially require resync with backend/apisonator.

              Unassigned Unassigned
              mcassola Guilherme Cassolato
              Martin Kudlej Martin Kudlej
              Guilherme Cassolato Guilherme Cassolato
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: