Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Unknown committed Oct 26, 2024
0 parents commit dac6502
Show file tree
Hide file tree
Showing 165 changed files with 21,314 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .buildinfo
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 added .nojekyll
Empty file.
Binary file added _images/01.add_new_connection.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/02.json_api.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/03.install_json_api.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/04.add_new_ds.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/05.setup_ds.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/06.save_and_test.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/07.new_dashboard.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/08.new_panel.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/09.select_ds.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/10.panel_settings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/11.set_path.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/12.set_params.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/13.query_inspector.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/14.refresh.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/15.got_data.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/16.fields.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/17.trend.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/18.periods.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/architecture_01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/architecture_02.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/architecture_03.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/architecture_04.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/architecture_05.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/architecture_06.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/architecture_07.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/architecture_08.png
Binary file added _images/architecture_09.png
Binary file added _images/architecture_10.png
Binary file added _images/datapool.png
Binary file added _images/exchanges_01.png
Binary file added _images/exchanges_02.png
Binary file added _images/fromAndCount.png
Binary file added _images/fromAndCount2.png
Binary file added _images/fromAndCountActual.png
Binary file added _images/methods_01.png
Binary file added _images/period_fromAfterData.png
Binary file added _images/period_fromAndToReal.png
Binary file added _images/period_fromAndToRealActual.png
Binary file added _images/period_fromBeforeData.png
Binary file added _images/period_fromNotReal.png
Binary file added _images/period_fromStepFalse.png
Binary file added _images/period_fromStepTrue.png
Binary file added _images/period_fromToOutside.png
Binary file added _images/period_to.png
Binary file added _images/period_toBefore.png
Binary file added _images/subscribers_01.png
Binary file added _images/subscribers_02.png
Binary file added _images/subscribers_03.png
Binary file added _images/subscribers_04.png
Binary file added _images/tagId_step.png
Binary file added _images/tagId_stepFalse.png
Binary file added _images/tagId_stepTrue.png
Binary file added _images/timeStepAndCount.png
Binary file added _images/timeStepFromCount.png
Binary file added _images/timeStepFromTo.png
Binary file added _images/timestep_count_2.png
Binary file added _images/timestep_none_1.png
Binary file added _images/timestep_none_2.png
Binary file added _images/toAndCount.png
Binary file added _images/toAndCount2.png
Binary file added _images/toAndCount3.png
Binary file added _images/toAndCountActual.png
Binary file added _images/value.png
Binary file added _images/withNull.png
Binary file added _images/withNull2.png
Binary file added _images/withNull3.png
Binary file added _images/withNull4.png
6 changes: 6 additions & 0 deletions _sources/alerts.rst.txt
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
82 changes: 82 additions & 0 deletions _sources/api.rst.txt
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>
1,190 changes: 1,190 additions & 0 deletions _sources/architecture.rst.txt

Large diffs are not rendered by default.

36 changes: 36 additions & 0 deletions _sources/common_classes.rst.txt
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:
33 changes: 33 additions & 0 deletions _sources/components.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
Компоненты
----------
Компоненты платформы:

#. **Сервисы платформы**.

Исходный код платформы. Может быть запущен в виде одного приложения или как набор микросервисов.
#. **OpenLDAP**.

Иерархическая модель автоматизируемого объекта,
модель информационной системы.

Аутентификация и авторизация пользователей.
#. **RabbitMQ**.

Брокер сообщений. Микросервисы ядра общаются между собой с его помощью.
#. **Nginx**.

Прокси сервер, балансировщик нагрузки, TLS-прокси.
Распределяет HTTP-запросы между микросервисами платформы, Grafan'ой и конфигуратором.
#. **Redis**.

Кэш-сервер.
#. **PostgreSQL**.

По умолчанию платформа содержит СУБД PostgreSQL в качестве исторической базы данных.
В общем случае исторические данные могут храниться в нескольких базах, причём разных типов.
#. **Grafana**.

Инструмент для создания экранов мониторинга.
#. **Конфигуратор**.

Приложение для создания моделей объектов.
5 changes: 5 additions & 0 deletions _sources/configurator.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.. _configurator:

Конфигуратор модели
-------------------
Работайте с конфигуратором модели.
6 changes: 6 additions & 0 deletions _sources/connectors.rst.txt
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
Loading

0 comments on commit dac6502

Please sign in to comment.