Returns
Returns a Metric object for the given metric name.
Example
Parameters
The name of the metric you want to retrieve.
How a name is resolved
The platform looks for the name in two steps:
- A metric whose name it is. The call returns that metric’s active revision.
- Only when no metric you can see holds the name: an active revision saved under that name as its own.
A revision can keep its own name after its metric is renamed. In that case the returned name is the revision’s own name, so it can differ from the name you asked for. Do not compare the returned name with the name you passed.
Errors