File: k_map.py

package info (click to toggle)
siridb-server 2.0.53-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,612 kB
  • sloc: ansic: 47,501; python: 6,263; sh: 254; makefile: 149
file content (97 lines) | stat: -rw-r--r-- 2,791 bytes parent folder | download | duplicates (2)
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
k_map = {
    'r_doubleq_str': {
        'k_as': '"MERGED"',
        'k_suffix': '"SUFFIX"',
        'k_prefix': '"PREFIX"',
        'series_name': '"000000"',
        'k_filter': 10,  # '"10"',
        'uuid': '"koos-VirtualBox:9010"',
        'k_name': '"000000"',
        'k_user': '"USER"',
        'k_password': '"PASSWORD"',
        'k_status': '"running"',
        'k_expression': '"/.*/"',
        'k_address': '"localhost"',
        'k_buffer_path': '"BUFFER_PATH"',
        'k_dbpath': '"DBPATH"',
        'k_uuid': '"UUID"',
        'k_version': '"VERSION"',
        'k_reindex_progress': '"REINDEX_PROGRESS"',
        'k_sync_progress': '"SYNC_PROGRESS"',
        'k_timezone': '"NAIVE"',
        'k_ip_support': '"ALL"',
        'k_libuv': '"1.8.0"',
        'k_server': '"SERVER"',
	    'k_tee_pipe_name': '"PIPENAME"',
        'k_shard_duration': 86400,
        'k_expiration_num': 0,
        'k_expiration_log': 0,

        'aggregate_functions': '"1970-1-1 1:00:10"',
	    'k_start': '"1970-1-1 1:00:00"',
        'k_after': '"1970-1-1 1:00:00"',
        'k_between': '"1970-1-1 1:00:00"',
        'k_before': '"1970-1-1 1:01:00"',
        'k_and': '"1970-1-1 1:01:00"',
        'k_end': '"1970-1-1 1:01:00"',
        },
    'r_integer': {
        'k_series': 0,  # GROUPS
        'k_active_handles': 0,  # SERVERS
        'k_buffer_size': 0,  # SERVERS
        'k_port': 9000,  # SERVERS
        'k_startup_time': 0,  # SERVERS
        'k_max_open_files': 0,  # SERVERS
        'k_mem_usage': 0,  # SERVERS
        'k_open_files': 0,  # SERVERS
        'k_received_points': 0,  # SERVERS
        'k_uptime': 0,  # SERVERS,
        'k_servers': 0,  # POOLS
        'k_limit': 10,
        'k_sid': 0,
        'k_pool': 0,
        'k_filter': 10,
        'k_size': 10,
        'k_length': 10,
        'aggregate_functions': 10,
        'k_start': 0,
        'k_after': 0,
        'k_between': 0,
        'k_before': 60,
        'k_and': 60,
        'k_end': 60,
        'k_shard_duration': 86400,
        'k_expiration_num': 0,
        'k_expiration_log': 0,
    },
    'r_float': {
        'k_filter': 10.0,
        'k_drop_threshold': 0.99},
    'r_time_str': {
        'aggregate_functions': '10s',
        'k_start': '0d',
        'k_after': '0d',
        'k_between': '0d',
        'k_before': '1m',
        'k_and': '1m',
        'k_end': '1m',
        'k_shard_duration': '1d',
        'k_expiration_num': '0d',
        'k_expiration_log': '0d',
    },
    'r_uuid_str': {
        'r_uuid_str': '"UUID"'},
    'r_uinteger': {
    },
    'r_grave_str': {
	    'group_name': '`GROUP`',
        'tag_name': '`TAG`',
        'group_tag_match': '`GROUP_OR_TAG`',
    },
    'r_regex': {
        'r_regex': '/.*/'
    },
    'r_comment': {
        'r_comment': '#',
    },
}