Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions proto/v1/squzy_monitoring.proto
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ enum SchedulerType {
POSTGRES = 8;
CASSANDRA = 9;
MYSQL = 10;
HTML = 11;
}

message GetSchedulerByIdRequest {
Expand Down Expand Up @@ -96,6 +97,7 @@ message Scheduler {
DbConfig postgres = 14;
DbConfig cassandra = 15;
DbConfig mysql = 16;
HtmlValueConfig html_value_config = 17;
}
}

Expand Down Expand Up @@ -161,6 +163,28 @@ message HttpJsonValueConfig {
}
}

message HtmlValueConfig {
string method = 1;
string url = 2;
map<string, string> headers = 3;
repeated Selector selectors = 4;
enum HtmlValueParseType {
HTML_PARSE_VALUE_UNSPECIFIED = 0;
BOOL = 1;
STRING = 2;
INT = 3;
INT64 = 4;
FLOAT = 5;
FLOAT64 = 6;
ARRAY = 7;
OBJECT = 8;
}
message Selector {
HtmlValueParseType type = 1;
string path = 2;
}
}

message AddRequest {
// How often we need execute check
int32 interval = 1;
Expand All @@ -178,6 +202,7 @@ message AddRequest {
DbConfig postgres = 11;
DbConfig cassandra = 12;
DbConfig mysql = 13;
HtmlValueConfig html_value_config = 14;
}
}

Expand Down