Class: Gitlab::AlertManagement::Payload::Generic
- Defined in:
- lib/gitlab/alert_management/payload/generic.rb
Constant Summary collapse
- DEFAULT_TITLE =
'New: Alert'
- DEFAULT_SOURCE =
'Generic Alert Endpoint'
Constants inherited from Base
Base::SEVERITY_MAPPING, Base::UNMAPPED_SEVERITY
Instance Attribute Summary
Attributes inherited from Base
#integration, #payload, #project
Instance Method Summary collapse
Methods inherited from Base
#alert_params, attribute, #environment, #gitlab_fingerprint, #has_required_attributes?, #severity
Methods included from Routing
includes_helpers, redirect_legacy_paths, url_helpers
Instance Method Details
#resolved? ⇒ Boolean
27 28 29 |
# File 'lib/gitlab/alert_management/payload/generic.rb', line 27 def resolved? ends_at.present? end |
#source ⇒ Object
31 32 33 |
# File 'lib/gitlab/alert_management/payload/generic.rb', line 31 def source super || DEFAULT_SOURCE end |