-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add breakdown per org on stats metrics when a date is specified (#517)
Signed-off-by: Paolo Di Tommaso <[email protected]> Co-authored-by: Paolo Di Tommaso <[email protected]>
- Loading branch information
1 parent
de97575
commit b24894a
Showing
11 changed files
with
209 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,33 +26,6 @@ import io.seqera.wave.tower.PlatformId | |
* @author Munish Chouhan <[email protected]> | ||
*/ | ||
interface MetricsService { | ||
/** | ||
* get the Wave builds metrics | ||
* | ||
* @param date, date of the required metrics | ||
* @param org, org of the required metrics | ||
* @return Long, builds counts | ||
*/ | ||
Long getBuildsMetrics(String date, String org) | ||
|
||
/** | ||
* get the Wave pulls metrics | ||
* | ||
* @param date, date of the required metrics | ||
* @param org, org of the required metrics | ||
* @return Long, pulls counts | ||
*/ | ||
Long getPullsMetrics(String date, String org) | ||
|
||
/** | ||
* get the Wave fusion pulls metrics | ||
* | ||
* @param date, date of the required metrics | ||
* @param org, org of the required metrics | ||
* @return Long, fusion pulls counts | ||
*/ | ||
Long getFusionPullsMetrics(String date, String org) | ||
|
||
/** | ||
* increment wave fusion pulls count | ||
* | ||
|
@@ -80,5 +53,13 @@ interface MetricsService { | |
* @param metric | ||
* @return GetOrgCountResponse | ||
*/ | ||
GetOrgCountResponse getOrgCount(String metric) | ||
GetOrgCountResponse getAllOrgCount(String metric) | ||
|
||
/** | ||
* Get counts per organisations or per date or per both | ||
* | ||
* @param metric | ||
* @return GetOrgCountResponse | ||
*/ | ||
GetOrgCountResponse getOrgCount(String metric, String date, String org) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
@pditommaso i think it should be ORG in ORF_DATE_KEY_PATTERN?