find_data or list_metrics, then query_metric by grain, date range and
dimension, so everyone gets the same number. Midplane compiles the call into
one SQL statement and runs it as the person asking, so a metric never reads
more than its asker could.
Owners and admins draft and confirm metrics; anyone in the workspace can
propose one. What a definition holds, how versions work and the time zone
are in metric definitions.
Drafts from the schema
When you first confirm a source’s review, Midplane drafts 5 to 10 core metrics from its schema and opens Three questions. Drafting usually takes under a minute; meanwhile you can connect your agent.1
Answer the three questions
Which table holds your customers? What makes one active? Where is
revenue? Each comes with two to four answers drawn from your catalog,
such as the values of a
status column, and Something else: for
your own words. Answer at least one, then select Draft again with
these answers once drafting has finished.Skip for now leaves them on Metrics for later.2
Check what was drafted
Metrics lists the drafts, waiting ones first. Its Drafting card
names any draft that didn’t check out against the catalog, and why.
Confirm a draft
Until a metric is confirmed, every answer that uses it says it is a draft.1
Check its value and trend
The draft’s page runs it as you, through your access and masks: Value
now, and Last 90 days by its grain. Check the number against one
you know, such as last month’s revenue in your billing system, and read
the definition and the SQL it compiles to.
2
Confirm it
Select Confirm v1 (the button names the version). It shows only
when the value and the trend came back for you. Agents use it from their
next call. For a metric that shouldn’t exist, select Discard.
If several drafts wait
If several drafts wait
Select Review all 7 in a row on Metrics (the number is how many
wait). Confirm and Discard go on to the next draft, Skip goes
on without a decision, and Propose a change keeps you in the run.
Change a metric
Anyone can select Propose a change on a metric’s page. The form starts from the version you are looking at; the name and source stay, since a new name is a new metric. Saving checks it against the catalog and adds a draft version, and the confirmed version keeps answering until someone confirms it. To go back, View an earlier version under Versions and propose a change from it.New metrics from questions
The best metrics come from the questions people actually ask. Each way files a draft, checked against the catalog.- Save as metric sends the statement as written, so any value in it, such as a customer’s id, reaches the model too. Dates in it become the range a caller picks.
- From Save as metric or
propose_metric, a draft named like a metric the source has becomes a new version of it. propose_metricnever confirms a metric. It answers with a link to the metric’s page, and proposing the same definition again adds nothing.
Answers from a draft
An answer from a draft tells the agent to say so, and its provenance line names the version and status:confirmed. More on
answers.