Go to documentation repository
Page History
To get the identifier of the detection tool mask, it is necessary to run a query of the following typeAby uzyskać identyfikator maski narzędzia detekcji, należy wysłać zapytanie następującego typu:
| Code Block |
|---|
{
"method":"axxonsoft.bl.config.ConfigurationService.ListUnits",
"data":{
"unit_uids": ["hosts/Server1/AppDataDetector.1"]
}
} |
where gdzie unit_uids is the name of the required detection tool (see jest nazwą wymaganego narzędzia detekcji (zobacz: Zarządzaj urządzeniami za pomocą metod gRPC API (ConfigurationService)).
Find the units parameter group in the query responseZnajdź grupę parametrów units w odpowiedzi na zapytanie:
| Code Block |
|---|
"units": [
{
"uid": "hosts/Server1/AppDataDetector.1/VisualElement.76c7fadf-7f96-4f30-b57a-e3ba585fbc6f",
"display_id": "76c7fadf-7f96-4f30-b57a-e3ba585fbc6f",
"type": "VisualElement",
"display_name": "Polyline",
"access_point": "",
"properties": [
{
"id": "polyline",
"name": "Polyline",
"description": "Polyline.",
"type": "SimplePolygon",
"readonly": false,
"internal": false,
"value_simple_polygon": {
"points": [
{
"x": 0.01,
"y": 0.01
},
{
"x": 0.01,
"y": 0.99
},
{
"x": 0.99,
"y": 0.99
},
{
"x": 0.99,
"y": 0.01
}
]
}
} |
where gdzie:
- uid - the mask identifieridentyfikator maski.
- x, y - the coordinates of the point apexkoordynaty wierzchołków.
To change the points of the mask, it is necessary to run a query using the obtained mask uidAby zmienić points maski, należy wykonać zapytanie, korzystając z uzyskanego uid maski:
| Code Block |
|---|
{
"method": "axxonsoft.bl.config.ConfigurationService.ChangeConfig",
"data": {
"changed": [
{
"uid": "hosts/Server1/AppDataDetector.1/VisualElement.76c7fadf-7f96-4f30-b57a-e3ba585fbc6f",
"type": "VisualElement",
"properties": [
{
"id": "polyline",
"value_simple_polygon": {
"points": [
{
"x": 0.01,
"y": 0.01
},
{
"x": 0.01,
"y": 0.99
},
{
"x": 0.99,
"y": 0.99
},
{
"x": 0.99,
"y": 0.01
}
]
}
}
]
}
]
} |
You can also add and remove the polygon points of the mask using this queryIstnieje także możliwość dodania oraz usunięcia wierzchołków maski, używając tego zapytania.