Basil Eljuse | 4b14afb | 2020-09-30 13:07:23 +0100 | [diff] [blame] | 1 | #!/usr/bin/env python3 |
| 2 | |
| 3 | __copyright__ = """ |
| 4 | /* |
| 5 | * Copyright (c) 2020, Arm Limited. All rights reserved. |
| 6 | * |
| 7 | * SPDX-License-Identifier: BSD-3-Clause |
| 8 | * |
| 9 | */ |
| 10 | """ |
| 11 | |
| 12 | """ constants.py: |
| 13 | |
| 14 | This file contains the constants required by metrics server. |
| 15 | |
| 16 | """ |
| 17 | |
| 18 | JWT_EXPIRATION_DAYS = 365 |
| 19 | |
| 20 | HOST = "<Host Public IP Address>" |
| 21 | PORT = "8086" |
| 22 | BUFF_SIZE = 10 |
| 23 | POLL_DELAY = 0.1 |
| 24 | |
| 25 | LISTEN_ALL_IPS = "0.0.0.0" |
| 26 | |
| 27 | VALID_METRICS = [ |
| 28 | 'tfm_image_size', |
| 29 | 'tfa_code_churn', |
| 30 | 'tfa_defects_stats', |
| 31 | 'tfa_defects_tracking', |
| 32 | 'tfa_complexity_stats', |
| 33 | 'tfa_complexity_tracking', |
| 34 | 'tfa_rtinstr', |
| 35 | 'tfa_image_size', |
| 36 | 'tfa_misra_defects'] |
| 37 | |
| 38 | DATABASE_DICT = { |
| 39 | "TFM_IMAGE_SIZE": "TFM_ImageSize", |
| 40 | "TFA_CODE_CHURN": "TFA_CodeChurn", |
| 41 | "TFA_DEFECTS": "TFA_Defects", |
| 42 | "TFA_COMPLEXITY": "TFA_Complexity", |
| 43 | "TFA_RTINSTR": "TFA_RTINSTR", |
| 44 | "TFA_IMAGE_SIZE": "TFA_ImageSize", |
| 45 | "TFA_MISRA_DEFECTS": "TFA_MisraDefects" |
| 46 | } |
| 47 | |
| 48 | SUPPORTED_API_VERSIONS = ["1.0"] |