ref="/api/metrics/type-aliases/metric/metric/"><code>Metric</code></a> exists in the <a href="/api/metrics/interfaces/metrics/metrics/"><code>Metrics</code></a> object, and has a value.</p><pre><code><span class="function"><a href="/api/metrics/interfaces/metrics/metrics/methods/getter/hasmetric/">hasMetric</a></span><span class="punctuation">(</span>metricId<span class="operator">:</span> <span class="builtin">string</span><span class="punctuation">)</span><span class="operator">:</span> <span class="built