Commit b5a51733 authored by Matthias Käppler's avatar Matthias Käppler

Merge branch '299489-over-10-of-graphql-descriptions-are-missing-alert-status-enum' into 'master'

Add descriptions for Alert statuses

See merge request gitlab-org/gitlab!60152
parents 9b26541f 85e35360
......@@ -7,7 +7,7 @@ module Types
description 'Alert status values'
::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
......
......@@ -22,6 +22,13 @@ module AlertManagement
}.freeze
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 :issue, optional: true
belongs_to :prometheus_alert, optional: true
......
......@@ -13185,10 +13185,10 @@ Alert status values.
| Value | Description |
| ----- | ----------- |
| <a id="alertmanagementstatusacknowledged"></a>`ACKNOWLEDGED` | Acknowledged status. |
| <a id="alertmanagementstatusignored"></a>`IGNORED` | Ignored status. |
| <a id="alertmanagementstatusresolved"></a>`RESOLVED` | Resolved status. |
| <a id="alertmanagementstatustriggered"></a>`TRIGGERED` | Triggered status. |
| <a id="alertmanagementstatusacknowledged"></a>`ACKNOWLEDGED` | Someone is actively investigating the problem. |
| <a id="alertmanagementstatusignored"></a>`IGNORED` | No action will be taken on the alert. |
| <a id="alertmanagementstatusresolved"></a>`RESOLVED` | No further work is required. |
| <a id="alertmanagementstatustriggered"></a>`TRIGGERED` | Investigation has not started. |
### `ApiFuzzingScanMode`
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment