( overrides?: Partial<MetricsSettings> )
| 45 | import {DataTableMode} from '../widgets/data_table/types'; |
| 46 | |
| 47 | export function buildMetricsSettingsState( |
| 48 | overrides?: Partial<MetricsSettings> |
| 49 | ): MetricsSettings { |
| 50 | return { |
| 51 | cardMinWidth: null, |
| 52 | tooltipSort: TooltipSort.NEAREST, |
| 53 | ignoreOutliers: false, |
| 54 | xAxisType: XAxisType.WALL_TIME, |
| 55 | scalarSmoothing: 0.3, |
| 56 | hideEmptyCards: true, |
| 57 | scalarPartitionNonMonotonicX: false, |
| 58 | isTooltipRowsLimitEnabled: false, |
| 59 | tooltipRowsLimit: 4, |
| 60 | imageBrightnessInMilli: 123, |
| 61 | imageContrastInMilli: 123, |
| 62 | imageShowActualSize: true, |
| 63 | histogramMode: HistogramMode.OFFSET, |
| 64 | savingPinsEnabled: true, |
| 65 | ...overrides, |
| 66 | }; |
| 67 | } |
| 68 | |
| 69 | // Since Settings proto has missing fields, we need to build a partial of |
| 70 | // Settings to be used in tests. |
no outgoing calls
no test coverage detected
searching dependent graphs…