This is the codeAbility Sharing Platform! Learn more about the
codeAbility Sharing Platform
.
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
codeAbility Sharing Platform
Manage
Activity
Members
Labels
Plan
Issues
43
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
development
sharing
codeAbility Sharing Platform
Commits
26bbdbd3
Commit
26bbdbd3
authored
2 years ago
by
Johannes Kainz
Browse files
Options
Downloads
Patches
Plain Diff
changed monitoring job method
parent
ed73e965
Branches
Branches containing commit
2 merge requests
!188
Merging Peer Reviewing et. al to Master
,
!164
211 peer reviewing functionality
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/at/ac/uibk/gitsearch/service/MonitoringService.java
+4
-6
4 additions, 6 deletions
.../java/at/ac/uibk/gitsearch/service/MonitoringService.java
with
4 additions
and
6 deletions
src/main/java/at/ac/uibk/gitsearch/service/MonitoringService.java
+
4
−
6
View file @
26bbdbd3
...
...
@@ -104,13 +104,11 @@ public class MonitoringService {
}
/**
* exports the monitoring relevant metrics regularly
* <p></p>
* This is scheduled to get fired hourly
* Monitors metrics with an hourly cron job
*/
@Scheduled
(
cron
=
"0 30 * * * ?"
)
public
void
exportMonitoring
Metrics
()
{
log
.
debug
(
"
Export
monitoring
relevant metrics
"
);
public
void
monitorHourly
Metrics
()
{
log
.
debug
(
"
Started
monitoring
cron job
"
);
this
.
setNumberUsers
();
...
...
@@ -124,6 +122,7 @@ public class MonitoringService {
}
catch
(
IOException
exception
)
{
log
.
warn
(
"An IOException occurred\n"
+
Arrays
.
toString
(
exception
.
getStackTrace
()));
}
log
.
debug
(
"Finished monitoring cron job"
);
}
private
void
setNumberUsers
()
{
...
...
@@ -306,5 +305,4 @@ public class MonitoringService {
searchResultList
.
forEach
(
searchResult
->
exerciseIDs
.
add
(
searchResult
.
getExerciseId
()));
return
exerciseIDs
;
}
//TODO: refactor !
}
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment