Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
43fea56d
Commit
43fea56d
authored
Jul 13, 2021
by
Sean Arnold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Deprecate monthly incident_sla_enabled metric
parent
39393b4e
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
5 deletions
+6
-5
doc/development/usage_ping/dictionary.md
doc/development/usage_ping/dictionary.md
+3
-1
ee/config/metrics/counts_all/20210216183753_projects_incident_sla_enabled.yml
...unts_all/20210216183753_projects_incident_sla_enabled.yml
+1
-1
ee/lib/ee/gitlab/usage_data.rb
ee/lib/ee/gitlab/usage_data.rb
+1
-1
ee/spec/lib/ee/gitlab/usage_data_spec.rb
ee/spec/lib/ee/gitlab/usage_data_spec.rb
+1
-2
No files found.
doc/development/usage_ping/dictionary.md
View file @
43fea56d
...
@@ -4354,6 +4354,8 @@ The total count of Helm packages that have been published.
...
@@ -4354,6 +4354,8 @@ The total count of Helm packages that have been published.
Group:
`group::package`
Group:
`group::package`
Data Category:
`Optional`
Status:
`implemented`
Status:
`implemented`
Tiers:
`free`
,
`premium`
,
`ultimate`
Tiers:
`free`
,
`premium`
,
`ultimate`
...
@@ -22264,7 +22266,7 @@ Group: `group::monitor`
...
@@ -22264,7 +22266,7 @@ Group: `group::monitor`
Data Category: `Optional`
Data Category: `Optional`
Status: `d
ata_available
`
Status: `d
eprecated
`
Tiers: `premium`, `ultimate`
Tiers: `premium`, `ultimate`
...
...
ee/config/metrics/counts_all/20210216183753_projects_incident_sla_enabled.yml
View file @
43fea56d
...
@@ -7,7 +7,7 @@ product_stage:
...
@@ -7,7 +7,7 @@ product_stage:
product_group
:
group::monitor
product_group
:
group::monitor
product_category
:
metrics
product_category
:
metrics
value_type
:
number
value_type
:
number
status
:
d
ata_available
status
:
d
eprecated
time_frame
:
all
time_frame
:
all
data_source
:
database
data_source
:
database
distribution
:
distribution
:
...
...
ee/lib/ee/gitlab/usage_data.rb
View file @
43fea56d
...
@@ -320,7 +320,7 @@ module EE
...
@@ -320,7 +320,7 @@ module EE
def
usage_activity_by_stage_monitor
(
time_period
)
def
usage_activity_by_stage_monitor
(
time_period
)
super
.
merge
({
super
.
merge
({
operations_dashboard_users_with_projects_added:
distinct_count
(
UsersOpsDashboardProject
.
joins
(
:user
).
merge
(
::
User
.
active
).
where
(
time_period
),
:user_id
),
operations_dashboard_users_with_projects_added:
distinct_count
(
UsersOpsDashboardProject
.
joins
(
:user
).
merge
(
::
User
.
active
).
where
(
time_period
),
:user_id
),
projects_incident_sla_enabled:
count
(
::
Project
.
with_enabled_incident_sla
)
projects_incident_sla_enabled:
time_period
.
present?
?
::
Gitlab
::
UsageData
::
DEPRECATED_VALUE
:
count
(
::
Project
.
with_enabled_incident_sla
)
})
})
end
end
...
...
ee/spec/lib/ee/gitlab/usage_data_spec.rb
View file @
43fea56d
...
@@ -477,8 +477,7 @@ RSpec.describe Gitlab::UsageData do
...
@@ -477,8 +477,7 @@ RSpec.describe Gitlab::UsageData do
projects_incident_sla_enabled:
2
projects_incident_sla_enabled:
2
)
)
expect
(
described_class
.
usage_activity_by_stage_monitor
(
described_class
.
monthly_time_range_db_params
)).
to
include
(
expect
(
described_class
.
usage_activity_by_stage_monitor
(
described_class
.
monthly_time_range_db_params
)).
to
include
(
operations_dashboard_users_with_projects_added:
1
,
operations_dashboard_users_with_projects_added:
1
projects_incident_sla_enabled:
2
)
)
end
end
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment