Skip to end of metadata
Go to start of metadata

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

Compare with Current View Page History

« Previous Version 21 Next »

In our platform, we use several objects in the application tree. List of objects see below.

\uD83D\uDCD8 Tree items

The objects user, camera, electrical input, dashboard, folder and more are nodes in the tree structure. You can find all available types in the generated documentation in API Explorer.

Tree items


This structure allows:

  1. Get aggregated metrics from multiple objects.

  2. Manage user permissions for a group of objects.

  3. Organizing objects into groups for better clarity in the user interface.

The folder object allows for endless immersion. Some objects, such as the electrical input, are always immersed under the camera object.

Example - nodeList:

List of all elements(nodes) that the user has the user right to see. Keep in mind that with OAuth2 authorization, a TOKEN may be issued to a guest user who does not see all the elements.

Query:

query {
  nodeList {
      parent_node_id
      node_id
      type
      name
  }
}

Response:

{
  "data": {
    "nodeList": [
      {
        "parent_node_id": null,
        "node_id": 138170,
        "type": "folder",
        "name": "rootfolder"
      },
      {
        "parent_node_id": 138170,
        "node_id": 138170,
        "type": "folder",
        "name": "San Diego"
      },
...
    ]
  }
}

Example - camera type in nodeList:

If we want to get only objects of type "camera", we use the optional parameter type.

Query:

query {
  nodeList(type:camera) {
    parent_node_id
    type
    name
    node_id
  }
}

Response:

{
  "data": {
    "nodeList": [
      {
        "parent_node_id": 138170,
        "type": "camera",
        "name": "ACCC8EE8A9CA",
        "node_id": 140094
      }
    ]
  }
}

We currently have the following objects:

  • folder - Folder used to group and structure other nodes.

  • user - Guest user account with defined access rights.

  • camera - AXIS camera, central item of the NetRex system.

  • box - Fast local storage and surveillance station in one.

  • gsmModem - Mobile GSM router

  • cameraAudioDevice - AXIS audio device, used to transmit audio messages to and from a camera.

  • cashdesk - User cashdesk

  • dataView - Data view. Used to display the gathered data (like visitor count or transactions) in a plot.

  • dashboard -

  • report - Data view. Used to display the gathered data (like visitor count or transactions) in a plot.

  • device input - Device electric input.

  • removedNode - A shell containing a removed node. Sometimes needed to preserve access to some of the nodes data.

  • videoChannel - VAPIX video channel of a multichannel or panoramic camera.

  • nas - NAS

  • panel -

  • location -

  • No labels