aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-db-dao/src/main/java/org/sonar/db/DbClient.java
diff options
context:
space:
mode:
authorAlain Kermis <alain.kermis@sonarsource.com>2024-07-10 15:37:38 +0200
committersonartech <sonartech@sonarsource.com>2024-07-24 20:02:48 +0000
commitffb8e4af38b27af60d9ba3127f7925580c59ca3f (patch)
treeb034bdd63de61363f0b83ef855dfc6466816eed3 /server/sonar-db-dao/src/main/java/org/sonar/db/DbClient.java
parent34cf59a340ea31410cbb60019e6e445e9d8d2929 (diff)
downloadsonarqube-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.java7
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;
}