Skip to content
Snippets Groups Projects

Statistics graph

Merged Imre Toth requested to merge statistics-graph into master
7 files
+ 507
2
Compare changes
  • Side-by-side
  • Inline
Files
7
+ 54
0
@@ -449,6 +449,16 @@ export function useNamingNames() {
return useAsync({ fcn: method, call: false, init: [] });
}
export function unpackDeploymentStatistics(statistics) {
return { ...statistics };
}
export function useDeploymentStatistics() {
const api = useContext(apiContext);
const method = callAndUnpack(api.apis.Statistics.deploymentStatistics, unpackDeploymentStatistics)
return useAsync({ fcn: method, call: false });
}
export function unpackTagAndCommitIdList(tagList) {
return tagList.toString().split(",");
}
@@ -457,4 +467,48 @@ export function useTagsAndCommitIds() {
const api = useContext(apiContext);
const method = callAndUnpack((repoUrl) => api.apis.Git.listTagsAndCommitIds({gitRepo: repoUrl}), unpackTagAndCommitIdList)
return useAsync({ fcn: method, call: false, init: [] });
}
export function unpackIOCStatistics(statistics) {
return { ...statistics };
}
export function useIOCStatistics() {
const api = useContext(apiContext);
const method = callAndUnpack(api.apis.Statistics.iocStatistics, unpackIOCStatistics)
return useAsync({ fcn: method, call: false });
}
export function unpackCurrentlyActiveIOCS(statistics) {
return { ...statistics };
}
export function useCurrentlyActiveIOCs() {
const api = useContext(apiContext);
const method = callAndUnpack(api.apis.Statistics.currentlyActiveIocs, unpackCurrentlyActiveIOCS)
return useAsync({ fcn: method, call: false });
}
export function unpackActiveIOCHistory(statistics) {
return { ...statistics };
}
export function useActiveIOCHistory() {
const api = useContext(apiContext);
const method = callAndUnpack(api.apis.Statistics.activeIocHistory, unpackActiveIOCHistory)
return useAsync({ fcn: method, call: false });
}
export function unpackDeployedIOCStat(statistics) {
return { ...statistics };
}
export function useDeployedIOCStatistics() {
const api = useContext(apiContext);
const method = callAndUnpack(api.apis.Statistics.iocDeploymentHistory, unpackDeployedIOCStat)
return useAsync({ fcn: method, call: false });
}
\ No newline at end of file
Loading