-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Unknown
committed
Oct 26, 2024
0 parents
commit dac6502
Showing
165 changed files
with
21,314 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Sphinx build info version 1 | ||
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. | ||
config: 87a177b1e73838c010114f2605fd89c8 | ||
tags: 645f666f9bcd5a90fca523b33c5a78b7 |
Empty file.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Тревоги | ||
~~~~~~~ | ||
|
||
.. automodule:: alerts_api_crud_svc | ||
:members: | ||
:exclude-members: AlertCreateAttributes, AlertCreate, AlertRead, AlertUpdate, AlertsAPICRUD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
API Платформы Пересвет | ||
====================== | ||
|
||
Правила API | ||
----------- | ||
|
||
.. warning:: Внимание! | ||
При создании любых сущностей (тэги, объекты, тревоги и т.д.) в их именах | ||
допустимы любые символы. При этом обратный слэш (\) и кавычки должны предваряться символом обратного слэша. | ||
|
||
Есть несколько базовых правил, на которых основывается API платформы: | ||
|
||
#. Имена атрибутов в json-объектах, названия запросов придерживаются | ||
правил camelCase. | ||
|
||
Пример: | ||
|
||
.. code-block:: json | ||
{ | ||
"parentId": "...", | ||
"tagName": "..." | ||
} | ||
#. Тело запроса к платформе содержит только один json-объект. | ||
Массивы данных передаются внутри этого объекта. | ||
#. Ответ на запрос также содержит только один json-объект. | ||
#. В случае ошибки обработки запроса в json-объекте ответа | ||
на запрос есть ключ ``detail```, значение | ||
которого - список пояснений к ошибке: | ||
|
||
.. code-block:: json | ||
{ | ||
"detail": [ | ||
{ | ||
"type": "type_of_error", | ||
"loc": [ | ||
"place_of_error" | ||
], | ||
"msg": "message", | ||
"input": {}, | ||
"ctx": { | ||
"error": "name_of_error" | ||
} | ||
} | ||
] | ||
} | ||
либо строка: | ||
|
||
.. code-block:: json | ||
{ | ||
"detail": "описание ошибки" | ||
} | ||
#. По возможности все команды платформы работают с массивами данных. | ||
См. документацию на каждую команду. | ||
|
||
#. В связи с использованием ldap-сервера для хранения иерархий | ||
имена всех сущностей представлены в виде атрибута ``cn``. | ||
|
||
#. У каждого узла в иерархии присутствует атрибут ``entryUUID``. | ||
Это специальный неизменяемый атрибут, содержащий уникальный идентификатор узла. | ||
Платформа сама присваивает значение этому атрибуту при создании нового узла. | ||
При перемещении узла по иерархии этот атрибут сохраняется без изменений. | ||
|
||
Модули | ||
------ | ||
|
||
.. toctree:: | ||
:maxdepth: 6 | ||
|
||
Тревоги<alerts> | ||
Теги<tags> | ||
Обьекты<objects> | ||
Коннекторы<connectors> | ||
Хранилища данных<dataStorages_api_doc> | ||
Расписания<schedules> | ||
Методы<methods_api_doc> | ||
Запись/получение данных<data_api> |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
Общие классы | ||
------------ | ||
В этом разделе описаны общие классы, от которых наследуются все сервисы, | ||
а также классы, используемые всеми сервисами. | ||
|
||
Модуль ``hierarchy`` | ||
~~~~~~~~~~~~~~~~~~~~ | ||
.. automodule:: src.common.hierarchy | ||
:members: | ||
:private-members: | ||
:show-inheritance: | ||
:noindex: | ||
|
||
Модуль ``logger`` | ||
~~~~~~~~~~~~~~~~~ | ||
.. automodule:: src.common.logger | ||
:members: | ||
:private-members: | ||
:exclude-members: InterceptHandler | ||
:show-inheritance: | ||
:noindex: | ||
|
||
Модуль ``svc`` | ||
~~~~~~~~~~~~~~ | ||
.. automodule:: src.common.svc | ||
:members: | ||
:private-members: | ||
:show-inheritance: | ||
:noindex: | ||
|
||
Модуль ``svc_settings`` | ||
~~~~~~~~~~~~~~~~~~~~~~~ | ||
.. automodule:: src.common.svc_settings | ||
:members: | ||
:show-inheritance: | ||
:noindex: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
Компоненты | ||
---------- | ||
Компоненты платформы: | ||
|
||
#. **Сервисы платформы**. | ||
|
||
Исходный код платформы. Может быть запущен в виде одного приложения или как набор микросервисов. | ||
#. **OpenLDAP**. | ||
|
||
Иерархическая модель автоматизируемого объекта, | ||
модель информационной системы. | ||
|
||
Аутентификация и авторизация пользователей. | ||
#. **RabbitMQ**. | ||
|
||
Брокер сообщений. Микросервисы ядра общаются между собой с его помощью. | ||
#. **Nginx**. | ||
|
||
Прокси сервер, балансировщик нагрузки, TLS-прокси. | ||
Распределяет HTTP-запросы между микросервисами платформы, Grafan'ой и конфигуратором. | ||
#. **Redis**. | ||
|
||
Кэш-сервер. | ||
#. **PostgreSQL**. | ||
|
||
По умолчанию платформа содержит СУБД PostgreSQL в качестве исторической базы данных. | ||
В общем случае исторические данные могут храниться в нескольких базах, причём разных типов. | ||
#. **Grafana**. | ||
|
||
Инструмент для создания экранов мониторинга. | ||
#. **Конфигуратор**. | ||
|
||
Приложение для создания моделей объектов. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
.. _configurator: | ||
|
||
Конфигуратор модели | ||
------------------- | ||
Работайте с конфигуратором модели. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Коннекторы | ||
~~~~~~~~~~ | ||
|
||
.. automodule:: connectors_api_crud_svc | ||
:members: | ||
:exclude-members: LinkTagAttributes, LinkTag, ConnectorAttributes, ConnectorCreate, ConnectorRead, OneConnectorInReadResult, ConnectorReadResult, ConnectorUpdate, ConnectorsAPICRUD |
Oops, something went wrong.