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