class MetricRef
Defined at line 29 of file ../../third_party/cobalt/src/logger/project_context.h
A reference object that gives access to the names and IDs of a Metric and
its owning Project and Customer. One way to obtain a MetricRef is the method
ProjectContext::RefMetric().
Public Methods
void MetricRef (const Project * project, const MetricDefinition * metric_definition)
A MetricRef is constructed from a Project and a MetricDefinition. The
Project and MetricDefinition must remain valid as long as the MetricRef is
being used.
const Project & project ()
std::string ProjectDebugString ()
uint32_t metric_id ()
const MetricDefinition * metric_definition ()
const std::string & metric_name ()
std::string FullyQualifiedName ()
Returns the string
<customer
_name>.
<project
_name>.
<metric
_name>
Friends
class ProjectContext