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:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@lendry-erp/contracts",
|
||||
"version": "1.2.30",
|
||||
"version": "1.2.31",
|
||||
"description": "Protobuf definitions and generated TypeScript types",
|
||||
"type": "commonjs",
|
||||
"main": "./dist/index.js",
|
||||
|
||||
@@ -26,6 +26,7 @@ service AdminService {
|
||||
|
||||
// Синхронизация с поисковым движком (Elasticsearch)
|
||||
rpc SyncUsersToSearch (SyncUsersToSearchRequest) returns (SyncUsersToSearchResponse);
|
||||
rpc HandleGrafanaAlert(GrafanaAlertRequest) returns (GrafanaAlertResponse);
|
||||
|
||||
|
||||
// RBAC
|
||||
@@ -246,3 +247,11 @@ 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