Get metric
이 페이지는 아직 귀하의 언어로 번역되지 않았습니다. 현재 작업 중이므로 곧 다시 확인해 주십시오.
Returns the full saved metric definition including type-specific params,
version, and metadata.
/v1/projects/{project_id}/metrics/{metric_id}Authorizations
Authorizationstringrequiredhttp
Path parameters
project_idstringrequiredAmplitude project identifier, backed by the canonical app ID.
12345pattern: ^[0-9]+$metric_idstringrequiredSaved metric identifier.
min length: 1Response
application/jsondataobjectrequiredShow child attributes
idstringrequiredStable metric identifier.
objectstringrequiredResource-type discriminator. Always metric.
project_idstringrequiredpattern: ^[0-9]+$namestringrequireddescriptionstringnullablemetric_typestringrequiredPublic metric type discriminator (snake_case). See the enum for supported
values.Unsupported or unrecognized metric types are surfaced as unknown. Clients
should treat unknown as "a metric type this API version does not model yet".
uniquestotalsformulaprop_sumprop_avgretentionconversionunknowndefinitiononeOfrequiredType-specific metric definition. The metric_type discriminator selects
the required fields. Aligns with MCP shared-schema capabilities.
objectmetric_typestringrequiredeventobjectrequiredevent_typestringrequiredEvent name (e.g. Page View, _active).
filtersobject[][]property_keystringrequiredProperty key to filter on.
operatorstringrequiredFilter operator (matches Amplitude property operators).
valuesstring[]Values to match against.
[]property_typestringProperty namespace for filters, group-bys, and aggregations.
eventusergroupgroup_typestringGroup type for group properties. Empty string for non-group.
group_byobject[]Properties to group by. Required for formula metrics that use property
aggregation functions like PROPSUM(A) or PROPAVG(A).
property_typestringrequiredProperty namespace for filters, group-bys, and aggregations.
eventusergroupvaluestringrequiredProperty name to group by.
group_typestringGroup type for group properties. Empty string for non-group.
count_groupstringWhat to count. User for unique users, Event for event totals.
UserversionintegerrequiredOptimistic concurrency version. Required on PATCH; incremented on each successful update.
min: 1created_atstringrequiredformat: date-timenullableupdated_atstringrequiredformat: date-timenullablecreated_bystringCreator email or login identifier when available.
nullableurlstringrequiredDeep link to the metric in the Amplitude UI.
format: uriarchivedbooleanrequiredWhether the metric is archived (soft-deleted).
is_officialbooleanWhether the metric is marked official.
is_restrictedbooleanWhether the metric is restricted.
key_propertiesobject[]Key properties associated with the metric definition.
property_typestringrequiredvaluestringrequiredgroup_typestring이 내용이 도움이 되었나요?
For AI agents: a documentation index is available at /docs/llms.txt. Append .md to any page URL for markdown, or send Accept: text/markdown.