Skip to content

Commit 13d5b4c

Browse files
authored
YDB FQ: add missing types of connections to cloud audit (#7607)
1 parent 633ff57 commit 13d5b4c

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

ydb/core/fq/libs/cloud_audit/yq_cloud_audit_service.cpp

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,11 @@ std::string MapConnectionType(const FederatedQuery::ConnectionSetting::Connectio
6565
return "Monitoring";
6666
case FederatedQuery::ConnectionSetting::ConnectionCase::kPostgresqlCluster:
6767
return "PostgreSQLCluster";
68-
default:
68+
case FederatedQuery::ConnectionSetting::ConnectionCase::kGreenplumCluster:
69+
return "GreenplumCluster";
70+
case FederatedQuery::ConnectionSetting::ConnectionCase::kMysqlCluster:
71+
return "MySQLCluster";
72+
case FederatedQuery::ConnectionSetting::ConnectionCase::CONNECTION_NOT_SET:
6973
Y_ENSURE(false, "Invalid connection case " << i32(connectionCase));
7074
}
7175
}
@@ -76,8 +80,8 @@ std::string MapBindingType(const FederatedQuery::BindingSetting::BindingCase& bi
7680
return "YdbDataStreams";
7781
case FederatedQuery::BindingSetting::BindingSetting::kObjectStorage:
7882
return "ObjectStorage";
79-
default:
80-
Y_ENSURE(false, "Invalid connection case " << i32(bindingCase));
83+
case FederatedQuery::BindingSetting::BindingSetting::BINDING_NOT_SET:
84+
Y_ENSURE(false, "Invalid binding case " << i32(bindingCase));
8185
}
8286
}
8387

0 commit comments

Comments
 (0)