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",
|
"name": "@lendry-erp/contracts",
|
||||||
"version": "1.2.30",
|
"version": "1.2.31",
|
||||||
"description": "Protobuf definitions and generated TypeScript types",
|
"description": "Protobuf definitions and generated TypeScript types",
|
||||||
"type": "commonjs",
|
"type": "commonjs",
|
||||||
"main": "./dist/index.js",
|
"main": "./dist/index.js",
|
||||||
|
|||||||
@@ -26,6 +26,7 @@ service AdminService {
|
|||||||
|
|
||||||
// Синхронизация с поисковым движком (Elasticsearch)
|
// Синхронизация с поисковым движком (Elasticsearch)
|
||||||
rpc SyncUsersToSearch (SyncUsersToSearchRequest) returns (SyncUsersToSearchResponse);
|
rpc SyncUsersToSearch (SyncUsersToSearchRequest) returns (SyncUsersToSearchResponse);
|
||||||
|
rpc HandleGrafanaAlert(GrafanaAlertRequest) returns (GrafanaAlertResponse);
|
||||||
|
|
||||||
|
|
||||||
// RBAC
|
// RBAC
|
||||||
@@ -245,4 +246,12 @@ message UpdatePermissionAdminRequest {
|
|||||||
message ModifyPermissionAdminResponse {
|
message ModifyPermissionAdminResponse {
|
||||||
bool success = 1;
|
bool success = 1;
|
||||||
string message = 2;
|
string message = 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
message GrafanaAlertRequest {
|
||||||
|
string payload = 1;
|
||||||
|
}
|
||||||
|
// Успешно ли обработан алерт
|
||||||
|
message GrafanaAlertResponse {
|
||||||
|
bool success = 1;
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user