Debian Codegraph @

pkg/leakybucket/tests/simple-leaky-uniq-w-buckets_state/in-buckets_state.json

raw
1 {
2 "cdf58e6ae48e79ac3ae0f006e1a2e627eccd8b63": {
3 "Name": "test/simple-leaky",
4 "Mode": 1,
5 "SerializedState": {
6 "Limit": 0.1,
7 "Burst": 3,
8 "Tokens": 1.1,
9 "Last": "2020-01-01T10:00:05Z",
10 "LastEvent": "2020-01-01T10:00:05Z"
11 },
12 "Queue": {
13 "Queue": [
14 {
15 "Type": 0,
16 "ExpectMode": 1,
17 "Whitelisted": false,
18 "Stage": "",
19 "Overflow": {
20 "MapKey": "",
21 "start_at": "0001-01-01T00:00:00Z",
22 "stop_at": "0001-01-01T00:00:00Z",
23 "source": null,
24 "Source_ip": "",
25 "Source_range": "",
26 "Source_AutonomousSystemNumber": "",
27 "Source_AutonomousSystemOrganization": "",
28 "Source_Country": "",
29 "Source_Latitude": 0,
30 "Source_Longitude": 0,
31 "Reprocess": false,
32 "Labels": null
33 },
34 "Time": "0001-01-01T00:00:00Z",
35 "StrTime": "",
36 "MarshaledTime": "2020-01-01T10:00:04Z",
37 "Process": false,
38 "Meta": {
39 "source_ip": "1.2.3.4",
40 "uniq_key": "aaa"
41 }
42 },
43 {
44 "Type": 0,
45 "ExpectMode": 1,
46 "Whitelisted": false,
47 "Stage": "",
48 "Overflow": {
49 "MapKey": "",
50 "start_at": "0001-01-01T00:00:00Z",
51 "stop_at": "0001-01-01T00:00:00Z",
52 "source": null,
53 "Source_ip": "",
54 "Source_range": "",
55 "Source_AutonomousSystemNumber": "",
56 "Source_AutonomousSystemOrganization": "",
57 "Source_Country": "",
58 "Source_Latitude": 0,
59 "Source_Longitude": 0,
60 "Reprocess": false,
61 "Labels": null
62 },
63 "Time": "0001-01-01T00:00:00Z",
64 "StrTime": "",
65 "MarshaledTime": "2020-01-01T10:00:05Z",
66 "Process": false,
67 "Meta": {
68 "source_ip": "1.2.3.4",
69 "uniq_key": "aab"
70 }
71 }
72 ],
73 "L": 3
74 },
75 "Capacity": 3,
76 "CacheSize": 0,
77 "Mapkey": "cdf58e6ae48e79ac3ae0f006e1a2e627eccd8b63",
78 "Reprocess": false,
79 "Uuid": "dark-bush",
80 "First_ts": "2020-01-01T10:00:04Z",
81 "Last_ts": "2020-01-01T10:00:05Z",
82 "Ovflw_ts": "0001-01-01T00:00:00Z",
83 "Total_count": 2,
84 "Leakspeed": 10000000000,
85 "BucketConfig": {
86 "FormatVersion": "1.0",
87 "Author": "",
88 "Description": "Simple leaky",
89 "References": null,
90 "Type": "leaky",
91 "Name": "test/simple-leaky",
92 "Capacity": 3,
93 "LeakSpeed": "10s",
94 "Duration": "",
95 "Filter": "evt.Line.Labels.type =='testlog'",
96 "GroupBy": "evt.Meta.source_ip",
97 "Distinct": "evt.Meta.uniq_key",
98 "Debug": true,
99 "Labels": {
100 "type": "overflow_1"
101 },
102 "Blackhole": "",
103 "Reprocess": false,
104 "CacheSize": 0,
105 "Profiling": false,
106 "OverflowFilter": "",
107 "BucketName": "lingering-river",
108 "Filename": "/home/bui/github/crowdsec/config/pkg/leakybucket/tests/simple-leaky-uniq-w-buckets_state/bucket.yaml"
109 },
110 "Duration": 40000000000,
111 "Profiling": false
112 }
113 }