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
-
Name the cube after the business object, not after the source system: "Product usage", not
postgres_meter_events. See Logical cubes. -
Write down the grain before you build. See Source fields and grain.
Time grain: hour, day, week, month, quarter, or yearIdentity dimensions: customer, product, plan, region, contractMeasures: quantity, rate, cost, revenue, credit -
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.
-
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.
-
Publish the workflow, then run it or add a schedule. See Running and scheduling.
-
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.
-
Build the first views in each space. See Creating a view.
-
Optional: script the pipeline work with the early-stage
hypercommand-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.