Skip to content

Commit

Permalink
add db checks
Browse files Browse the repository at this point in the history
  • Loading branch information
Peeter Kokk committed Dec 27, 2023
1 parent 78e7bf7 commit b801a22
Showing 1 changed file with 22 additions and 3 deletions.
25 changes: 22 additions & 3 deletions proto/v1/squzy_monitoring.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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 {
Expand All @@ -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;
Expand Down Expand Up @@ -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;
}
}

Expand Down Expand Up @@ -186,4 +205,4 @@ message RunResponse {

message StopResponse {
string id = 1;
}
}

0 comments on commit b801a22

Please sign in to comment.