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
85e35360
Commit
85e35360
authored
Apr 27, 2021
by
Jonathan Schafer
Committed by
Matthias Käppler
Apr 27, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add descriptions for Alert statuses
parent
16e75b24
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
5 deletions
+12
-5
app/graphql/types/alert_management/status_enum.rb
app/graphql/types/alert_management/status_enum.rb
+1
-1
app/models/alert_management/alert.rb
app/models/alert_management/alert.rb
+7
-0
doc/api/graphql/reference/index.md
doc/api/graphql/reference/index.md
+4
-4
No files found.
app/graphql/types/alert_management/status_enum.rb
View file @
85e35360
...
@@ -7,7 +7,7 @@ module Types
...
@@ -7,7 +7,7 @@ module Types
description
'Alert status values'
description
'Alert status values'
::
AlertManagement
::
Alert
.
status_names
.
each
do
|
status
|
::
AlertManagement
::
Alert
.
status_names
.
each
do
|
status
|
value
status
.
to_s
.
upcase
,
value:
status
,
description:
"
#{
status
.
to_s
.
titleize
}
status"
value
status
.
to_s
.
upcase
,
value:
status
,
description:
::
AlertManagement
::
Alert
::
STATUS_DESCRIPTIONS
[
status
]
end
end
end
end
end
end
...
...
app/models/alert_management/alert.rb
View file @
85e35360
...
@@ -22,6 +22,13 @@ module AlertManagement
...
@@ -22,6 +22,13 @@ module AlertManagement
}.
freeze
}.
freeze
private_constant
:STATUSES
private_constant
:STATUSES
STATUS_DESCRIPTIONS
=
{
triggered:
'Investigation has not started'
,
acknowledged:
'Someone is actively investigating the problem'
,
resolved:
'No further work is required'
,
ignored:
'No action will be taken on the alert'
}.
freeze
belongs_to
:project
belongs_to
:project
belongs_to
:issue
,
optional:
true
belongs_to
:issue
,
optional:
true
belongs_to
:prometheus_alert
,
optional:
true
belongs_to
:prometheus_alert
,
optional:
true
...
...
doc/api/graphql/reference/index.md
View file @
85e35360
...
@@ -13180,10 +13180,10 @@ Alert status values.
...
@@ -13180,10 +13180,10 @@ Alert status values.
| Value | Description |
| Value | Description |
| ----- | ----------- |
| ----- | ----------- |
|
<a
id=
"alertmanagementstatusacknowledged"
></a>
`ACKNOWLEDGED`
|
Acknowledged status
. |
|
<a
id=
"alertmanagementstatusacknowledged"
></a>
`ACKNOWLEDGED`
|
Someone is actively investigating the problem
. |
|
<a
id=
"alertmanagementstatusignored"
></a>
`IGNORED`
|
Ignored status
. |
|
<a
id=
"alertmanagementstatusignored"
></a>
`IGNORED`
|
No action will be taken on the alert
. |
|
<a
id=
"alertmanagementstatusresolved"
></a>
`RESOLVED`
|
Resolved status
. |
|
<a
id=
"alertmanagementstatusresolved"
></a>
`RESOLVED`
|
No further work is required
. |
|
<a
id=
"alertmanagementstatustriggered"
></a>
`TRIGGERED`
|
Triggered status
. |
|
<a
id=
"alertmanagementstatustriggered"
></a>
`TRIGGERED`
|
Investigation has not started
. |
### `ApiFuzzingScanMode`
### `ApiFuzzingScanMode`
...
...
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