feat: add webhooks for grafana
All checks were successful
Publish / Publish Job (push) Successful in 2m23s
All checks were successful
Publish / Publish Job (push) Successful in 2m23s
This commit is contained in:
@@ -26,6 +26,7 @@ service AdminService {
|
||||
|
||||
// Синхронизация с поисковым движком (Elasticsearch)
|
||||
rpc SyncUsersToSearch (SyncUsersToSearchRequest) returns (SyncUsersToSearchResponse);
|
||||
rpc HandleGrafanaAlert(GrafanaAlertRequest) returns (GrafanaAlertResponse);
|
||||
|
||||
|
||||
// RBAC
|
||||
@@ -245,4 +246,12 @@ message UpdatePermissionAdminRequest {
|
||||
message ModifyPermissionAdminResponse {
|
||||
bool success = 1;
|
||||
string message = 2;
|
||||
}
|
||||
|
||||
message GrafanaAlertRequest {
|
||||
string payload = 1;
|
||||
}
|
||||
// Успешно ли обработан алерт
|
||||
message GrafanaAlertResponse {
|
||||
bool success = 1;
|
||||
}
|
||||
Reference in New Issue
Block a user