Skip to main content

Metered data product launch

Goal: report on a metered dataset that is not cloud cost, such as license usage, product usage, support consumption, or partner settlement, with the same workflow, cube, and view model.

Who: an organization owner.

Steps​

  1. Name the cube after the business object, not after the source system: "Product usage", not postgres_meter_events. See Logical cubes.

  2. Write down the grain before you build. See Source fields and grain.

    Time grain: hour, day, week, month, quarter, or year
    Identity dimensions: customer, product, plan, region, contract
    Measures: quantity, rate, cost, revenue, credit
  3. Build the workflow in four stages. See The data pipeline.

    • Extract from APIs, databases, or cloud storage.
    • Load the raw content into typed tables.
    • Transform the tables into rows that are ready to charge.
    • Charge the rows into the cube. Put tiers, volume discounts, markups, and adjustments in charging rules, so that every view shows the same numbers.
  4. Check the grain in the Charge job while the cube is still a Draft. Publishing locks the grain. To change it later, you create a replacement cube and move the views. See Publishing and evolving.

  5. Publish the workflow, then run it or add a schedule. See Running and scheduling.

  6. Create a space for each audience, for example the customer, finance, and operations. Grant the cube to each space, with hidden fields and a query-constraint policy per grant. See Managing space access.

  7. Build the first views in each space. See Creating a view.

  8. Optional: script the pipeline work with the early-stage hyper command-line tool. It applies the same checks and access rules as the web app. Going live stays in the web app. See The hyper command-line tool.

Done when​

  • The cube is named after the business object and is published.
  • The audience can understand the field names.
  • The workflow has a schedule, or a clear manual run process.
  • Grants, hidden fields, and policies match what each audience may see.
  • Saved views answer the first reporting questions.