Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FoD
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
David Schmitz
FoD
Commits
a82a1047
Commit
a82a1047
authored
4 weeks ago
by
David Schmitz
Browse files
Options
Downloads
Patches
Plain Diff
testing: update inst/testing/nemo1/: update
parent
af8768ca
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
inst/testing/nemo1/mynemo-mitigation-init-db-final.sh
+2
-0
2 additions, 0 deletions
inst/testing/nemo1/mynemo-mitigation-init-db-final.sh
inst/testing/nemo1/nemo-initial-detectors1.sql
+66
-0
66 additions, 0 deletions
inst/testing/nemo1/nemo-initial-detectors1.sql
with
68 additions
and
0 deletions
inst/testing/nemo1/mynemo-mitigation-init-db-final.sh
+
2
−
0
View file @
a82a1047
...
...
@@ -10,4 +10,6 @@ docker exec -ti nemo_mitigated_1 /services/inst/nemo-erkennung/bin/nemo-dbadmin
docker
exec
-ti
nemo_nemodb_1 psql
-U
nemo
-c
"INSERT INTO router_nets (router_id, net_id) VALUES (1, 1), (1, 2), (1, 3)"
cat
/nemo-all/nemo-initial-detectors1.sql | docker
exec
-i
nemo_nemodb_1 psql
-U
nemo nemo
This diff is collapsed.
Click to expand it.
inst/testing/nemo1/nemo-initial-detectors1.sql
0 → 100644
+
66
−
0
View file @
a82a1047
--
-- PostgreSQL database dump
--
-- Dumped from database version 12.22 (Debian 12.22-1.pgdg120+1)
-- Dumped by pg_dump version 12.22 (Debian 12.22-1.pgdg120+1)
--
-- Data for Name: trigger; Type: TABLE DATA; Schema: public; Owner: nemo
--
COPY
public
.
trigger
(
id
,
name
,
description
,
trigger_type
,
autostart
,
email
,
description_template
,
subject_template
,
body_template
,
short_open_template
,
long_open_template
,
short_upgrade_template
,
long_upgrade_template
,
short_close_template
,
long_close_template
,
default_filter
,
do_not_send_mails
,
mail_analysis_severity
)
FROM
stdin
;
1
evw
time_window
t
\
N
f
100
\
.
--
-- Data for Name: detector; Type: TABLE DATA; Schema: public; Owner: nemo
--
COPY
public
.
detector
(
id
,
name
,
detector_type
,
num_threads
,
autostart
,
visibility
,
objectfilter
)
FROM
stdin
;
1
th1
threshold
1
t
name
oid
==
"net_2"
\
.
-- Data for Name: detector_param; Type: TABLE DATA; Schema: public; Owner: nemo
--
COPY
public
.
detector_param
(
id
,
object_id
,
object_type
,
name
,
val
,
detector_id
)
FROM
stdin
;
56
\
N
\
N
field_name
numbytes
1
57
\
N
\
N
info_above
10000
1
58
\
N
\
N
warn_above
20000
1
59
\
N
\
N
critical_above
50000
1
\
.
--
-- Data for Name: tag; Type: TABLE DATA; Schema: public; Owner: nemo
--
COPY
public
.
tag
(
id
,
name
,
scope
,
expired
)
FROM
stdin
;
\
.
--
-- Data for Name: tagged_item; Type: TABLE DATA; Schema: public; Owner: nemo
--
COPY
public
.
tagged_item
(
id
,
object_id
,
content_type_id
,
tag_id
,
automatic
)
FROM
stdin
;
\
.
--
-- Data for Name: timewindowtrigger; Type: TABLE DATA; Schema: public; Owner: nemo
--
COPY
public
.
timewindowtrigger
(
triggerconfig_ptr_id
,
per_object
,
per_event_type
,
per_detector
,
open_conditions
,
upgrade_conditions1
,
upgrade_conditions2
,
close_conditions
)
FROM
stdin
;
1
f
f
t
{
"severity"
:
"0"
,
"op"
:
"all"
,
"conds"
:[{
"type"
:
"timewindow"
,
"comp"
:
"gt"
,
"count"
:
"1"
,
"minutes"
:
"5"
,
"filter"
:[{
"type"
:
"detector_id"
,
"comp"
:
"eq"
,
"val"
:
"1"
}],
"filter_op"
:
"all"
}]}
{
"severity"
:
"0"
,
"op"
:
"all"
,
"conds"
:[]}
{
"severity"
:
"0"
,
"op"
:
"all"
,
"conds"
:[]}
{
"op"
:
"all"
,
"conds"
:[]}
\
.
--
-- PostgreSQL database dump complete
--
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment