diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-09-20 14:18:08 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-09-20 14:18:08 +0300 |
commit | 5afcbe03ead9ada87621888a31a62652b10a7e4f (patch) | |
tree | 9918b67a0d0f0bafa6542e839a8be37adf73102d /lib/gitlab/alert_management | |
parent | c97c0201564848c1f53226fe19d71fdcc472f7d0 (diff) |
Add latest changes from gitlab-org/gitlab@16-4-stable-eev16.4.0-rc42
Diffstat (limited to 'lib/gitlab/alert_management')
-rw-r--r-- | lib/gitlab/alert_management/payload/prometheus.rb | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/lib/gitlab/alert_management/payload/prometheus.rb b/lib/gitlab/alert_management/payload/prometheus.rb index 15fa91646c8..e64fb52c0cf 100644 --- a/lib/gitlab/alert_management/payload/prometheus.rb +++ b/lib/gitlab/alert_management/payload/prometheus.rb @@ -7,32 +7,32 @@ module Gitlab class Prometheus < Base extend Gitlab::Utils::Override - attribute :alert_markdown, paths: %w(annotations gitlab_incident_markdown) + attribute :alert_markdown, paths: %w[annotations gitlab_incident_markdown] attribute :annotations, paths: 'annotations' - attribute :description, paths: %w(annotations description) + attribute :description, paths: %w[annotations description] attribute :ends_at, paths: 'endsAt', type: :time - attribute :environment_name, paths: %w(labels gitlab_environment_name) - attribute :generator_url, paths: %w(generatorURL) + attribute :environment_name, paths: %w[labels gitlab_environment_name] + attribute :generator_url, paths: %w[generatorURL] attribute :gitlab_y_label, - paths: [%w(annotations gitlab_y_label), - %w(annotations title), - %w(annotations summary), - %w(labels alertname)] - attribute :runbook, paths: %w(annotations runbook) + paths: [%w[annotations gitlab_y_label], + %w[annotations title], + %w[annotations summary], + %w[labels alertname]] + attribute :runbook, paths: %w[annotations runbook] attribute :starts_at, paths: 'startsAt', type: :time, fallback: -> { Time.current.utc } attribute :status, paths: 'status' attribute :title, - paths: [%w(annotations title), - %w(annotations summary), - %w(labels alertname)] + paths: [%w[annotations title], + %w[annotations summary], + %w[labels alertname]] attribute :starts_at_raw, - paths: [%w(startsAt)] + paths: [%w[startsAt]] private :starts_at_raw - attribute :severity_raw, paths: %w(labels severity) + attribute :severity_raw, paths: %w[labels severity] private :severity_raw METRIC_TIME_WINDOW = 30.minutes |