This documentation is for the unstable version of GoodData, currrently in development.
For stable version, go to the latest stable version of this article.
CatalogWorkspaceContent.

get_metric

get_metric( metric_id: <nil> ) -> Union[CatalogMetric, None]

Gets metric by id. The id can be either an instance of ObjId or string containing serialized ObjId

('metric/some.metric.id') or contain just the id part ('some.metric.id').

Parameters

nametypedescription
metric_idfully qualified metric entity id (type/id) or just the identifier of metric entity

Returns

typedescription
CatalogMetricinstance of CatalogMetric or None if no such metric in catalog