in usage-statistics-impl/src/jetbrains/buildServer/usageStatistics/impl/providers/StaticServerUsageStatisticsProvider.java [110:125]
private void publishNumberOfDependencies(@NotNull final UsageStatisticsPublisher publisher, @NotNull final UsageStatisticsPresentationManager presentationManager) {
final String snapshotDependencyNumberId = makeId("snapshotDependencyNumber");
final String artifactDependencyNumberId = makeId("artifactDependencyNumber");
int snapshotDependencies = 0, artifactDependencies = 0;
for (final SBuildType buildType : myServer.getProjectManager().getActiveBuildTypes()) {
snapshotDependencies += buildType.getDependencies().size();
artifactDependencies += buildType.getArtifactDependencies().size();
}
presentationManager.applyPresentation(snapshotDependencyNumberId, "Snapshot dependencies", myGroupName, null, null);
publisher.publishStatistic(snapshotDependencyNumberId, snapshotDependencies);
presentationManager.applyPresentation(artifactDependencyNumberId, "Artifact dependencies", myGroupName, null, null);
publisher.publishStatistic(artifactDependencyNumberId, artifactDependencies);
}