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
name | type | description |
---|---|---|
metric_id | fully qualified metric entity id (type/id) or just the identifier of metric entity |
Returns
type | description |
---|---|
CatalogMetric | instance of CatalogMetric or None if no such metric in catalog |