forked from dgiot/dgiot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dgiot_parse.schema
72 lines (59 loc) · 1.77 KB
/
dgiot_parse.schema
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
%% dgiot_parse config
%%--------------------------------------------------------------------
%% parse缓存设置
%%--------------------------------------------------------------------
%% 检查时间
{mapping, "parse.cache.auto_save", "dgiot_parse.cache_auto_save", [
{default, 30000},
{datatype, integer}
]}.
%% 最大条数 最大5万条数据
{mapping, "parse.cache.max_size", "dgiot_parse.cache_max_size", [
{default, 50000},
{datatype, integer}
]}.
%% 内存最大为100M
{mapping, "parse.cache.max_memory", "dgiot_parse.cache_max_memory", [
{default, 102400},
{datatype, integer}
]}.
%% 最大30秒时间存库
{mapping, "parse.cache.max_time", "dgiot_parse.cache_max_time", [
{default, 30},
{datatype, integer}
]}.
%%--------------------------------------------------------------------
%% parse配置
%%--------------------------------------------------------------------
{mapping, "parse.delete_field", "dgiot_parse.delete_field", [
{default, ""},
{datatype, string}
]}.
{mapping, "parse.parse_server", "dgiot_parse.parse_server", [
{default, ""},
{datatype, string}
]}.
{mapping, "parse.parse_path", "dgiot_parse.parse_path", [
{default, "/parse/"},
{datatype, string}
]}.
{mapping, "parse.parse_appid", "dgiot_parse.parse_appid", [
{default, ""},
{datatype, string}
]}.
{mapping, "parse.parse_master_key", "dgiot_parse.parse_master_key", [
{default, ""},
{datatype, string}
]}.
{mapping, "parse.parse_js_key", "dgiot_parse.parse_js_key", [
{default, ""},
{datatype, string}
]}.
{mapping, "parse.parse_rest_key", "dgiot_parse.parse_rest_key", [
{default, ""},
{datatype, string}
]}.
{mapping, "parse.log", "dgiot_parse.log", [
{default, false},
{datatype, atom}
]}.