Документация для версии Axxon Next 4.4.6. Документация на другие версии также доступна.

Предыдущая страница Следующая страница

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

На странице:

Создание сущности архива

{
    "method": "axxonsoft.bl.config.ConfigurationService.ChangeConfig",
    "data": {
        "added": [
            {
                "uid": "hosts/P-ZHARKOVA",
                "units": [
                    {
                        "type": "MultimediaStorage",
                        "properties": [
                            {
                                "id": "color",
                                "value_string": "Pink",
                                "properties": []
                            },
                            {
                                "id": "display_name",
                                "value_string": "Pink",
                                "properties": []
                            }
                        ],
                        "units": [],
                        "opaque_params": []
                    }
                ],
                "opaque_params": []
            }
        ]
    }
}

где

  • uid - Сервер, на котором создаем архив;
  • units - свойства.

Добавление файла архива

{
    "method": "axxonsoft.bl.config.ConfigurationService.ChangeConfig",
    "data": {
        "added": [
            {
                "uid": "hosts/P-ZHARKOVA/MultimediaStorage.Red",
                "units": [
                    {
                        "type": "ArchiveVolume",
                        "properties": [
                            {
                                "id": "volume_type",
                                "properties": [
                                    {
                                        "id": "file_name",
                                        "value_string": "D:/archiveRed.afs"
                                    }
                                ],
                                "value_string": "local"
                            },
                            {
                                "id": "file_size",
                                "value_int32": 2
                            },
                            {
                                "id": "format",
                                "value_bool": true
                            }
                        ]
                    }
                ]
            }
        ]
    }
}

Привязка видеокамеры к архиву

Создание ArchiveContext с постоянной записью:

{
    "method": "axxonsoft.bl.config.ConfigurationService.ChangeConfig",
    "data": {
        "added": [
            {
                "uid": "hosts/P-ZHARKOVA/MultimediaStorage.Yellow",
                "units": [
                    {
                        "type": "ArchiveContext",
                        "properties": [
                            {
                                "id": "camera_ref",
                                "value_string": "hosts/P-ZHARKOVA/DeviceIpint.10/SourceEndpoint.video:0:0"
                            },
                            {
                                "id": "constant_recording",
                                "value_bool": true
                            },
                            {
                                "id": "prerecord_sec",
                                "value_int32": 0
                            },
                            {
                                "id": "specific_fps",
                                "value_double": 0
                            }
                        ]
                    }
                ]
            }
        ]
    }
}

В ответе будет uid добавленного ArchiveContext:

{
    "failed": [],
    "added": [
        "hosts/P-ZHARKOVA/MultimediaStorage.Yellow/ArchiveContext/b73f4b6c-2962-5d51-e9ee-ceb5420b4cd2"
    ]
}


  • No labels