BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
fda83a61
Commit
fda83a61
authored
Aug 07, 2017
by
Bob Van Landuyt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use correct `Environment`-class within `Gitlab` namespace
parent
faabcbd3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
additional_metrics_environment_query.rb
...rometheus/queries/additional_metrics_environment_query.rb
+1
-1
environment_query.rb
lib/gitlab/prometheus/queries/environment_query.rb
+1
-1
usage_data.rb
lib/gitlab/usage_data.rb
+2
-2
No files found.
lib/gitlab/prometheus/queries/additional_metrics_environment_query.rb
View file @
fda83a61
...
...
@@ -5,7 +5,7 @@ module Gitlab
include
QueryAdditionalMetrics
def
query
(
environment_id
)
Environment
.
find_by
(
id:
environment_id
).
try
do
|
environment
|
::
Environment
.
find_by
(
id:
environment_id
).
try
do
|
environment
|
query_metrics
(
common_query_context
(
environment
,
timeframe_start:
8
.
hours
.
ago
.
to_f
,
timeframe_end:
Time
.
now
.
to_f
)
)
...
...
lib/gitlab/prometheus/queries/environment_query.rb
View file @
fda83a61
...
...
@@ -3,7 +3,7 @@ module Gitlab
module
Queries
class
EnvironmentQuery
<
BaseQuery
def
query
(
environment_id
)
Environment
.
find_by
(
id:
environment_id
).
try
do
|
environment
|
::
Environment
.
find_by
(
id:
environment_id
).
try
do
|
environment
|
environment_slug
=
environment
.
slug
timeframe_start
=
8
.
hours
.
ago
.
to_f
timeframe_end
=
Time
.
now
.
to_f
...
...
lib/gitlab/usage_data.rb
View file @
fda83a61
...
...
@@ -27,8 +27,8 @@ module Gitlab
ci_pipeline_schedules:
::
Ci
::
PipelineSchedule
.
count
,
deploy_keys:
DeployKey
.
count
,
deployments:
Deployment
.
count
,
environments:
Environment
.
count
,
in_review_folder:
Environment
.
in_review_folder
.
count
,
environments:
::
Environment
.
count
,
in_review_folder:
::
Environment
.
in_review_folder
.
count
,
groups:
Group
.
count
,
issues:
Issue
.
count
,
keys:
Key
.
count
,
...
...
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