Commit e3144b1c authored by Sean Arnold's avatar Sean Arnold

Update usage ping to use Issue incident spec

parent ab38e6c7
...@@ -121,7 +121,7 @@ module Gitlab ...@@ -121,7 +121,7 @@ module Gitlab
issues_created_from_alerts: total_alert_issues, issues_created_from_alerts: total_alert_issues,
issues_created_gitlab_alerts: issues_created_manually_from_alerts, issues_created_gitlab_alerts: issues_created_manually_from_alerts,
issues_created_manually_from_alerts: issues_created_manually_from_alerts, issues_created_manually_from_alerts: issues_created_manually_from_alerts,
incident_issues: alert_bot_incident_count, incident_issues: count(::Issue.incident),
alert_bot_incident_issues: alert_bot_incident_count, alert_bot_incident_issues: alert_bot_incident_count,
incident_labeled_issues: count(::Issue.with_label_attributes(::IncidentManagement::CreateIncidentLabelService::LABEL_PROPERTIES), start: issue_minimum_id, finish: issue_maximum_id), incident_labeled_issues: count(::Issue.with_label_attributes(::IncidentManagement::CreateIncidentLabelService::LABEL_PROPERTIES), start: issue_minimum_id, finish: issue_maximum_id),
keys: count(Key), keys: count(Key),
......
...@@ -31,8 +31,8 @@ FactoryBot.define do ...@@ -31,8 +31,8 @@ FactoryBot.define do
create(:project_error_tracking_setting, project: projects[1], enabled: false) create(:project_error_tracking_setting, project: projects[1], enabled: false)
create(:alerts_service, project: projects[0]) create(:alerts_service, project: projects[0])
create(:alerts_service, :inactive, project: projects[1]) create(:alerts_service, :inactive, project: projects[1])
alert_bot_issues = create_list(:issue, 2, project: projects[0], author: User.alert_bot) alert_bot_issues = create_list(:incident, 2, project: projects[0], author: User.alert_bot)
create_list(:issue, 2, project: projects[1], author: User.alert_bot) create_list(:incident, 2, project: projects[1], author: User.alert_bot)
issues = create_list(:issue, 4, project: projects[0]) issues = create_list(:issue, 4, project: projects[0])
create_list(:prometheus_alert, 2, project: projects[0]) create_list(:prometheus_alert, 2, project: projects[0])
create(:prometheus_alert, project: projects[1]) create(:prometheus_alert, project: projects[1])
......
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