metricToEditor
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 |
|---|---|---|
| Optional | IDynamicMetricValues |
all values related to constructing a service-query metric |
| Optional | string | number |
the main value of the metric |
Function defined in packages/common/src/metrics/metricToEditor.ts:16