Skip to main content
Preview This page lists every field Metrics Studio stores for a metric and a saved query. You see these fields in Studio’s JSON view, in an import file, and in what agents read over MCP. Atlan checks a definition’s shape when you save it: required fields, types, names, and references between fields. It never parses or runs the SQL inside it, and it doesn’t check that the number is right.

Item fields

These fields sit around the definition. An import file row uses them. A metric’s owner is the person recorded on the item, shown as Owner or Unassigned. The definition has no owner field.

Metric definition

Spec version 1.0-draft.4. Unknown fields are refused at every level. Put experimental data in extensions.

aggregation

A value outside the listed words is kept, with a warning.

output

source

Give exactly one of table and sql, and it can’t be empty.

joins[]

dimensions[]

examples[]

provenance

Version rules

When you save a new revision of a metric, Atlan compares it with the current one:
  • If the calculation changed, version must be higher. The calculation covers spec_version, dialect, formula, aggregation, output, filters, mandatory_filters, source, joins, the SQL parts of dimensions (including value_map), depends_on, grain, population, exclusions, and extensions.
  • If only display_name, description, examples, provenance, replaced_by, or a dimension’s values or description changed, version can stay the same.
  • version can never go down.
Studio raises version by 1 each time you edit a metric. The definition version is separate from the revision number and the release version. See Three different version numbers.

Saved query definition

Spec version 1.0-draft.1. Unknown fields are refused. Only spec_version and sql are required, but a field you include can’t be blank. Agents can find a saved query by its question, paraphrases, and usage note, and by the table, column, parameter, and output names in it. SQL text and filter values are never searched.

Fields Atlan adds

Atlan computes these on every save. Anything you send for them is replaced.

Warnings

Complete example

Limits

Errors

When a save is refused, the error names the field it’s about, for example Field 'definition.source' is not valid. It never repeats the values or SQL you sent. Common 422 fields: