metricToEditor

Function

Util to convert a metric into editor values consumable by the configuration editor

Parameters

Parameter Type Default Notes
metric Required IMetric

IMetric metric

displayConfig Required IMetricDisplayConfig

display configuration for the metric

Returns

Property Type Notes
dynamicMetric Optional IDynamicMetricValues

all values related to constructing a service-query metric

value Optional string | number

the main value of the metric


Function defined in common/src/metrics/metricToEditor.ts:16