Skip to content

Commit e2d250b

Browse files
authored
Merge pull request #3 from BureauTech/dev
dev
2 parents 6e0a91c + 28f3210 commit e2d250b

38 files changed

+6077
-77
lines changed

.dockerignore

Lines changed: 0 additions & 12 deletions
This file was deleted.

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
__pycache__
22
.pytest_cache
3+
.ipynb_checkpoints
34
.env
5+
requirements.txt
46
venv
57

6-
!.keep
8+
!.keep

.pylintrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[FORMAT]
2+
max-line-length=120

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ For development environment:
3131

3232
### Prerequisites:
3333

34-
You must have installed [Python 3.7.11](https://www.python.org/downloads/release/python-3711/) previously.
34+
You must have installed [Python 3.7.9](https://www.python.org/downloads/release/python-379/) previously.
3535

3636
# Authors
3737

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: '3.9'
1+
version: '3.7'
22

33
services:
44

dockerfile.python

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
FROM python:3.7.11
22
WORKDIR /usr/src/btalert-ai
33

4-
COPY . .
4+
COPY src src
5+
COPY setup-env.sh setup-env.sh
6+
COPY resources/docker.* resources/
7+
58
RUN bash setup-env.sh docker
69
RUN pip install -r requirements.txt
710

jupyter/BTAlert.ipynb

Lines changed: 750 additions & 0 deletions
Large diffs are not rendered by default.

jupyter/data/all_sample.csv

Lines changed: 710 additions & 0 deletions
Large diffs are not rendered by default.

jupyter/data/future_sample.csv

Lines changed: 193 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,193 @@
1+
timestamp;req_failed;request_per_sec;cpu_percent;memory_percent
2+
1652273602;0.0;2.0;0.026561530833333333;0.6785125732421875
3+
1652273617;0.0;2.93;0.028922719999999996;0.7077484130859375
4+
1652273632;0.0;3.13;0.029771177777777772;0.7178192138671875
5+
1652273647;0.0;4.67;0.03631320222222222;0.7258758544921875
6+
1652273662;0.0;5.07;0.05114383555555555;0.7309112548828125
7+
1652273677;0.0;4.87;0.05590301777777777;0.78680419921875
8+
1652273692;0.0;5.93;0.05461007777777777;0.8243255615234375
9+
1652273707;0.0;8.8;0.06342688222222222;0.83087158203125
10+
1652273722;0.0;7.2;0.07333717777777779;0.8354034423828125
11+
1652273737;0.0;8.13;0.07000522666666668;0.8394317626953125
12+
1652273752;0.0;9.6;0.07945466222222221;0.8434600830078125
13+
1652273767;0.0;9.2;0.07658677555555554;0.89324951171875
14+
1652273782;0.6;11.13;0.0863604488888889;0.85699462890625
15+
1652273797;2.06;12.93;0.09403623333333336;0.9008026123046875
16+
1652273812;1.67;15.93;0.10339330888888891;0.8766326904296875
17+
1652273827;1.72;19.33;0.1253626155555555;0.8786468505859375
18+
1652273842;0.76;17.6;0.1424824422222222;0.880157470703125
19+
1652273857;0.0;16.67;0.14337833555555554;0.882171630859375
20+
1652273872;0.44;15.27;0.12577463111111112;0.8836822509765625
21+
1652273887;0.0;17.0;0.12146469111111115;0.8846893310546875
22+
1652273902;0.0;17.87;0.11854810444444439;0.8856964111328125
23+
1652273917;0.0;16.4;0.12831669555555555;0.8870697021484375
24+
1652273932;0.36;18.47;0.1384124044444444;0.8880767822265625
25+
1652273947;0.0;19.07;0.13161404888888886;0.9122467041015625
26+
1652273962;0.0;20.0;0.13250589111111108;0.912750244140625
27+
1652273977;0.0;21.27;0.13779022666666668;0.9142608642578125
28+
1652273992;0.29;23.2;0.15738699333333334;0.9162750244140625
29+
1652274007;1.29;25.93;0.16344425555555556;0.8971405029296875
30+
1652274022;2.25;32.53;0.18577090666666665;0.89764404296875
31+
1652274037;1.85;32.4;0.20679224888888886;0.899658203125
32+
1652274052;1.32;35.4;0.23559875333333338;0.900665283203125
33+
1652274067;1.23;32.53;0.21083193555555557;0.900665283203125
34+
1652274082;1.54;34.6;0.22460050888888883;0.9011688232421875
35+
1652274097;1.33;35.0;0.21628402888888887;0.9021759033203125
36+
1652274112;1.07;37.33;0.22881363333333332;0.9036865234375
37+
1652274127;1.68;39.6;0.2548399533333335;0.903961181640625
38+
1652274142;1.3;40.87;0.2862430844444443;0.9046783447265625
39+
1652274157;1.79;40.87;0.31481074888888905;0.911224365234375
40+
1652274172;1.19;39.07;0.32964703555555525;0.9199981689453125
41+
1652274187;0.72;37.13;0.3141687511111112;0.920928955078125
42+
1652274202;0.0;34.07;0.2865157088888889;0.9273529052734375
43+
1652274217;0.0;38.4;0.2700437244444445;0.9274444580078125
44+
1652274232;0.48;41.73;0.2752446822222222;0.9274444580078125
45+
1652274247;0.85;39.13;0.28656864888888894;0.93109130859375
46+
1652274262;0.66;40.33;0.29673021999999993;0.93109130859375
47+
1652274277;0.65;40.87;0.30339046888888893;0.93109130859375
48+
1652274292;0.66;40.6;0.3003642955555556;0.93109130859375
49+
1652274307;0.0;41.6;0.29457198666666656;0.9315948486328125
50+
1652274322;0.67;49.67;0.3434010666666666;0.9638214111328125
51+
1652274337;1.04;51.07;0.40557952666666686;0.9094390869140625
52+
1652274352;0.83;48.0;0.42164475333333334;0.9174652099609375
53+
1652274367;0.88;52.93;0.42799304888888895;0.91796875
54+
1652274382;0.94;56.47;0.45486656222222194;0.91796875
55+
1652274397;0.59;45.47;0.4308333822222222;0.9184722900390625
56+
1652274412;0.42;47.33;0.4103679155555552;0.918975830078125
57+
1652274427;0.55;48.27;0.3739570688888888;0.9194793701171875
58+
1652274442;0.51;52.27;0.4151883844444449;0.9194793701171875
59+
1652274457;0.76;52.87;0.41688595777777787;0.91998291015625
60+
1652274472;0.56;48.0;0.4695047666666666;0.9225006103515625
61+
1652274487;0.68;58.47;0.48406957111111143;0.923004150390625
62+
1652274502;0.91;58.4;0.560032388888889;0.923004150390625
63+
1652274517;0.98;54.2;0.5672290666666665;0.923004150390625
64+
1652274532;0.26;50.87;0.5526329266666664;0.923004150390625
65+
1652274547;0.53;50.4;0.46534696666666625;0.923004150390625
66+
1652274562;0.39;51.4;0.42824781555555597;0.923004150390625
67+
1652274577;0.0;51.87;0.42005318444444445;0.923004150390625
68+
1652274592;0.26;51.33;0.4500887488888888;0.9235076904296875
69+
1652274607;0.12;54.87;0.46584231777777757;0.9235076904296875
70+
1652274622;0.26;52.13;0.4760120755555558;0.9235076904296875
71+
1652274637;0.13;52.27;0.48637726666666603;0.9235076904296875
72+
1652274652;0.25;53.6;0.4926728066666669;0.9235076904296875
73+
1652274667;0.58;57.93;0.5129903622222224;0.9235076904296875
74+
1652274682;0.12;54.93;0.5012826333333338;0.9235076904296875
75+
1652274697;0.0;54.6;0.4995229688888887;0.9235076904296875
76+
1652274712;0.12;55.47;0.489393286666666;0.9235076904296875
77+
1652274727;0.0;57.6;0.5086644044444445;0.9235076904296875
78+
1652274742;0.12;57.93;0.5147441088888879;0.9235076904296875
79+
1652274757;0.43;62.67;0.5665275333333334;0.9235076904296875
80+
1652274772;0.31;64.07;0.6035011399999992;0.925018310546875
81+
1652274787;1.19;67.07;0.634842080000001;0.925018310546875
82+
1652274802;1.21;71.47;0.6592715622222222;0.96484375
83+
1652274817;2.74;63.27;0.6885754622222218;0.897369384765625
84+
1652274832;0.62;64.47;0.6610820022222216;0.9079437255859375
85+
1652274847;1.25;69.47;0.6565778644444435;0.9381561279296875
86+
1652274862;1.24;69.8;0.6481973444444444;0.9421844482421875
87+
1652274877;1.47;72.33;0.7023478288888896;0.940673828125
88+
1652274892;0.65;71.47;0.6987111400000003;0.9401702880859375
89+
1652274907;1.25;74.4;0.7174802155555564;0.9361419677734375
90+
1652274922;1.98;81.0;0.7638687355555551;0.9361419677734375
91+
1652274937;0.2;67.53;0.7046180288888889;0.9366455078125
92+
1652274952;0.84;71.47;0.6745010177777772;0.93865966796875
93+
1652274967;1.08;74.13;0.6260958911111111;0.96282958984375
94+
1652274982;1.49;71.67;0.6938595200000008;0.9401702880859375
95+
1652274997;1.85;79.33;0.7500494800000006;0.9401702880859375
96+
1652275012;2.14;74.67;0.761295537777778;0.9401702880859375
97+
1652275027;0.37;72.0;0.7701169177777767;0.9411773681640625
98+
1652275042;0.19;71.47;0.7159665733333339;0.9411773681640625
99+
1652275057;0.09;71.4;0.7167383888888897;0.9411773681640625
100+
1652275072;0.29;69.4;0.6966638133333339;0.9411773681640625
101+
1652275087;0.09;72.2;0.6808718088888895;0.9421844482421875
102+
1652275102;0.38;70.87;0.6846920133333343;0.9421844482421875
103+
1652275117;0.09;74.13;0.7159844333333327;0.94268798828125
104+
1652275132;0.0;72.27;0.7603126066666668;0.94268798828125
105+
1652275147;0.0;71.53;0.773393295555555;0.94268798828125
106+
1652275162;0.0;74.8;0.7409643422222238;0.9431915283203125
107+
1652275177;0.0;72.53;0.7106615244444432;0.943695068359375
108+
1652275192;0.0;74.0;0.7416731222222223;0.943695068359375
109+
1652275207;0.0;74.2;0.7600265488888882;0.943695068359375
110+
1652275222;0.0;73.6;0.7689172488888896;0.9441986083984375
111+
1652275237;0.0;73.33;0.739926784444444;0.9441986083984375
112+
1652275252;0.0;73.47;0.7461682000000008;0.9441986083984375
113+
1652275267;0.0;73.73;0.7493388200000001;0.9447021484375
114+
1652275282;0.0;77.47;0.7685958955555559;0.9447021484375
115+
1652275297;0.0;73.0;0.7873089177777779;0.9447021484375
116+
1652275312;0.0;74.4;0.789284020000001;0.9653472900390625
117+
1652275327;0.0;77.07;0.7969885088888885;0.9653472900390625
118+
1652275342;0.0;75.87;0.7710183177777757;0.9663543701171875
119+
1652275357;0.0;74.2;0.8152698111111097;0.975921630859375
120+
1652275372;0.09;76.13;0.8147663688888895;0.9744110107421875
121+
1652275387;3.57;78.33;0.8373764866666685;0.9744110107421875
122+
1652275402;2.78;79.13;0.8283254644444469;0.9744110107421875
123+
1652275417;4.16;78.6;0.8067800000000008;0.9744110107421875
124+
1652275432;1.86;78.73;0.8436585422222201;0.973907470703125
125+
1652275447;3.09;77.6;0.7994433977777766;0.973907470703125
126+
1652275462;1.03;77.73;0.8152549022222223;0.9734039306640625
127+
1652275477;3.46;80.87;0.7841640511111109;0.9713897705078125
128+
1652275492;3.84;78.13;0.8351438955555548;0.9734039306640625
129+
1652275507;4.4;59.13;0.8458362688888883;0.969879150390625
130+
1652275522;5.61;64.2;0.8380908822222232;0.9693756103515625
131+
1652275537;4.78;68.27;0.8232162422222219;0.965850830078125
132+
1652275552;5.2;59.0;0.8404633333333322;0.96282958984375
133+
1652275567;3.96;67.4;0.8266393200000013;0.963836669921875
134+
1652275582;2.46;67.8;0.8575622066666685;0.9643402099609375
135+
1652275597;3.49;72.67;0.8221889799999997;0.9643402099609375
136+
1652275612;4.29;69.93;0.8903845555555537;0.9633331298828125
137+
1652275627;4.96;69.87;0.8420771066666651;0.963836669921875
138+
1652275642;4.77;75.4;0.863086957777778;0.9643402099609375
139+
1652275657;5.01;67.8;0.8369781688888907;0.96484375
140+
1652275672;3.64;73.33;0.8538120088888894;0.96484375
141+
1652275687;4.45;79.4;0.837439600000001;0.96484375
142+
1652275702;4.67;72.8;0.8583172933333344;0.9240570068359375
143+
1652275717;4.16;70.47;0.8375920222222223;0.9170074462890625
144+
1652275732;2.07;74.13;0.8449384444444452;0.9205322265625
145+
1652275747;3.0;80.0;0.811721046666662;0.923553466796875
146+
1652275762;3.76;79.8;0.8301806911111119;0.9311065673828125
147+
1652275777;5.54;79.47;0.8684700488888867;0.935638427734375
148+
1652275792;6.28;79.6;0.875925822222224;0.9361419677734375
149+
1652275807;4.99;80.2;0.8893556933333305;0.9331207275390625
150+
1652275822;4.4;80.27;0.852331842222222;0.9331207275390625
151+
1652275837;3.63;79.0;0.8759227488888882;0.9331207275390625
152+
1652275852;4.24;77.0;0.8701665888888884;0.93463134765625
153+
1652275867;4.92;89.4;0.8533108199999989;0.9341278076171875
154+
1652275882;6.14;73.87;0.8570272711111102;0.9351348876953125
155+
1652275897;4.84;86.73;0.8522858911111143;0.935638427734375
156+
1652275912;0.76;79.4;0.8536245755555582;0.9361419677734375
157+
1652275927;0.5;80.73;0.8343621822222252;0.9361419677734375
158+
1652275942;0.18;74.47;0.8424754066666638;0.935638427734375
159+
1652275957;3.03;81.53;0.8725843844444423;0.9331207275390625
160+
1652275972;3.57;82.13;0.84611678222222;0.9341278076171875
161+
1652275987;4.42;79.93;0.8459332466666687;0.9341278076171875
162+
1652276002;5.37;81.87;0.8528730600000017;0.9341278076171875
163+
1652276017;2.58;75.07;0.8638811288888922;0.9331207275390625
164+
1652276032;1.96;81.53;0.8495731422222231;0.9341278076171875
165+
1652276047;3.53;79.33;0.8550520911111107;0.941680908203125
166+
1652276062;6.89;85.2;0.8561036711111076;0.9441986083984375
167+
1652276077;2.55;78.33;0.8662631755555543;0.9447021484375
168+
1652276092;2.2;81.87;0.8541711244444438;0.95880126953125
169+
1652276107;4.59;84.27;0.8761872911111115;0.957794189453125
170+
1652276122;0.17;76.67;0.8625599177777783;0.9593048095703125
171+
1652276137;1.67;79.73;0.8707946977777787;0.9593048095703125
172+
1652276152;4.56;77.47;0.848640191111114;0.96282958984375
173+
1652276167;5.02;81.0;0.8776259733333316;0.965850830078125
174+
1652276182;2.66;85.13;0.8613312444444444;0.965850830078125
175+
1652276197;2.93;81.93;0.8638916577777763;0.9190216064453125
176+
1652276212;4.14;56.4;0.7788845155555565;0.91851806640625
177+
1652276227;3.84;71.27;0.7622286888888892;0.9205322265625
178+
1652276242;3.89;82.27;0.7598929511111085;0.919525146484375
179+
1652276257;3.31;80.53;0.8074819355555569;0.919525146484375
180+
1652276272;2.4;80.47;0.8277333444444442;0.91650390625
181+
1652276287;0.08;82.33;0.8404606666666647;0.9170074462890625
182+
1652276302;1.51;70.8;0.8670318066666671;0.9124755859375
183+
1652276317;3.08;75.73;0.8602769977777774;0.917510986328125
184+
1652276332;5.59;78.73;0.8424448400000023;0.9180145263671875
185+
1652276347;7.36;82.4;0.8255476022222208;0.9190216064453125
186+
1652276362;0.24;83.2;0.8682292622222222;0.919525146484375
187+
1652276377;4.36;82.6;0.8575588444444444;0.918548583984375
188+
1652276392;7.14;76.53;0.8547792466666679;0.946319580078125
189+
1652276407;0.82;72.93;0.8133496844444481;
190+
1652276422;90.0;20.0;0.626450577277778;
191+
1652276437;90.0;0.0;0.4198273624444458;
192+
1652276452;90.0;0.0;;
193+
1652276467;100.0;39.2;;

0 commit comments

Comments
 (0)