diff options
author | Alain Kermis <alain.kermis@sonarsource.com> | 2024-07-10 15:37:38 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2024-07-24 20:02:48 +0000 |
commit | ffb8e4af38b27af60d9ba3127f7925580c59ca3f (patch) | |
tree | b034bdd63de61363f0b83ef855dfc6466816eed3 /server/sonar-db-dao/src/main/java/org/sonar/db/DbClient.java | |
parent | 34cf59a340ea31410cbb60019e6e445e9d8d2929 (diff) | |
download | sonarqube-ffb8e4af38b27af60d9ba3127f7925580c59ca3f.tar.gz sonarqube-ffb8e4af38b27af60d9ba3127f7925580c59ca3f.zip |
SONAR-22479 Implement sending new telemetry metrics
Diffstat (limited to 'server/sonar-db-dao/src/main/java/org/sonar/db/DbClient.java')
-rw-r--r-- | server/sonar-db-dao/src/main/java/org/sonar/db/DbClient.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/server/sonar-db-dao/src/main/java/org/sonar/db/DbClient.java b/server/sonar-db-dao/src/main/java/org/sonar/db/DbClient.java index a670f4fbca1..c336b040b8c 100644 --- a/server/sonar-db-dao/src/main/java/org/sonar/db/DbClient.java +++ b/server/sonar-db-dao/src/main/java/org/sonar/db/DbClient.java @@ -92,6 +92,7 @@ import org.sonar.db.schemamigration.SchemaMigrationDao; import org.sonar.db.scim.ScimGroupDao; import org.sonar.db.scim.ScimUserDao; import org.sonar.db.source.FileSourceDao; +import org.sonar.db.telemetry.TelemetryMetricsSentDao; import org.sonar.db.user.ExternalGroupDao; import org.sonar.db.user.GroupDao; import org.sonar.db.user.GroupMembershipDao; @@ -195,6 +196,7 @@ public class DbClient { private final RuleChangeDao ruleChangeDao; private final ProjectExportDao projectExportDao; private final IssueFixedDao issueFixedDao; + private final TelemetryMetricsSentDao telemetryMetricsSentDao; public DbClient(Database database, MyBatis myBatis, DBSessions dbSessions, Dao... daos) { this.database = database; @@ -288,6 +290,7 @@ public class DbClient { ruleChangeDao = getDao(map, RuleChangeDao.class); projectExportDao = getDao(map, ProjectExportDao.class); issueFixedDao = getDao(map, IssueFixedDao.class); + telemetryMetricsSentDao = getDao(map, TelemetryMetricsSentDao.class); } public DbSession openSession(boolean batch) { @@ -342,6 +345,10 @@ public class DbClient { return issueFixedDao; } + public TelemetryMetricsSentDao telemetryMetricsSentDao() { + return telemetryMetricsSentDao; + } + public QualityProfileDao qualityProfileDao() { return qualityProfileDao; } |