blob: 32ce30fdc496dd597121f679b1c2f359b6a8a124 [file] [log] [blame]
Basil Eljuse4b14afb2020-09-30 13:07:23 +01001#!/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
18JWT_EXPIRATION_DAYS = 365
19
20HOST = "<Host Public IP Address>"
21PORT = "8086"
22BUFF_SIZE = 10
23POLL_DELAY = 0.1
24
25LISTEN_ALL_IPS = "0.0.0.0"
26
27VALID_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
38DATABASE_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
48SUPPORTED_API_VERSIONS = ["1.0"]