Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kpi Generator - deprecated
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Coscine
backend
scripts
Kpi Generator - deprecated
Compare revisions
v1.1.0 to v1.1.1
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
coscine/backend/scripts/kpi-generator-deprecated
Select target project
No results found
v1.1.1
Select Git revision
Loading items
Swap
Target
coscine/backend/scripts/kpi-generator-deprecated
Select target project
coscine/backend/scripts/kpi-generator-deprecated
1 result
v1.1.0
Select Git revision
Loading items
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (2)
Fix: Included check
· 23c7e0ac
Marcel Nellesen
authored
4 years ago
23c7e0ac
Merge branch 'Sprint/2020-20' into 'master'
· 75e02fe6
Marcel Nellesen
authored
4 years ago
Sprint/2020 20 See merge request coscine/cs/kpi-generator!4
75e02fe6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/KpiGenerator/Program.cs
+7
-2
7 additions, 2 deletions
src/KpiGenerator/Program.cs
with
7 additions
and
2 deletions
src/KpiGenerator/Program.cs
View file @
75e02fe6
...
@@ -22,6 +22,8 @@ namespace Coscine.KpiGenerator
...
@@ -22,6 +22,8 @@ namespace Coscine.KpiGenerator
ConsulConfiguration
configuration
=
new
ConsulConfiguration
();
ConsulConfiguration
configuration
=
new
ConsulConfiguration
();
DataConnection
.
DefaultSettings
=
new
CoscineSettings
(
configuration
);
DataConnection
.
DefaultSettings
=
new
CoscineSettings
(
configuration
);
var
liveMode
=
configuration
.
GetStringAndWait
(
"coscine/global/reporting/live"
);
// Run all Generators for the KPI
// Run all Generators for the KPI
// each Generator returns a list of KPI, it can have zero entries.
// each Generator returns a list of KPI, it can have zero entries.
List
<
Kpi
>
newKpis
=
new
List
<
Kpi
>();
List
<
Kpi
>
newKpis
=
new
List
<
Kpi
>();
...
@@ -43,7 +45,10 @@ namespace Coscine.KpiGenerator
...
@@ -43,7 +45,10 @@ namespace Coscine.KpiGenerator
// try to sent them as a bundle with the csv method
// try to sent them as a bundle with the csv method
HamsterReporter
hamsterReporter
=
new
HamsterReporter
(
configuration
);
HamsterReporter
hamsterReporter
=
new
HamsterReporter
(
configuration
);
if
(
liveMode
==
"1"
)
{
hamsterReporter
.
Send
(
kpiToProcess
);
hamsterReporter
.
Send
(
kpiToProcess
);
}
// if the kpi were sent successful mark all values within the database as successfully sent
// if the kpi were sent successful mark all values within the database as successfully sent
foreach
(
Kpi
kpi
in
kpiToProcess
)
foreach
(
Kpi
kpi
in
kpiToProcess
)
...
...
This diff is collapsed.
Click to expand it.