Lilith/Schema/Result/SuricataAlert.pm

filter: Statementstmt 100% 32 / 32 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 8 / 8 Podpod n/a totaltotal 100% 40 / 40 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Lilith/Schema/Result/SaganAlert.pm ↑ Summary
1 3 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 package Lilith::Schema::Result::SuricataAlert;
3  
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
6  
7 =head1 NAME
8  
9 Lilith::Schema::Result::SuricataAlert
10  
11 =cut
12  
13 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
14 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
15  
16 3 ▶use base 'DBIx::Class::Core';
Subroutine BEGIN: called CC=1 SCAR=0.0
17  
18 =head1 TABLE: C<suricata_alerts>
19  
20 =cut
21  
22 3 __PACKAGE__->table("suricata_alerts");
23  
24 =head1 ACCESSORS
25  
26 =head2 id
27  
28 data_type: 'bigint'
29 is_auto_increment: 1
30 is_nullable: 0
31 sequence: 'suricata_alerts_id_seq'
32  
33 =head2 instance
34  
35 data_type: 'varchar'
36 is_nullable: 0
37 size: 255
38  
39 =head2 host
40  
41 data_type: 'varchar'
42 is_nullable: 0
43 size: 255
44  
45 =head2 timestamp
46  
47 data_type: 'timestamp with time zone'
48 is_nullable: 0
49  
50 =head2 event_id
51  
52 data_type: 'varchar'
53 is_nullable: 0
54 size: 64
55  
56 =head2 flow_id
57  
58 data_type: 'bigint'
59 is_nullable: 1
60  
61 =head2 in_iface
62  
63 data_type: 'varchar'
64 is_nullable: 1
65 size: 255
66  
67 =head2 src_ip
68  
69 data_type: 'inet'
70 is_nullable: 1
71  
72 =head2 src_port
73  
74 data_type: 'integer'
75 is_nullable: 1
76  
77 =head2 dest_ip
78  
79 data_type: 'inet'
80 is_nullable: 1
81  
82 =head2 dest_port
83  
84 data_type: 'integer'
85 is_nullable: 1
86  
87 =head2 proto
88  
89 data_type: 'varchar'
90 is_nullable: 1
91 size: 32
92  
93 =head2 app_proto
94  
95 data_type: 'varchar'
96 is_nullable: 1
97 size: 255
98  
99 =head2 flow_pkts_toserver
100  
101 data_type: 'integer'
102 is_nullable: 1
103  
104 =head2 flow_bytes_toserver
105  
106 data_type: 'integer'
107 is_nullable: 1
108  
109 =head2 flow_pkts_toclient
110  
111 data_type: 'integer'
112 is_nullable: 1
113  
114 =head2 flow_bytes_toclient
115  
116 data_type: 'integer'
117 is_nullable: 1
118  
119 =head2 flow_start
120  
121 data_type: 'timestamp with time zone'
122 is_nullable: 1
123  
124 =head2 classification
125  
126 data_type: 'varchar'
127 is_nullable: 1
128 size: 1024
129  
130 =head2 signature
131  
132 data_type: 'varchar'
133 is_nullable: 1
134 size: 2048
135  
136 =head2 gid
137  
138 data_type: 'integer'
139 is_nullable: 1
140  
141 =head2 sid
142  
143 data_type: 'bigint'
144 is_nullable: 1
145  
146 =head2 rev
147  
148 data_type: 'bigint'
149 is_nullable: 1
150  
151 =head2 raw
152  
153 data_type: 'jsonb'
154 is_nullable: 1
155  
156 =cut
157  
158 3 __PACKAGE__->add_columns(
159 "id",
160 {
161 data_type => "bigint",
162 is_auto_increment => 1,
163 is_nullable => 0,
164 sequence => "suricata_alerts_id_seq",
165 },
166 "instance",
167 { data_type => "varchar", is_nullable => 0, size => 255 },
168 "host",
169 { data_type => "varchar", is_nullable => 0, size => 255 },
170 "timestamp",
171 { data_type => "timestamp with time zone", is_nullable => 0 },
172 "event_id",
173 { data_type => "varchar", is_nullable => 0, size => 64 },
174 "flow_id",
175 { data_type => "bigint", is_nullable => 1 },
176 "in_iface",
177 { data_type => "varchar", is_nullable => 1, size => 255 },
178 "src_ip",
179 { data_type => "inet", is_nullable => 1 },
180 "src_port",
181 { data_type => "integer", is_nullable => 1 },
182 "dest_ip",
183 { data_type => "inet", is_nullable => 1 },
184 "dest_port",
185 { data_type => "integer", is_nullable => 1 },
186 "proto",
187 { data_type => "varchar", is_nullable => 1, size => 32 },
188 "app_proto",
189 { data_type => "varchar", is_nullable => 1, size => 255 },
190 "flow_pkts_toserver",
191 { data_type => "integer", is_nullable => 1 },
192 "flow_bytes_toserver",
193 { data_type => "integer", is_nullable => 1 },
194 "flow_pkts_toclient",
195 { data_type => "integer", is_nullable => 1 },
196 "flow_bytes_toclient",
197 { data_type => "integer", is_nullable => 1 },
198 "flow_start",
199 { data_type => "timestamp with time zone", is_nullable => 1 },
200 "classification",
201 { data_type => "varchar", is_nullable => 1, size => 1024 },
202 "signature",
203 { data_type => "varchar", is_nullable => 1, size => 2048 },
204 "gid",
205 { data_type => "integer", is_nullable => 1 },
206 "sid",
207 { data_type => "bigint", is_nullable => 1 },
208 "rev",
209 { data_type => "bigint", is_nullable => 1 },
210 "raw",
211 { data_type => "jsonb", is_nullable => 1 },
212 );
213  
214 =head1 PRIMARY KEY
215  
216 =over 4
217  
218 =item * L</id>
219  
220 =back
221  
222 =cut
223  
224 3 __PACKAGE__->set_primary_key("id");
225  
226  
227 # Created by DBIx::Class::Schema::Loader v0.07049 @ 2026-06-24 22:36:07
228 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:UYBB7D0xS7nVMLjF6Vq63g
229 # These lines were loaded from '/usr/local/lib/perl5/site_perl/Lilith/Schema/Result/SuricataAlert.pm' found in @INC.
230 # They are now part of the custom portion of this file
231 # for you to hand-edit. If you do not either delete
232 # this section or remove that file from @INC, this section
233 # will be repeated redundantly when you re-create this
234 # file again via Loader! See skip_load_external to disable
235 # this feature.
236  
237 3 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
238 package Lilith::Schema::Result::SuricataAlert;
239  
240 # Created by DBIx::Class::Schema::Loader
241 # DO NOT MODIFY THE FIRST PART OF THIS FILE
242  
243 =head1 NAME
244  
245 Lilith::Schema::Result::SuricataAlert
246  
247 =cut
248  
249 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
250 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
251  
252 3 ▶use base 'DBIx::Class::Core';
Subroutine BEGIN: called CC=1 SCAR=0.0
253  
254 =head1 TABLE: C<suricata_alerts>
255  
256 =cut
257  
258 3 __PACKAGE__->table("suricata_alerts");
259  
260 =head1 ACCESSORS
261  
262 =head2 id
263  
264 data_type: 'bigint'
265 is_auto_increment: 1
266 is_nullable: 0
267 sequence: 'suricata_alerts_id_seq'
268  
269 =head2 instance
270  
271 data_type: 'varchar'
272 is_nullable: 0
273 size: 255
274  
275 =head2 host
276  
277 data_type: 'varchar'
278 is_nullable: 0
279 size: 255
280  
281 =head2 timestamp
282  
283 data_type: 'timestamp with time zone'
284 is_nullable: 0
285  
286 =head2 event_id
287  
288 data_type: 'varchar'
289 is_nullable: 0
290 size: 64
291  
292 =head2 flow_id
293  
294 data_type: 'bigint'
295 is_nullable: 1
296  
297 =head2 in_iface
298  
299 data_type: 'varchar'
300 is_nullable: 1
301 size: 255
302  
303 =head2 src_ip
304  
305 data_type: 'inet'
306 is_nullable: 1
307  
308 =head2 src_port
309  
310 data_type: 'integer'
311 is_nullable: 1
312  
313 =head2 dest_ip
314  
315 data_type: 'inet'
316 is_nullable: 1
317  
318 =head2 dest_port
319  
320 data_type: 'integer'
321 is_nullable: 1
322  
323 =head2 proto
324  
325 data_type: 'varchar'
326 is_nullable: 1
327 size: 32
328  
329 =head2 app_proto
330  
331 data_type: 'varchar'
332 is_nullable: 1
333 size: 255
334  
335 =head2 flow_pkts_toserver
336  
337 data_type: 'integer'
338 is_nullable: 1
339  
340 =head2 flow_bytes_toserver
341  
342 data_type: 'integer'
343 is_nullable: 1
344  
345 =head2 flow_pkts_toclient
346  
347 data_type: 'integer'
348 is_nullable: 1
349  
350 =head2 flow_bytes_toclient
351  
352 data_type: 'integer'
353 is_nullable: 1
354  
355 =head2 flow_start
356  
357 data_type: 'timestamp with time zone'
358 is_nullable: 1
359  
360 =head2 classification
361  
362 data_type: 'varchar'
363 is_nullable: 1
364 size: 1024
365  
366 =head2 signature
367  
368 data_type: 'varchar'
369 is_nullable: 1
370 size: 2048
371  
372 =head2 gid
373  
374 data_type: 'integer'
375 is_nullable: 1
376  
377 =head2 sid
378  
379 data_type: 'bigint'
380 is_nullable: 1
381  
382 =head2 rev
383  
384 data_type: 'bigint'
385 is_nullable: 1
386  
387 =head2 raw
388  
389 data_type: 'json'
390 is_nullable: 0
391  
392 =cut
393  
394 3 __PACKAGE__->add_columns(
395 "id",
396 {
397 data_type => "bigint",
398 is_auto_increment => 1,
399 is_nullable => 0,
400 sequence => "suricata_alerts_id_seq",
401 },
402 "instance",
403 { data_type => "varchar", is_nullable => 0, size => 255 },
404 "host",
405 { data_type => "varchar", is_nullable => 0, size => 255 },
406 "timestamp",
407 { data_type => "timestamp with time zone", is_nullable => 0 },
408 "event_id",
409 { data_type => "varchar", is_nullable => 0, size => 64 },
410 "flow_id",
411 { data_type => "bigint", is_nullable => 1 },
412 "in_iface",
413 { data_type => "varchar", is_nullable => 1, size => 255 },
414 "src_ip",
415 { data_type => "inet", is_nullable => 1 },
416 "src_port",
417 { data_type => "integer", is_nullable => 1 },
418 "dest_ip",
419 { data_type => "inet", is_nullable => 1 },
420 "dest_port",
421 { data_type => "integer", is_nullable => 1 },
422 "proto",
423 { data_type => "varchar", is_nullable => 1, size => 32 },
424 "app_proto",
425 { data_type => "varchar", is_nullable => 1, size => 255 },
426 "flow_pkts_toserver",
427 { data_type => "integer", is_nullable => 1 },
428 "flow_bytes_toserver",
429 { data_type => "integer", is_nullable => 1 },
430 "flow_pkts_toclient",
431 { data_type => "integer", is_nullable => 1 },
432 "flow_bytes_toclient",
433 { data_type => "integer", is_nullable => 1 },
434 "flow_start",
435 { data_type => "timestamp with time zone", is_nullable => 1 },
436 "classification",
437 { data_type => "varchar", is_nullable => 1, size => 1024 },
438 "signature",
439 { data_type => "varchar", is_nullable => 1, size => 2048 },
440 "gid",
441 { data_type => "integer", is_nullable => 1 },
442 "sid",
443 { data_type => "bigint", is_nullable => 1 },
444 "rev",
445 { data_type => "bigint", is_nullable => 1 },
446 "raw",
447 { data_type => "json", is_nullable => 0 },
448 );
449  
450 =head1 PRIMARY KEY
451  
452 =over 4
453  
454 =item * L</id>
455  
456 =back
457  
458 =cut
459  
460 3 __PACKAGE__->set_primary_key("id");
461  
462  
463 # Created by DBIx::Class::Schema::Loader v0.07049 @ 2026-03-15 22:29:36
464 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:cS8b29asQj6VYpHQxjjbwg
465  
466  
467 # You can replace this text with custom code or comments, and it will be preserved on regeneration
468 3 1;
469 # End of lines loaded from '/usr/local/lib/perl5/site_perl/Lilith/Schema/Result/SuricataAlert.pm'
470  
471  
472 # You can replace this text with custom code or comments, and it will be preserved on regeneration
473 3 1;
« Lilith/Schema/Result/SaganAlert.pm ↑ Summary