Official Plugins (Kuzzle v2.x)
Device Manager v1.x
2

This plugin is part of the Kuzzle Enterprise Plan. If you are interested, please contact us.

Multi Tenancy #

The plugin is designed to work with several tenants, each with their own devices and assets.

Each tenant has its own index with the required collections.

It is possible to manage its holders with the device-manager/engine controller.

When used with the multi-tenant plugin, the collections needed by the device-manager are automatically created when creating a new tenant with the multi-tenant plugin.

Devices #

The list of available devices is stored in the devices collection of the administration index (device-manager).

When assigning the device to a tenant, the tenantId property is updated and the device is copied to the devices collection of the tenant's index.

Collections #

When a new engine is created on a tenant index, it will create the following collections:

devices

Copied to clipboard!
{
  "model": {
    "type": "keyword"
  },
  "reference": {
    "type": "keyword"
  },
  "metadata": {
    "type": "object",
    "dynamic": "false"
  },
  "qos": {
    "type": "object",
    "dynamic": "false"
  },
  "measures": {
    "properties": {
      "position": {
        "properties": {
          "accuracy": {
            "type": "integer"
          },
          "altitude": {
            "type": "float"
          },
          "latitude": {
            "type": "float"
          },
          "longitude": {
            "type": "float"
          },
          "payloadUuid": {
            "type": "keyword"
          },
          "updatedAt": {
            "type": "date"
          }
        }
      },
      "temperature": {
        "properties": {
          "payloadUuid": {
            "type": "keyword"
          },
          "updatedAt": {
            "type": "date"
          },
          "degree": {
            "type": "float"
          }
        }
      }
    }
  },
  "tenantId": {
    "type": "keyword"
  },
  "assetId": {
    "type": "keyword"
  },
}

assets

Copied to clipboard!
{
  "model": {
    "type": "keyword"
  },
  "reference": {
    "type": "keyword"
  },
  "metadata": {
    "type": "object",
    "dynamic": "false"
  },
  "measures": {
    "properties": {
      "position": {
        "dynamic": "false",
        "properties": {
          "accuracy": {
            "type": "integer"
          },
          "altitude": {
            "type": "float"
          },
          "id": {
            "type": "keyword"
          },
          "latitude": {
            "type": "float"
          },
          "longitude": {
            "type": "float"
          },
          "qos": {
            "type": "object"
          },
          "model": {
            "type": "keyword"
          },
          "payloadUuid": {
            "type": "keyword"
          },
          "reference": {
            "type": "keyword"
          },
          "updatedAt": {
            "type": "date"
          }
        }
      },
      "temperature": {
        "dynamic": "false",
        "properties": {
          "id": {
            "type": "keyword"
          },
          "qos": {
            "type": "object"
          },
          "model": {
            "type": "keyword"
          },
          "payloadUuid": {
            "type": "keyword"
          },
          "reference": {
            "type": "keyword"
          },
          "updatedAt": {
            "type": "date"
          },
          "degree": {
            "type": "float"
          }
        }
      }
    }
  },
}