From 8362b50bcbb6acae78a034b1403f74fb7bc03f48 Mon Sep 17 00:00:00 2001 From: prplV Date: Thu, 13 Feb 2025 12:53:21 +0300 Subject: [PATCH] readme and config update --- README.md | 8 +++---- config_api.json | 64 ++++++++++++++++++++++++------------------------- 2 files changed, 35 insertions(+), 37 deletions(-) diff --git a/README.md b/README.md index 072cfc6..46b067c 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ | Crate (submodule) | Progress | |---|---| -|`api-grub` | ✅✅✅✅✅✅✅✅✅🔲 | -|`config-delivery` | ✅✅✅✅✅✅✅🔲🔲🔲 | -|`integrs-structs` | ✅✅✅✅✅✅✅✅🔲🔲 | -|`preproc` | ✅✅✅❌❌❌❌❌❌❌ | (разработка временно остановлена) +|`api-grub` | ✅✅✅✅✅✅✅🛠️🛠️🛠️ | +|`config-delivery` | ✅✅✅✅✅✅✅🛠️🛠️🛠️ | +|`integrs-structs` | ✅✅✅✅✅✅✅✅✅✅ | +|`preproc` [temp-deprecated] | ✅✅✅❌❌❌❌❌❌❌ | (разработка временно остановлена) diff --git a/config_api.json b/config_api.json index d5be22f..0b5e33f 100644 --- a/config_api.json +++ b/config_api.json @@ -1,34 +1,32 @@ -{ - "id" : 1 , - "template" : - [{ - "id" :"mock_api_1", - "name" : "Mock / ", - "url" : "http://127.0.0.1:8081/", - "method" : "GET", - "measure" : - [ - "response", "test_metric_1", "test_metric_2", - "test_metric_3", "test_metric_4", "test_metric_5" - ] - }, +{ + "config": [ { - "id" :"mock_api_2", - "name" : "Mock /ping ", - "url" : "http://127.0.0.1:8081/ping", - "method" : "GET", - "measure" : - [ - "response", "test_metric_1", "test_metric_2", - "test_metric_3", "test_metric_4", "test_metric_5", - "empty_field" - ] - } - ], - "ip_address" : "127.0.0.1:8081", - "login" : "", - "pass" : "" , - "api_key" : "908c709827bd40n98r7209837x98273", - "period" : 10, - "timeout" : 10 -} + "id":"demo_vcs_vinteo_dev_api", + "login" : "", + "pass" : "", + "api_key" : "6fe8b0db-62b4-4065-9c1e-441ec4228341.9acec20bd17d7178f332896f8c006452877a22b8627d089105ed39c5baef9711", + "period" : "", + "timeout" : "3", + "metrics" : [ + { + "name": "conferences", + "url": "https://demo.vcs.vinteo.dev/api/v1/conferences", + "measure": [ + { "id":"number", "type": "text", "addr": "data.conferences[].number" }, + { "id":"total", "type": "integer", "addr": "data.total" }, + { "id":"participants_total", "type": "integer", "addr": "data.conferences[].participants.total" }, + { "id":"parts_total_in_each", "type": "integer", "addr": "data.conferences[description].participants.total" }, + { "id":"participants_online", "type": "integer", "addr": "data.conferences[].participants.online" } + ] + }, + { + "name": "abonents", + "url": "https://demo.vcs.vinteo.dev/api/v1/accounts", + "measure": [ + { "id":"total", "type": "integer", "addr": "data.total" } + ] + } + ] + } + ] +} \ No newline at end of file