From b801a223a5067eeea8b2590a12e9271bf0652c5e Mon Sep 17 00:00:00 2001 From: Peeter Kokk Date: Wed, 27 Dec 2023 13:32:11 +0200 Subject: [PATCH] add db checks --- proto/v1/squzy_monitoring.proto | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/proto/v1/squzy_monitoring.proto b/proto/v1/squzy_monitoring.proto index 3e092ff..1a1fcef 100644 --- a/proto/v1/squzy_monitoring.proto +++ b/proto/v1/squzy_monitoring.proto @@ -65,6 +65,10 @@ enum SchedulerType { SITE_MAP = 4; HTTP_JSON_VALUE = 5; SSL_EXPIRATION = 6; + MONGO = 7; + POSTGRES = 8; + CASSANDRA = 9; + MYSQL = 10; } message GetSchedulerByIdRequest { @@ -81,14 +85,16 @@ message Scheduler { // Timeout for check request int32 timeout = 6; // Config of the scheduler; - oneof config { TcpConfig tcp = 7; SiteMapConfig sitemap = 8; GrpcConfig grpc = 9; HttpConfig http = 10; HttpJsonValueConfig http_value = 11; SslExpirationConfig ssl_expiration = 12; - } + DbConfig mongo = 13; + DbConfig postgres = 14; + DbConfig cassandra = 15; + DbConfig mysql = 16; } message GetSchedulerListResponse { @@ -110,6 +116,15 @@ message SslExpirationConfig { int32 port = 3; } +message DbConfig { + string host = 1; + int32 port = 2; + string user = 3; + string password = 4; + string db_name = 5; + string cluster = 6; +} + message GrpcConfig { string service = 1; string host = 2; @@ -157,6 +172,10 @@ message AddRequest { HttpConfig http = 7; HttpJsonValueConfig http_value = 8; SslExpirationConfig ssl_expiration = 9; + DbConfig mongo = 10; + DbConfig postgres = 11; + DbConfig cassandra = 12; + DbConfig mysql = 13; } } @@ -186,4 +205,4 @@ message RunResponse { message StopResponse { string id = 1; -} \ No newline at end of file +}