Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Vladimir
noc
Commits
c6e662da
Commit
c6e662da
authored
Jul 07, 2022
by
Andrey Vertiprahov
Browse files
Add message type.
parent
c0c73e31
Changes
2
Hide whitespace changes
Inline
Side-by-side
config.py
View file @
c6e662da
...
...
@@ -469,7 +469,6 @@ class Config(BaseConfig):
enable_metric_scopes
=
ListParameter
(
item
=
StringParameter
(),
default
=
[])
#
enable_snmptrap
=
BooleanParameter
(
default
=
False
)
enable_syslog
=
BooleanParameter
(
default
=
False
)
class
mongo
(
ConfigSection
):
addresses
=
ServiceParameter
(
service
=
"mongo"
,
wait
=
True
)
...
...
core/mx.py
View file @
c6e662da
...
...
@@ -30,7 +30,7 @@ MX_PROFILE_ID = "Profile-Id"
MX_LABELS
=
"Labels"
MX_H_VALUE_SPLITTER
=
";"
# Available message types
MESSAGE_TYPES
=
{
"alarm"
,
"managedobject"
,
"reboot"
,
"metrics"
,
"notification"
}
MESSAGE_TYPES
=
{
"alarm"
,
"managedobject"
,
"reboot"
,
"metrics"
,
"notification"
,
"snmptrap"
}
MESSAGE_HEADERS
=
{
MX_SHARDING_KEY
,
MX_TO
,
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment