2020-04-28 15:09:29 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Types
|
|
|
|
module AlertManagement
|
|
|
|
class StatusEnum < BaseEnum
|
|
|
|
graphql_name 'AlertManagementStatus'
|
|
|
|
description 'Alert status values'
|
|
|
|
|
2020-05-07 15:09:29 +00:00
|
|
|
::AlertManagement::Alert::STATUSES.each do |name, value|
|
|
|
|
value name.upcase, value: value, description: "#{name.to_s.titleize} status"
|
2020-04-28 15:09:29 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|