All files / modules/85-cv/pages/monitored-service/components/ServiceHealth ServiceHealth.constants.ts

100% Statements 16/16
100% Branches 2/2
100% Functions 1/1
100% Lines 16/16

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27              29x 29x 29x 29x 29x 29x     29x 29x 29x 29x 29x 29x   29x 29x 29x 29x  
/*
 * Copyright 2021 Harness Inc. All rights reserved.
 * Use of this source code is governed by the PolyForm Shield 1.0.0 license
 * that can be found in the licenses directory at the root of this repository, also available at
 * https://polyformproject.org/wp-content/uploads/2020/06/PolyForm-Shield-1.0.0.txt.
 */
 
export enum TimePeriodEnum {
  FOUR_HOURS = 'FOUR_HOURS',
  TWENTY_FOUR_HOURS = 'TWENTY_FOUR_HOURS',
  THREE_DAYS = 'THREE_DAYS',
  SEVEN_DAYS = 'SEVEN_DAYS',
  THIRTY_DAYS = 'THIRTY_DAYS'
}
 
export const NUMBER_OF_DATA_POINTS = 48
export const LEFT_TEXTFIELD_WIDTH = 120
export const MIN_BARS_TO_SHOW = 3
export const MAX_BARS_TO_SHOW = 12
export const DEFAULT_MIN_SLIDER_WIDTH = 75
export const DEFAULT_MAX_SLIDER_WIDTH = 300
 
export const HOURS = 'hours'
export const DAYS = 'days'
export const hoursTimeFormat = 'hh:mma'
export const daysTimeFormat = 'DoMMM hh:mma'