Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
df626202
Commit
df626202
authored
Jul 07, 2020
by
Vitali Tatarintev
Committed by
Amy Qualls
Jul 07, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Explicitly mention custom params for generic alerts
parent
995919b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
doc/user/project/integrations/generic_alerts.md
doc/user/project/integrations/generic_alerts.md
+14
-1
No files found.
doc/user/project/integrations/generic_alerts.md
View file @
df626202
...
...
@@ -47,6 +47,14 @@ You can customize the payload by sending the following parameters. All fields ot
|
`severity`
| String | The severity of the alert. Must be one of
`critical`
,
`high`
,
`medium`
,
`low`
,
`info`
,
`unknown`
. Default is
`critical`
. |
|
`fingerprint`
| String or Array | The unique identifier of the alert. This can be used to group occurrences of the same alert. |
You can also add custom fields to the alert's payload. The values of extra parameters
are not limited to primitive types, such as strings or numbers, but can be a nested
JSON object. For example:
```
json
{
"foo"
:
{
"bar"
:
{
"baz"
:
42
}
}
}
```
TIP:
**Payload size:**
Ensure your requests are smaller than the
[
payload application limits
](
../../../administration/instance_limits.md#generic-alert-json-payloads
)
.
...
...
@@ -73,6 +81,11 @@ Example payload:
"monitoring_tool"
:
"value"
,
"hosts"
:
"value"
,
"severity"
:
"high"
,
"fingerprint"
:
"d19381d4e8ebca87b55cda6e8eee7385"
"fingerprint"
:
"d19381d4e8ebca87b55cda6e8eee7385"
,
"foo"
:
{
"bar"
:
{
"baz"
:
42
}
}
}
```
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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