aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVitaly Isaev <vitalyisaev@ydb.tech>2024-08-09 18:11:42 +0300
committerGitHub <noreply@github.com>2024-08-09 15:11:42 +0000
commit13d5b4c413516a8dee1c34db29df096cc2e386af (patch)
treec2474da33738300e2e866d784b140b2e89d1869b
parent633ff575647118017b3e38bfc7e58d1fb350cf34 (diff)
downloadydb-13d5b4c413516a8dee1c34db29df096cc2e386af.tar.gz
YDB FQ: add missing types of connections to cloud audit (#7607)
-rw-r--r--ydb/core/fq/libs/cloud_audit/yq_cloud_audit_service.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/ydb/core/fq/libs/cloud_audit/yq_cloud_audit_service.cpp b/ydb/core/fq/libs/cloud_audit/yq_cloud_audit_service.cpp
index 5647add100..ded18a3816 100644
--- a/ydb/core/fq/libs/cloud_audit/yq_cloud_audit_service.cpp
+++ b/ydb/core/fq/libs/cloud_audit/yq_cloud_audit_service.cpp
@@ -65,7 +65,11 @@ std::string MapConnectionType(const FederatedQuery::ConnectionSetting::Connectio
return "Monitoring";
case FederatedQuery::ConnectionSetting::ConnectionCase::kPostgresqlCluster:
return "PostgreSQLCluster";
- default:
+ case FederatedQuery::ConnectionSetting::ConnectionCase::kGreenplumCluster:
+ return "GreenplumCluster";
+ case FederatedQuery::ConnectionSetting::ConnectionCase::kMysqlCluster:
+ return "MySQLCluster";
+ case FederatedQuery::ConnectionSetting::ConnectionCase::CONNECTION_NOT_SET:
Y_ENSURE(false, "Invalid connection case " << i32(connectionCase));
}
}
@@ -76,8 +80,8 @@ std::string MapBindingType(const FederatedQuery::BindingSetting::BindingCase& bi
return "YdbDataStreams";
case FederatedQuery::BindingSetting::BindingSetting::kObjectStorage:
return "ObjectStorage";
- default:
- Y_ENSURE(false, "Invalid connection case " << i32(bindingCase));
+ case FederatedQuery::BindingSetting::BindingSetting::BINDING_NOT_SET:
+ Y_ENSURE(false, "Invalid binding case " << i32(bindingCase));
}
}