Сущность представляющая схемы для модуля треков
Структура SchemeEntity типа Tracker:
"_id" : ObjectId(), "type" : string "Tracker", "name" : string, "dataSetId" : ObjectId(), "organizationId" : ObjectId(), "trackerId" : ObjectId(), "icon" : string //data:image/*type*;base64,*base64EncodeIcon*
Структура SchemeEntity типа Collector:
"_id" : ObjectId(),
"type" : string "Collector",
"name" : string,
"dataSetId" : ObjectId(),
"organizationId" : ObjectId(),
"trackerId" : ObjectId(),
"icon" : string //data:image/*type*;base64,*base64EncodeIcon*
"fields": [
{
"name" : string,
"type" : string,
"value" : mixed, // Зависит от типа поля
"required" : bool, // Поле обязательно для заполнения
"alias" : string
}
]
Структура SchemeEntity типа Collector Dependent:
"_id" : ObjectId(),
"type" : string "Collector Dependent",
"name" : string,
"dataSetId" : ObjectId(),
"organizationId" : ObjectId(),
"trackerId" : ObjectId(),
"icon" : string //data:image/*type*;base64,*base64EncodeIcon*
"fields": [
{
"name" : string,
"type" : string,
"value" : mixed, // Зависит от типа поля
"required" : bool, // Поле обязательно для заполнения
"alias" : string
}
],
"description" : string, //mustache format string
"searchId" : ObjectId()
Структура SchemeEntity типа Command:
"_id" : ObjectId(),
"type" : string "Command",
"name" : string,
"dataSetId" : ObjectId(),
"organizationId" : ObjectId(),
"trackerId" : ObjectId(),
"icon" : string //data:image/*type*;base64,*base64EncodeIcon*
"fields": [
{
"name" : string,
"type" : string,
"value" : mixed, // Зависит от типа поля
"required" : bool, // Поле обязательно для заполнения
"alias" : string
}
],
"command" : string