HTTP REST API for Soundsensing
This provides access to sensor data and other capabilities in the Soundsensing data platform.
Once you have your account and have fetched the API key from your Accounts page, you can make API requests.
For example using curl on some Unix platform (Linux, Mac OS or Windows Subsystem for Linux).
export SOUNDSENSING_API_KEY='my-token'
To list your user account information
curl -H "Authorization: Bearer ${SOUNDSENSING_API_KEY}" https://api.soundsensing.no/v1/account
Or to list your devices
curl -H "Authorization: Bearer ${SOUNDSENSING_API_KEY}" https://api.soundsensing.no/v1/devices
The soundsensing webhook system allows an user to subscribe to certain events, which will be published to an endpoint of the users choice. The user interface for registering webhooks is currently in construction, so please use the API to register your webhook, or contact us and we will create one for you.
The events that can be subscribed to are listed in definitions under Webhook Event Subscription Types. Return types are described in the Webhook Events section, as well as in definitions under Webhook Return Model.
Webhook events are sent at least once, but can be sent multiple times under certain circumstances. To ensure that you process an event only once, a check to see if the resource is already received should be put in place on the endpoint. If you store the datapoints, checking the id of the data received in the event is best, otherwise keeping track of event_ids is also an option.
If your endpoint fails, Soundsensing will try to resend the event a number of times before discarding the message. In this case the data is still available through the soundsensing API. In a case where a webhook subscriber endpoint fail too many times, the webhook may be deactivated by Soundsensing. The webhook can then be reactivated through the webhook API
API endpoints use standard limit/offset pagination, with limit defaulting to 10 000 if nothing is given. Supplying limit above 1 000 000 is not allowed. It is recommended to get maximum 1 day of data at a time. If getting 1 day or more, it is recommended to restrict to one, or at least few devices. Keywords "sort" and "order" can also be used to sort data.
Example:
https://api.soundsensing.no/v1/devices?sort=serial&order=asc&limit=5&offset=5
Create alarm
The alarm to create
| id | string <uuid> Unique identifier for the alarm |
| device_id required | string <uuid> Unique identifier for the device that posted this alarm |
| model_instance_id | string or null <uuid> |
| created_at | number Time of creation in UTC |
| creator_id | string <uuid> Unique identifier for the user that created this alarm |
| timestamp required | number Time of alarm in UTC |
| resolved | boolean or null Whether or not the alarm has been resolved |
| resolution_description | string or null Description of how the alarm was resolved |
| resolution_time | number or null Time of resolution in UTC |
| description | string Description of the alarm |
| alarm_type required | string Enum: "A" "B" Type of alarm |
| customer_visible | boolean Wether an alarm is published to customers or not, always true unless user is admin |
{- "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "device_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "model_instance_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "created_at": 1500000000,
- "creator_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "timestamp": 1500000000,
- "resolved": true,
- "resolution_description": "The alarm was resolved by the user",
- "resolution_time": 1500000000,
- "description": "The machine is not running",
- "alarm_type": "B",
- "customer_visible": true
}{- "data": {
- "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "device_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "model_instance_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "created_at": 1500000000,
- "creator_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "timestamp": 1500000000,
- "resolved": true,
- "resolution_description": "The alarm was resolved by the user",
- "resolution_time": 1500000000,
- "description": "The machine is not running",
- "alarm_type": "B",
- "customer_visible": true
}
}Get alarms by device ids or organization ids
| device_id | Array of strings <uuid> ID of device to return |
| organization_id | Array of strings <uuid> ID of organization to return |
| start_time | number Query alarms after start_time defined as a timestamp |
| end_time | number Query alarms before end_time defined as a timestamp |
| customer_visible | boolean Wether the alarm is customer visible or not. Option only available for admins |
| resolved | boolean Whether the alarm is resolved or not. |
{- "data": [
- {
- "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "device_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "model_instance_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "created_at": 1500000000,
- "creator_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "timestamp": 1500000000,
- "resolved": true,
- "resolution_description": "The alarm was resolved by the user",
- "resolution_time": 1500000000,
- "description": "The machine is not running",
- "alarm_type": "B",
- "customer_visible": true
}
], - "pagination": {
- "offset": 0,
- "limit": 0,
- "total": 0
}
}Get alarm by id
| id required | string <uuid> ID of alarm to return |
{- "data": {
- "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "device_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "model_instance_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "created_at": 1500000000,
- "creator_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "timestamp": 1500000000,
- "resolved": true,
- "resolution_description": "The alarm was resolved by the user",
- "resolution_time": 1500000000,
- "description": "The machine is not running",
- "alarm_type": "B",
- "customer_visible": true
}
}Update alarm by id
| id required | string <uuid> ID of alarm to update |
Alarm parameters to edit
| timestamp | number Time of alarm in UTC |
| resolved | boolean or null Whether or not the alarm has been resolved |
| resolution_description | string or null Description of how the alarm was resolved |
| resolution_time | number or null Time of resolution in UTC |
| description | string Description of the alarm |
| model_instance_id | string or null <uuid> |
| alarm_type | string Enum: "A" "B" Type of alarm |
| customer_visible | boolean Wether an alarm is published to customers or not, always true unless user is admin |
{- "timestamp": 1500000000,
- "resolved": true,
- "resolution_description": "The alarm was resolved by the user",
- "resolution_time": 1500000000,
- "description": "The machine is not running",
- "model_instance_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "alarm_type": "B",
- "customer_visible": true
}{- "data": {
- "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "device_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "model_instance_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "created_at": 1500000000,
- "creator_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "timestamp": 1500000000,
- "resolved": true,
- "resolution_description": "The alarm was resolved by the user",
- "resolution_time": 1500000000,
- "description": "The machine is not running",
- "alarm_type": "B",
- "customer_visible": true
}
}Get annotation by id
| annotation_id required | string The annotation id |
{- "data": {
- "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "created_at": 1500000000,
- "start_time": 1500000000,
- "end_time": 1500000000,
- "creator_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "device_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "model_template_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "alarm_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "anomaly": "yes",
- "description": "This is a description of the annotation",
- "tags": [
- "overheating"
], - "meta": { }
}
}Create annotation
The annotation to create
| start_time | number Start time for the annotation in UTC |
| end_time | number End time for the annotation in UTC |
| anomaly | string Enum: "YES" "NO" "MAYBE" Is this annotation related to an anomaly? |
| description | string Description of the annotation |
| tags | Array of strings or null |
| meta | object or null |
| property name* additional property | any |
{- "start_time": 1500000000,
- "end_time": 1500000000,
- "anomaly": "yes",
- "description": "This is a description of the annotation",
- "tags": [
- "overheating"
], - "meta": { }
}{- "data": {
- "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "created_at": 1500000000,
- "start_time": 1500000000,
- "end_time": 1500000000,
- "creator_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "device_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "model_template_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "alarm_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "anomaly": "yes",
- "description": "This is a description of the annotation",
- "tags": [
- "overheating"
], - "meta": { }
}
}Get annotations
| device_id | Array of strings <uuid> ID of device to return |
| organization_id | Array of strings <uuid> ID of organization to return |
| model_template_id | string <uuid> ID of model template to return |
| alarm_id | Array of strings <uuid> ID of alarm to return annotations for |
| created_after | number <timestamp> Return annotations created after this timestamp |
| created_before | number <timestamp> Return annotations created before this timestamp |
| start | number <timestamp> Return annotations have end time after or equal to this timestamp |
| end | number <timestamp> Return annotations have start time before this timestamp |
{- "data": [
- {
- "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "created_at": 1500000000,
- "start_time": 1500000000,
- "end_time": 1500000000,
- "creator_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "device_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "model_template_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "alarm_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "anomaly": "yes",
- "description": "This is a description of the annotation",
- "tags": [
- "overheating"
], - "meta": { }
}
], - "pagination": {
- "offset": 0,
- "limit": 0,
- "total": 0
}
}Create annotation
The annotation to create
| id | string <uuid> Unique identifier for the annotation |
| created_at | number Time of creation in UTC |
| start_time | number Start time for the annotation in UTC |
| end_time | number End time for the annotation in UTC |
| creator_id | string <uuid> Unique identifier for the user that created this annotation |
| device_id | string <uuid> Unique identifier for the device that this annotation is related to |
| model_template_id | string or null <uuid> Unique identifier for the model template that this annotation is related to |
| alarm_id | string or null <uuid> Unique identifier for an alarm that this annotation is related to |
| anomaly | string or null Enum: "YES" "NO" "MAYBE" Is this annotation related to an anomaly? |
| description | string Description of the annotation |
| tags | Array of strings or null |
| meta | object or null |
{- "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "created_at": 1500000000,
- "start_time": 1500000000,
- "end_time": 1500000000,
- "creator_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "device_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "model_template_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "alarm_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "anomaly": "yes",
- "description": "This is a description of the annotation",
- "tags": [
- "overheating"
], - "meta": { }
}{- "data": {
- "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "created_at": 1500000000,
- "start_time": 1500000000,
- "end_time": 1500000000,
- "creator_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "device_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "model_template_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "alarm_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "anomaly": "yes",
- "description": "This is a description of the annotation",
- "tags": [
- "overheating"
], - "meta": { }
}
}Get anomaliy detection results in a given timespan for the specific sensor. Use either device, organization or both as parameters. Using none will not work. You can also optionally query for spesific models, or instances of a trained model.
| device required | string <uuid> Identifier for a single or a list of devices |
| start required | string <date-time> Start time for query |
| end required | string <date-time> End time for query |
| limit | integer Limit the number of returned anomalies |
| offset | integer Offset the returned anomalies |
| model_instance_id | string Model instance id(s) to filter on |
| model_template_id | string Model template id(s) to filter on |
| offset | integer The number of items to skip before starting to collect the result set. |
| limit | integer [ 1 .. 1000000 ] The numbers of items to return. |
| sort | string Example: sort=created_at Name of the column to sort by |
| order | string Example: order=asc Whether to sort in ascending (asc/ASC) order or in descending (desc/DESC) order. |
{- "data": [
- {
- "device_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "start_time": 1500000000,
- "end_time": 1500000000,
- "model_instance_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "model_template_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0b",
- "machine_state": true,
- "schedule_state": true,
- "feature": "vibration",
- "category": 1,
- "schedule_type": 1,
- "normal_lower": 0.3,
- "normal_upper": 0.4,
- "value": 0.5,
- "score": 0.5,
- "probability": 0.5,
- "created_at": 1500000000,
- "period": 360
}
]
}An asset metric tag
| asset_id required | string <uuid> The ID of the asset this tag belongs to |
| metric required | string The name of the metric being tagged |
| description | string or null Optional description of the tag |
{- "asset_id": "b4695157-0d1d-4da0-8f9e-5c53149389e4",
- "metric": "string",
- "description": "string"
}{- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "asset_id": "b4695157-0d1d-4da0-8f9e-5c53149389e4",
- "metric": "string",
- "description": "string",
- "registered_by": "0f8e5222-a38e-4555-9170-437c5d11d7ec",
- "created_at": 0
}
}| end_time | number <timestamp> The end time of the time interval to get metrics from |
| start_time | number <timestamp> The start time of the time interval to get metrics from |
| tag_id required | Array of strings <uuid> The tag ids to fetch results from |
{- "data": [
- {
- "tag_id": "39c8a0b3-fbe8-4801-95bf-e8a0792edf1d",
- "value": 0,
- "end_time": 0,
- "created_at": 0
}
], - "pagination": {
- "offset": 0,
- "limit": 0,
- "total": 0
}
}Returns registered device checkins
| device required | string <uuid> Identifier for the device to query for. Can be specified multiple times |
| start required | string <date-time> Start time for query |
| end required | string <date-time> End time for query |
{- "data": [
- {
- "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "device_id": "5dfacc46-006a-4e0c-aeac-ccc172a9a7db",
- "checkin_time": 0,
- "uptime": 123,
- "firmware": "1.2.3-99-afbcd",
- "device_time": 0,
- "os_version": "7.9.2",
- "modem_version": "01.01.009"
}
]
}{- "data": [
- {
- "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "device_id": "stm32:31003b4d34501320303041",
- "api_key": "",
- "sensor_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "serial": "203",
- "revision": "1.2",
- "type_id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "type": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "brand": "Soundsensing",
- "model": "dB20",
- "registered_at": "163161+643.174402",
- "registered_by": "eca213d2-6119-4135-97a9-9b4fce4043de"
}, - "organization_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0c",
- "nickname": "Soundsensing Office",
- "description": "A description of this device",
- "registered_at": "1600000.00",
- "registered_by": "040517af-71c5-4fa3-a1d1-ec5a9112ce0b",
- "configs": [
- {
- "device_id": "3bafab7b-4400-4bcf-8e6e-09f954699940",
- "config_id": "d1d31429-d888-4f1c-b9c1-4e842f9bce5b"
}
]
}
]
}| id | string <uuid> Internal identifier for this Device |
| device_id | string or null External identifier for this Device. |
| api_key | string API token used to authenticate the device with the API. Can only be set at registration time. |
| sensor_id | string or null <uuid> Sensor id for this device |
| serial required | string Serial number of the device. Typically assigned at production time and printed on device. |
| revision | string or null Hardware revision of the device. Typically indicates minor changes that don't impact use and does not warrant a new DeviceType |
| type_id | string or null ID of the DeviceType for this device |
object or (any or null) | |
| organization_id | string or null <uuid> Uuid of organization that owns this device |
| nickname | string or null User modifiable nickname. For the user to recognize their devices more easily. |
| description | string or null A description of this device, for displaying what this device is used for. |
| registered_at | number Timestamp for time of registration for this device |
| registered_by | string or null <uuid> Uuid of user that registered this device |
Array of objects or null Model specific configuration options |
{- "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "device_id": "stm32:31003b4d34501320303041",
- "api_key": "",
- "sensor_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "serial": "203",
- "revision": "1.2",
- "type_id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "type": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "brand": "Soundsensing",
- "model": "dB20",
- "registered_at": "163161+643.174402",
- "registered_by": "eca213d2-6119-4135-97a9-9b4fce4043de"
}, - "organization_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0c",
- "nickname": "Soundsensing Office",
- "description": "A description of this device",
- "registered_at": "1600000.00",
- "registered_by": "040517af-71c5-4fa3-a1d1-ec5a9112ce0b",
- "configs": [
- {
- "device_id": "3bafab7b-4400-4bcf-8e6e-09f954699940",
- "config_id": "d1d31429-d888-4f1c-b9c1-4e842f9bce5b"
}
]
}{- "data": {
- "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "device_id": "stm32:31003b4d34501320303041",
- "api_key": "",
- "sensor_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "serial": "203",
- "revision": "1.2",
- "type_id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "type": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "brand": "Soundsensing",
- "model": "dB20",
- "registered_at": "163161+643.174402",
- "registered_by": "eca213d2-6119-4135-97a9-9b4fce4043de"
}, - "organization_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0c",
- "nickname": "Soundsensing Office",
- "description": "A description of this device",
- "registered_at": "1600000.00",
- "registered_by": "040517af-71c5-4fa3-a1d1-ec5a9112ce0b",
- "configs": [
- {
- "device_id": "3bafab7b-4400-4bcf-8e6e-09f954699940",
- "config_id": "d1d31429-d888-4f1c-b9c1-4e842f9bce5b"
}
]
}
}| nickname | string New nickname to give device. Empty string sets nickname to null |
{- "data": {
- "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "device_id": "stm32:31003b4d34501320303041",
- "api_key": "",
- "sensor_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "serial": "203",
- "revision": "1.2",
- "type_id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "type": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "brand": "Soundsensing",
- "model": "dB20",
- "registered_at": "163161+643.174402",
- "registered_by": "eca213d2-6119-4135-97a9-9b4fce4043de"
}, - "organization_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0c",
- "nickname": "Soundsensing Office",
- "description": "A description of this device",
- "registered_at": "1600000.00",
- "registered_by": "040517af-71c5-4fa3-a1d1-ec5a9112ce0b",
- "configs": [
- {
- "device_id": "3bafab7b-4400-4bcf-8e6e-09f954699940",
- "config_id": "d1d31429-d888-4f1c-b9c1-4e842f9bce5b"
}
]
}
}| offset | integer The number of items to skip before starting to collect the result set. |
| limit | integer [ 1 .. 1000000 ] The numbers of items to return. |
| sort | string Example: sort=created_at Name of the column to sort by |
| order | string Example: order=asc Whether to sort in ascending (asc/ASC) order or in descending (desc/DESC) order. |
{- "data": [
- {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "brand": "Soundsensing",
- "model": "dB20",
- "registered_at": "163161+643.174402",
- "registered_by": "eca213d2-6119-4135-97a9-9b4fce4043de"
}
]
}| id required | string <uuid> Unique identifier for this DeviceType |
| brand required | string The brand/manufacturer/vendor name |
| model required | string The model name |
| registered_at | number Timestamp of when the type was registered |
| registered_by | string or null <uuid> Id of user that registered device type |
{- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "brand": "Soundsensing",
- "model": "dB20",
- "registered_at": "163161+643.174402",
- "registered_by": "eca213d2-6119-4135-97a9-9b4fce4043de"
}{- "data": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "brand": "Soundsensing",
- "model": "dB20",
- "registered_at": "163161+643.174402",
- "registered_by": "eca213d2-6119-4135-97a9-9b4fce4043de"
}
}Device Location Info
| device | string <uuid> Specify devices to query by |
| start | number Example: start=1629291281 Start time for query |
| end | number Example: end=1629291282 End time for query |
| offset | integer The number of items to skip before starting to collect the result set. |
| limit | integer [ 1 .. 1000000 ] The numbers of items to return. |
| sort | string Example: sort=created_at Name of the column to sort by |
| order | string Example: order=asc Whether to sort in ascending (asc/ASC) order or in descending (desc/DESC) order. |
{- "data": [
- {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "device_id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "time": "[\"1970-01-19 13:22:30+01\",\"1970-01-19 13:27:30+01\")",
- "location_id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "location": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "latitude": 59.913868,
- "longitude": 10.752245,
- "install_height": 2.5,
- "floor_height": 4,
- "roll": 23.2,
- "pitch": 23.2,
- "yaw": 23.2,
- "address": "Gaustadalleen 21, 0349, Oslo",
- "site": "Forskningsparken",
- "building": "Building 3",
- "floor": "B2",
- "room": "201",
- "room_position": "On wall next to pump 2A"
}
}
]
}Register new Location info for a device
| id required | string <uuid> Unique identifier for the DeviceLocation |
| device_id required | string <uuid> Unique identifier for the device the Location info belongs to |
| time required | string Timerange for the Location info |
| location_id | string ID of the Location for this DeviceLocation |
required | object Location data |
{- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "device_id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "time": "[\"1970-01-19 13:22:30+01\",\"1970-01-19 13:27:30+01\")",
- "location_id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "location": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "latitude": 59.913868,
- "longitude": 10.752245,
- "install_height": 2.5,
- "floor_height": 4,
- "roll": 23.2,
- "pitch": 23.2,
- "yaw": 23.2,
- "address": "Gaustadalleen 21, 0349, Oslo",
- "site": "Forskningsparken",
- "building": "Building 3",
- "floor": "B2",
- "room": "201",
- "room_position": "On wall next to pump 2A"
}
}{- "data": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "device_id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "time": "[\"1970-01-19 13:22:30+01\",\"1970-01-19 13:27:30+01\")",
- "location_id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "location": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "latitude": 59.913868,
- "longitude": 10.752245,
- "install_height": 2.5,
- "floor_height": 4,
- "roll": 23.2,
- "pitch": 23.2,
- "yaw": 23.2,
- "address": "Gaustadalleen 21, 0349, Oslo",
- "site": "Forskningsparken",
- "building": "Building 3",
- "floor": "B2",
- "room": "201",
- "room_position": "On wall next to pump 2A"
}
}
}Returns latest relevant resources for a list of devices. Currently returns only soundlevel resource
| device | string <uuid> Specify devices to query by |
| status_time | number Example: status_time=1629291281 Specify time instance for which to get status for |
| hours_back | number Example: hours_back=5 Specify how many hours back in time to search for status. Increases query time. |
{- "data": [
- {
- "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "device_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "leq": 62.2,
- "lafmax": 62.2,
- "lafmin": 62.2,
- "period": 60000000,
- "created_at": 60000000,
- "end_time": 60000000,
- "resource": "soundlevel"
}
], - "devices": [
- {
- "id": "5dfacc46-006a-4e0c-aeac-ccc172a9a7db",
- "description": "Sensor1"
}
]
}Returns the condition for a device and its given location
| device | string <uuid> Specify devices to query by |
| organization | string <uuid> Specify organizations, if status for all devices in an organization is required. |
| start_time | number Example: start_time=1629291281 Specify start time for which to get condition for. Defaults to one day ago |
| end_time | number Example: end_time=1629291281 Specify end time for which to get condition for. Defaults to now. |
| anomaly_status_yellow_minutes | string Specify number of minutes of continuous anomalies needed to set status to warning state (yellow) |
| anomaly_status_red_minutes | string Specify number of minutes of continuous anomalies needed to set status to critical state (red) |
| anomaly_status_threshold | string Threshold for anomaly score to consider a score an anomaly. Must be between 0 and 1 |
| anomaly_status_hysterisis_threshold | string Hysterisis threshold (threshold for exiting a continuous anomaly, should be lower than anomaly_status_threshold). Must be between 0 and 1 |
{- "data": [
- {
- "location": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "latitude": 59.913868,
- "longitude": 10.752245,
- "install_height": 2.5,
- "floor_height": 4,
- "roll": 23.2,
- "pitch": 23.2,
- "yaw": 23.2,
- "address": "Gaustadalleen 21, 0349, Oslo",
- "site": "Forskningsparken",
- "building": "Building 3",
- "floor": "B2",
- "room": "201",
- "room_position": "On wall next to pump 2A"
}, - "device": {
- "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "device_id": "stm32:31003b4d34501320303041",
- "api_key": "",
- "sensor_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "serial": "203",
- "revision": "1.2",
- "type_id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "type": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "brand": "Soundsensing",
- "model": "dB20",
- "registered_at": "163161+643.174402",
- "registered_by": "eca213d2-6119-4135-97a9-9b4fce4043de"
}, - "organization_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0c",
- "nickname": "Soundsensing Office",
- "description": "A description of this device",
- "registered_at": "1600000.00",
- "registered_by": "040517af-71c5-4fa3-a1d1-ec5a9112ce0b",
- "configs": [
- {
- "device_id": "3bafab7b-4400-4bcf-8e6e-09f954699940",
- "config_id": "d1d31429-d888-4f1c-b9c1-4e842f9bce5b"
}
]
}, - "status_text": "Nominal, no deviations found",
- "status": "OK"
}
]
}The device deployment to create
| id | string <uuid> |
| device_id required | string <uuid> |
| room_id required | string <uuid> |
| start_time required | number <timestamp> Timestamp for the start_time |
| end_time | number or null <timestamp> Timestamp for the end_time |
| assets | Array of strings or null <uuid> |
| meta | object or null |
| install_height | number or null Install height of device |
| floor_height | number or null The height of the floor |
| roll | number or null The roll of the device on install |
| pitch | number or null The pitch of the device on install |
| yaw | number or null The pitch of the device on install |
| description | string or null Description of the install |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "device_id": "3bafab7b-4400-4bcf-8e6e-09f954699940",
- "room_id": "05451321-18e1-4bfa-aa22-dfd0080cc120",
- "start_time": 1629291281,
- "end_time": 1629291281,
- "assets": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "meta": "{'extra': 'data'}",
- "install_height": 1,
- "floor_height": 2,
- "roll": 4,
- "pitch": 30,
- "yaw": 30,
- "description": "A description of the install, if needed"
}{- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "device_id": "3bafab7b-4400-4bcf-8e6e-09f954699940",
- "room_id": "05451321-18e1-4bfa-aa22-dfd0080cc120",
- "room_position_id": "71000099-4fca-4140-bfcb-f06f733cf608",
- "room_position": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "room_id": "05451321-18e1-4bfa-aa22-dfd0080cc120",
- "install_height": 0,
- "floor_height": 0,
- "roll": 0,
- "pitch": 0,
- "yaw": 0,
- "description": "string"
}, - "start_time": 1629291281,
- "end_time": 1629291281,
- "assets": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "registered_by": "0f8e5222-a38e-4555-9170-437c5d11d7ec",
- "room_id": "05451321-18e1-4bfa-aa22-dfd0080cc120",
- "created_at": 0,
- "model": "string",
- "nice_name": "string",
- "room_position_id": "71000099-4fca-4140-bfcb-f06f733cf608",
- "parent_id": "1c6ca187-e61f-4301-8dcb-0e9749e89eef",
- "asset_category_id": "ed5f6da2-e989-4290-b244-87ae06007e71"
}
], - "meta": "{'extra': 'data'}"
}
}| organization_id | Array of strings <uuid> Filter assets by organization_id |
| building_id | Array of strings <uuid> Filter assets by building_id |
| room_id | Array of strings <uuid> Filter device deployments by room id |
| device_id | Array of strings <uuid> Filter device deployments by device_id |
| start_time | number <timestamp> Filter device deployments by start time. Find only devicedeployment with start time after this point. |
| end_time | number <timestamp> Filter device deployments by end time- Find only devicedeployments with end time before this point. |
| offset | integer The number of items to skip before starting to collect the result set. |
| limit | integer [ 1 .. 1000000 ] The numbers of items to return. |
| sort | string Example: sort=created_at Name of the column to sort by |
| order | string Example: order=asc Whether to sort in ascending (asc/ASC) order or in descending (desc/DESC) order. |
{- "data": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "device_id": "3bafab7b-4400-4bcf-8e6e-09f954699940",
- "room_id": "05451321-18e1-4bfa-aa22-dfd0080cc120",
- "room_position_id": "71000099-4fca-4140-bfcb-f06f733cf608",
- "room_position": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "room_id": "05451321-18e1-4bfa-aa22-dfd0080cc120",
- "install_height": 0,
- "floor_height": 0,
- "roll": 0,
- "pitch": 0,
- "yaw": 0,
- "description": "string"
}, - "start_time": 1629291281,
- "end_time": 1629291281,
- "assets": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "registered_by": "0f8e5222-a38e-4555-9170-437c5d11d7ec",
- "room_id": "05451321-18e1-4bfa-aa22-dfd0080cc120",
- "created_at": 0,
- "model": "string",
- "nice_name": "string",
- "room_position_id": "71000099-4fca-4140-bfcb-f06f733cf608",
- "parent_id": "1c6ca187-e61f-4301-8dcb-0e9749e89eef",
- "asset_category_id": "ed5f6da2-e989-4290-b244-87ae06007e71"
}
], - "meta": "{'extra': 'data'}"
}
], - "pagination": {
- "offset": 0,
- "limit": 0,
- "total": 0
}
}This method returns a device deployment object by id
| device_deployment_id required | string <uuid> |
{- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "device_id": "3bafab7b-4400-4bcf-8e6e-09f954699940",
- "room_id": "05451321-18e1-4bfa-aa22-dfd0080cc120",
- "room_position_id": "71000099-4fca-4140-bfcb-f06f733cf608",
- "room_position": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "room_id": "05451321-18e1-4bfa-aa22-dfd0080cc120",
- "install_height": 0,
- "floor_height": 0,
- "roll": 0,
- "pitch": 0,
- "yaw": 0,
- "description": "string"
}, - "start_time": 1629291281,
- "end_time": 1629291281,
- "assets": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "registered_by": "0f8e5222-a38e-4555-9170-437c5d11d7ec",
- "room_id": "05451321-18e1-4bfa-aa22-dfd0080cc120",
- "created_at": 0,
- "model": "string",
- "nice_name": "string",
- "room_position_id": "71000099-4fca-4140-bfcb-f06f733cf608",
- "parent_id": "1c6ca187-e61f-4301-8dcb-0e9749e89eef",
- "asset_category_id": "ed5f6da2-e989-4290-b244-87ae06007e71"
}
], - "meta": "{'extra': 'data'}"
}
}Supply data to update a device deployment selected by the supplied id
| device_deployment_id required | string <uuid> |
| device_id | string <uuid> |
| room_id | string <uuid> |
| start_time | number <timestamp> Timestamp for the start_time |
| end_time | number or null <timestamp> Timestamp for the end_time |
| assets | Array of strings or null <uuid> |
| meta | object or null |
| install_height | number or null Install height of device |
| floor_height | number or null The height of the floor |
| roll | number or null The roll of the device on install |
| pitch | number or null The pitch of the device on install |
| yaw | number or null The pitch of the device on install |
| description | string or null Description of the install |
{- "device_id": "3bafab7b-4400-4bcf-8e6e-09f954699940",
- "room_id": "05451321-18e1-4bfa-aa22-dfd0080cc120",
- "start_time": 1629291281,
- "end_time": 1629291281,
- "assets": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "meta": "{'extra': 'data'}",
- "install_height": 1,
- "floor_height": 2,
- "roll": 4,
- "pitch": 30,
- "yaw": 30,
- "description": "A description of the install, if needed"
}{- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "device_id": "3bafab7b-4400-4bcf-8e6e-09f954699940",
- "room_id": "05451321-18e1-4bfa-aa22-dfd0080cc120",
- "room_position_id": "71000099-4fca-4140-bfcb-f06f733cf608",
- "room_position": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "room_id": "05451321-18e1-4bfa-aa22-dfd0080cc120",
- "install_height": 0,
- "floor_height": 0,
- "roll": 0,
- "pitch": 0,
- "yaw": 0,
- "description": "string"
}, - "start_time": 1629291281,
- "end_time": 1629291281,
- "assets": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "registered_by": "0f8e5222-a38e-4555-9170-437c5d11d7ec",
- "room_id": "05451321-18e1-4bfa-aa22-dfd0080cc120",
- "created_at": 0,
- "model": "string",
- "nice_name": "string",
- "room_position_id": "71000099-4fca-4140-bfcb-f06f733cf608",
- "parent_id": "1c6ca187-e61f-4301-8dcb-0e9749e89eef",
- "asset_category_id": "ed5f6da2-e989-4290-b244-87ae06007e71"
}
], - "meta": "{'extra': 'data'}"
}
}This endpoint is used to get information about existing device event types.
{- "data": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
- "name": "string",
- "description": "string",
- "created_at": 0
}
], - "pagination": {
- "offset": 0,
- "limit": 0,
- "total": 0
}
}This endpoint is used to post information about gateway configuration, such as vpn config.
Configuration data for a device event type
| name required | string |
| description | string or null |
{- "name": "string",
- "description": "string"
}{- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
- "name": "string",
- "description": "string",
- "created_at": 0
}
}This endpoint is used to get all device event.
| device_id | Array of strings <uuid> Filter device deployments by device_id |
{- "data": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "device_id": "3bafab7b-4400-4bcf-8e6e-09f954699940",
- "device": {
- "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "device_id": "stm32:31003b4d34501320303041",
- "api_key": "",
- "sensor_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "serial": "203",
- "revision": "1.2",
- "type_id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "type": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "brand": "Soundsensing",
- "model": "dB20",
- "registered_at": "163161+643.174402",
- "registered_by": "eca213d2-6119-4135-97a9-9b4fce4043de"
}, - "organization_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0c",
- "nickname": "Soundsensing Office",
- "description": "A description of this device",
- "registered_at": "1600000.00",
- "registered_by": "040517af-71c5-4fa3-a1d1-ec5a9112ce0b",
- "configs": [
- {
- "device_id": "3bafab7b-4400-4bcf-8e6e-09f954699940",
- "config_id": "d1d31429-d888-4f1c-b9c1-4e842f9bce5b"
}
]
}, - "start_time": 0,
- "end_time": 0,
- "type_id": "d9779ea4-ba95-4824-86d7-4f1ac083a564",
- "type": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
- "name": "string",
- "description": "string",
- "created_at": 0
}, - "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
- "created_at": 0
}
], - "pagination": {
- "offset": 0,
- "limit": 0,
- "total": 0
}
}This endpoint is used to post an event for a device.
A device event
| id | string or null <uuid> |
| device_id | string <uuid> |
| start_time | number <timestamp> |
| end_time | number <timestamp> |
| type_id required | string <uuid> Id for type of event, see DeviceEventType |
| created_by | string <uuid> |
| created_at | number <timestamp> |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "device_id": "3bafab7b-4400-4bcf-8e6e-09f954699940",
- "start_time": 0,
- "end_time": 0,
- "type_id": "d9779ea4-ba95-4824-86d7-4f1ac083a564",
- "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
- "created_at": 0
}{- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "device_id": "3bafab7b-4400-4bcf-8e6e-09f954699940",
- "device": {
- "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "device_id": "stm32:31003b4d34501320303041",
- "api_key": "",
- "sensor_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "serial": "203",
- "revision": "1.2",
- "type_id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "type": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "brand": "Soundsensing",
- "model": "dB20",
- "registered_at": "163161+643.174402",
- "registered_by": "eca213d2-6119-4135-97a9-9b4fce4043de"
}, - "organization_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0c",
- "nickname": "Soundsensing Office",
- "description": "A description of this device",
- "registered_at": "1600000.00",
- "registered_by": "040517af-71c5-4fa3-a1d1-ec5a9112ce0b",
- "configs": [
- {
- "device_id": "3bafab7b-4400-4bcf-8e6e-09f954699940",
- "config_id": "d1d31429-d888-4f1c-b9c1-4e842f9bce5b"
}
]
}, - "start_time": 0,
- "end_time": 0,
- "type_id": "d9779ea4-ba95-4824-86d7-4f1ac083a564",
- "type": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
- "name": "string",
- "description": "string",
- "created_at": 0
}, - "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
- "created_at": 0
}
}This endpoint is used to get all device event.
| device_event_id required | string <uuid> |
{- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "device_id": "3bafab7b-4400-4bcf-8e6e-09f954699940",
- "device": {
- "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "device_id": "stm32:31003b4d34501320303041",
- "api_key": "",
- "sensor_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "serial": "203",
- "revision": "1.2",
- "type_id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "type": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "brand": "Soundsensing",
- "model": "dB20",
- "registered_at": "163161+643.174402",
- "registered_by": "eca213d2-6119-4135-97a9-9b4fce4043de"
}, - "organization_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0c",
- "nickname": "Soundsensing Office",
- "description": "A description of this device",
- "registered_at": "1600000.00",
- "registered_by": "040517af-71c5-4fa3-a1d1-ec5a9112ce0b",
- "configs": [
- {
- "device_id": "3bafab7b-4400-4bcf-8e6e-09f954699940",
- "config_id": "d1d31429-d888-4f1c-b9c1-4e842f9bce5b"
}
]
}, - "start_time": 0,
- "end_time": 0,
- "type_id": "d9779ea4-ba95-4824-86d7-4f1ac083a564",
- "type": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
- "name": "string",
- "description": "string",
- "created_at": 0
}, - "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
- "created_at": 0
}, - "pagination": {
- "offset": 0,
- "limit": 0,
- "total": 0
}
}This endpoint is used change the details of a device event.
| device_event_id required | string <uuid> |
A device event
| id | string or null <uuid> |
| device_id | string <uuid> |
| start_time | number <timestamp> |
| end_time | number <timestamp> |
| type_id required | string <uuid> Id for type of event, see DeviceEventType |
| created_by | string <uuid> |
| created_at | number <timestamp> |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "device_id": "3bafab7b-4400-4bcf-8e6e-09f954699940",
- "start_time": 0,
- "end_time": 0,
- "type_id": "d9779ea4-ba95-4824-86d7-4f1ac083a564",
- "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
- "created_at": 0
}{- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "device_id": "3bafab7b-4400-4bcf-8e6e-09f954699940",
- "device": {
- "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "device_id": "stm32:31003b4d34501320303041",
- "api_key": "",
- "sensor_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "serial": "203",
- "revision": "1.2",
- "type_id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "type": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "brand": "Soundsensing",
- "model": "dB20",
- "registered_at": "163161+643.174402",
- "registered_by": "eca213d2-6119-4135-97a9-9b4fce4043de"
}, - "organization_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0c",
- "nickname": "Soundsensing Office",
- "description": "A description of this device",
- "registered_at": "1600000.00",
- "registered_by": "040517af-71c5-4fa3-a1d1-ec5a9112ce0b",
- "configs": [
- {
- "device_id": "3bafab7b-4400-4bcf-8e6e-09f954699940",
- "config_id": "d1d31429-d888-4f1c-b9c1-4e842f9bce5b"
}
]
}, - "start_time": 0,
- "end_time": 0,
- "type_id": "d9779ea4-ba95-4824-86d7-4f1ac083a564",
- "type": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
- "name": "string",
- "description": "string",
- "created_at": 0
}, - "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
- "created_at": 0
}
}Get device model config
| device_id | Array of strings <uuid> ID of device to return device model config for |
{- "data": [
- {
- "id": "device_model_config_id",
- "creator_id": "user",
- "created_at": 1520000000,
- "device_ids": [
- "device_id1",
- "device_id2"
], - "model_type_id": "model_type_id",
- "description": "Description of the device model config",
- "training_parameters": {
- "parameter1": "value1",
- "parameter2": "value2"
}, - "start_time": 1520000000,
- "end_time": 1520000000,
- "updated_at": 1520000000,
- "meta": {
- "parameter1": "value1",
- "parameter2": "value2"
}
}
]
}Create device model config
The device model config to create
| id | string <uuid> Device model config id |
| creator_id | string Creator of the device model config |
| created_at | number <timestamp> Creation time of the device model config |
| device_ids | Array of strings or null <uuid> Device ids |
| model_type_id required | string <uuid> Model type id |
| description | string or null Description of the device model config |
| training_parameters | object or null Training parameters |
| start_time required | number <timestamp> Start time of the device model config |
| end_time | number or null <timestamp> End time of the device model config |
| updated_at | number or null <timestamp> The point in time this was last updated |
| meta | object or null Meta, place for meta info and additional settings that does not belong in training parameters |
{- "id": "device_model_config_id",
- "creator_id": "user",
- "created_at": 1520000000,
- "device_ids": [
- "device_id1",
- "device_id2"
], - "model_type_id": "model_type_id",
- "description": "Description of the device model config",
- "training_parameters": {
- "parameter1": "value1",
- "parameter2": "value2"
}, - "start_time": 1520000000,
- "end_time": 1520000000,
- "updated_at": 1520000000,
- "meta": {
- "parameter1": "value1",
- "parameter2": "value2"
}
}{- "data": {
- "id": "device_model_config_id",
- "creator_id": "user",
- "created_at": 1520000000,
- "device_ids": [
- "device_id1",
- "device_id2"
], - "model_type_id": "model_type_id",
- "description": "Description of the device model config",
- "training_parameters": {
- "parameter1": "value1",
- "parameter2": "value2"
}, - "start_time": 1520000000,
- "end_time": 1520000000,
- "updated_at": 1520000000,
- "meta": {
- "parameter1": "value1",
- "parameter2": "value2"
}
}
}Get device model config by id
| config_id required | string The device model config id |
{- "data": {
- "id": "device_model_config_id",
- "creator_id": "user",
- "created_at": 1520000000,
- "device_ids": [
- "device_id1",
- "device_id2"
], - "model_type_id": "model_type_id",
- "description": "Description of the device model config",
- "training_parameters": {
- "parameter1": "value1",
- "parameter2": "value2"
}, - "start_time": 1520000000,
- "end_time": 1520000000,
- "updated_at": 1520000000,
- "meta": {
- "parameter1": "value1",
- "parameter2": "value2"
}
}
}Update device model config
| config_id required | string The device model config id |
The device model config to update
| device_ids | Array of strings or null <uuid> Device ids |
| model_type_id | string Model type id |
| description | string or null Description of the device model config |
| training_parameters | object or null Training parameters |
| start_time | number <timestamp> Start time of the device model config |
| end_time | number or null <timestamp> End time of the device model config |
| meta | object or null Meta, place for meta info and additional settings that does not belong in training parameters |
{- "device_ids": [
- "device_id1",
- "device_id2"
], - "model_type_id": "model_type_id",
- "description": "Description of the device model config",
- "training_parameters": {
- "parameter1": "value1",
- "parameter2": "value2"
}, - "start_time": 1520000000,
- "end_time": 1520000000,
- "meta": {
- "parameter1": "value1",
- "parameter2": "value2"
}
}{- "data": {
- "id": "device_model_config_id",
- "creator_id": "user",
- "created_at": 1520000000,
- "device_ids": [
- "device_id1",
- "device_id2"
], - "model_type_id": "model_type_id",
- "description": "Description of the device model config",
- "training_parameters": {
- "parameter1": "value1",
- "parameter2": "value2"
}, - "start_time": 1520000000,
- "end_time": 1520000000,
- "updated_at": 1520000000,
- "meta": {
- "parameter1": "value1",
- "parameter2": "value2"
}
}
}{- "data": {
- "id": "integration_id",
- "integration_service_id": "integration_service_id",
- "integration_service": {
- "id": "integration_service_id",
- "name": "integration_service_name",
- "description": "integration_service_description",
- "api_url": "integration_service_url"
}, - "organization_id": "organization_id",
- "user_name": "UserName123",
- "enabled": true,
- "configuration": "{'some_info': 'OtherInfo'}"
}
}Update integration
| id required | string Integration id |
Integration
| api_key | string or null Integration api key |
| user_name | string or null Username, if used for authentication. If username is used, also supply password |
| password | string or null Password for authentication with integration service |
| api_url | string or null Api-key for integration. This API key overwrites service api url, if different urls are used for different integrations on service. |
| integration_service_id | string |
| organization_id | string <uuid> Organization id |
| enabled | boolean or null Boolean for enabling and disabling the integration. If disabled, no notifications will be published using this integration |
| configuration | object or null Other information required for integration |
{- "api_key": "integration_api_key",
- "user_name": "UserName123",
- "password": "password",
- "integration_service_id": "b4a290f8-7ce9-400d-9ef3-849c50d69634",
- "organization_id": "organization_id",
- "enabled": true,
- "configuration": "{'some_info': 'OtherInfo'}"
}{- "data": {
- "id": "integration_id",
- "integration_service_id": "integration_service_id",
- "integration_service": {
- "id": "integration_service_id",
- "name": "integration_service_name",
- "description": "integration_service_description",
- "api_url": "integration_service_url"
}, - "organization_id": "organization_id",
- "user_name": "UserName123",
- "enabled": true,
- "configuration": "{'some_info': 'OtherInfo'}"
}
}Create integration
Integration
| id | string <uuid> Integration id |
| integration_service_id required | string <uuid> Integration service id |
| organization_id required | string <uuid> Organization id |
| api_key | string or null Integration api key, if api key is used for authentication |
| user_name | string or null Username, if used for authentication. If username is used, also supply password |
| password | string or null Password for authentication with integration service |
| api_url | string or null Api-key for integration. This API key overwrites service api url, if different urls are used for different integrations on service. |
| enabled | boolean or null Boolean for enabling and disabling the integration. If disabled, no notifications will be published using this integration |
| configuration | object or null Other information required for integration |
{- "id": "integration_id",
- "integration_service_id": "integration_service_id",
- "organization_id": "organization_id",
- "api_key": "integration_api_key",
- "user_name": "UserName123",
- "password": "password",
- "enabled": true,
- "configuration": "{'some_info': 'OtherInfo'}"
}{- "data": {
- "id": "integration_id",
- "integration_service_id": "integration_service_id",
- "integration_service": {
- "id": "integration_service_id",
- "name": "integration_service_name",
- "description": "integration_service_description",
- "api_url": "integration_service_url"
}, - "organization_id": "organization_id",
- "user_name": "UserName123",
- "enabled": true,
- "configuration": "{'some_info': 'OtherInfo'}"
}
}{- "data": [
- {
- "id": "integration_id",
- "integration_service_id": "integration_service_id",
- "integration_service": {
- "id": "integration_service_id",
- "name": "integration_service_name",
- "description": "integration_service_description",
- "api_url": "integration_service_url"
}, - "organization_id": "organization_id",
- "user_name": "UserName123",
- "enabled": true,
- "configuration": "{'some_info': 'OtherInfo'}"
}
]
}Update integration service
| id required | string <uuid> Integration service id |
Integration service object
| name | string or null Integration service name |
| description | string or null Integration service description |
| api_url | string or null Integration service url |
{- "name": "integration_service_name",
- "description": "integration_service_description",
- "api_url": "integration_service_url"
}{- "id": "integration_service_id",
- "name": "integration_service_name",
- "description": "integration_service_description",
- "api_url": "integration_service_url"
}Get integration service by id
| id required | string <uuid> Integration service id |
{- "id": "integration_service_id",
- "name": "integration_service_name",
- "description": "integration_service_description",
- "api_url": "integration_service_url"
}Create integration service
Integration service object
| id | string <uuid> Integration service id |
| name | string or null Integration service name |
| description | string or null Integration service description |
| api_url | string or null Integration service url |
{- "id": "integration_service_id",
- "name": "integration_service_name",
- "description": "integration_service_description",
- "api_url": "integration_service_url"
}{- "id": "integration_service_id",
- "name": "integration_service_name",
- "description": "integration_service_description",
- "api_url": "integration_service_url"
}This endpoint is used to rotate api-key for user. Only admins can rotate for an user that is not themselves.
| user_id required | string <uuid> |
{- "data": {
- "id": "7813b3d6-cbe5-4f1f-a5f8-9da009f7eb23",
- "email": "user@example.net",
- "name": "John Doe"
}
}Get user preferences
| id | string The id of the category we want to get preferences for. |
| user_id | string The id of the user we want to get preferences for. |
{- "data": [
- {
- "category": "general",
- "preference": "language"
}
]
}Returns a list of AudioClips
| user required | string <uuid> Only return clips uploaded by specified user. Can be specified multiple times |
| annotated required | bool Only return clips which have Annotations |
| start required | string <date-time> Start time for query |
| end required | string <date-time> End time for query |
| offset | number Pagination offset |
| limit | number Pagination limit |
{- "data": [
- {
- "id": "8201058b-46dd-4407-b486-5928e1a85fa8",
- "filename": "5928e1a85fa8.wav",
- "bucket": "gs://somecompany/abucket",
- "hash": "a18410d899a8873575434d60aba867ff",
- "classification_result": [
- {
- "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "device_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0b",
- "model_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0c",
- "audio_clip_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0d",
- "spectrogram_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0d",
- "sensor_id": "5dfacc46-006a-4e0c-aeac-ccc172a9a7db",
- "predictions": [
- 0.1,
- 0.9
], - "period": 1000000,
- "created_at": 1630942200,
- "meta": {
- "extra": "data"
}, - "sensor": {
- "id": "5dfacc46-006a-4e0c-aeac-ccc172a9a7db",
- "description": "Sensor1"
}, - "end_time": 112223232,
- "model_instance_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0d",
- "model_instance": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "model_template": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "created_at": "1609462800",
- "start_time": "1609462800",
- "end_time": "1609462800",
- "devices": [
- {
- "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "device_id": "stm32:31003b4d34501320303041",
- "api_key": "",
- "sensor_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "serial": "203",
- "revision": "1.2",
- "type_id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "type": {
- "id": null,
- "brand": null,
- "model": null,
- "registered_at": null,
- "registered_by": null
}, - "organization_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0c",
- "nickname": "Soundsensing Office",
- "description": "A description of this device",
- "registered_at": "1600000.00",
- "registered_by": "040517af-71c5-4fa3-a1d1-ec5a9112ce0b",
- "configs": [
- { }
]
}
], - "target": "server",
- "model_type": "Gaussian",
- "model_type_id": "c9269a3e-aede-466e-944a-7f0ec3594468",
- "training_parameters": {
- "parameter": "value"
}, - "meta": {
- "name": "value"
}, - "name": "Example Name",
- "nice_name": "Example Nice Name",
- "description": "Example Description",
- "version": 1,
- "enabled": true,
- "visible": true
}, - "model_training_run": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "created_at": 1630942200,
- "device": {
- "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "device_id": "stm32:31003b4d34501320303041",
- "api_key": "",
- "sensor_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "serial": "203",
- "revision": "1.2",
- "type_id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "type": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "brand": "Soundsensing",
- "model": "dB20",
- "registered_at": "163161+643.174402",
- "registered_by": "eca213d2-6119-4135-97a9-9b4fce4043de"
}, - "organization_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0c",
- "nickname": "Soundsensing Office",
- "description": "A description of this device",
- "registered_at": "1600000.00",
- "registered_by": "040517af-71c5-4fa3-a1d1-ec5a9112ce0b",
- "configs": [
- {
- "device_id": null,
- "config_id": null
}
]
}, - "device_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "data_period": "[\"1970-01-19 13:22:30+01\",\"1970-01-19 13:27:30+01\")",
- "model_template": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "created_at": "1609462800",
- "start_time": "1609462800",
- "end_time": "1609462800",
- "devices": [
- {
- "id": null,
- "device_id": null,
- "api_key": null,
- "sensor_id": null,
- "serial": null,
- "revision": null,
- "type_id": null,
- "type": null,
- "organization_id": null,
- "nickname": null,
- "description": null,
- "registered_at": null,
- "registered_by": null,
- "configs": [ ]
}
], - "target": "server",
- "model_type": "Gaussian",
- "model_type_id": "c9269a3e-aede-466e-944a-7f0ec3594468",
- "training_parameters": {
- "parameter": "value"
}, - "meta": {
- "name": "value"
}, - "name": "Example Name",
- "nice_name": "Example Nice Name",
- "description": "Example Description",
- "version": 1,
- "enabled": true,
- "visible": true
}, - "model_template_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "saved_model": { },
- "evaluation_metrics": { },
- "meta": { }
}, - "saved_model": { },
- "evaluation_metrics": { },
- "meta": { },
- "created_at": 1630942200
}
}
], - "upload_time": 1614151400,
- "length": 3.04,
- "annotations": [
- {
- "id": "966ed422-b9b5-4787-a875-cd2259a9a255",
- "audio_clip_id": "8201058b-46dd-4407-b486-5928e1a85fa8",
- "start_time": 0.75,
- "end_time": 3.85,
- "label": "car_passing",
- "proximity": "far"
}
], - "uploader_id": "dc37a591-c902-4cb4-b71c-e17003001013",
- "start_time": 1615161516,
- "device_id": "dc37a591-c902-4cb4-b71c-e17003001013",
- "blob_filename": "8201058b-46dd-4407-b486-5928e1a85fa8.wav",
- "meta": { }
}
]
}{- "id": "8201058b-46dd-4407-b486-5928e1a85fa8",
}Returns a list of Annotations
| offset | integer The number of items to skip before starting to collect the result set. |
| limit | integer [ 1 .. 1000000 ] The numbers of items to return. |
| sort | string Example: sort=created_at Name of the column to sort by |
| order | string Example: order=asc Whether to sort in ascending (asc/ASC) order or in descending (desc/DESC) order. |
{- "data": [
- {
- "id": "966ed422-b9b5-4787-a875-cd2259a9a255",
- "audio_clip_id": "8201058b-46dd-4407-b486-5928e1a85fa8",
- "start_time": 0.75,
- "end_time": 3.85,
- "label": "car_passing",
- "proximity": "far"
}
]
}Returns classification results from machine learning models
| device required | string <uuid> Identifier for the device to query classifications for. Can be specified multiple times |
| audioclip | string <uuid> Identifier for the audioclip to query classifications for. Can be specified multiple times |
| model | string <uuid> Identifier for the model to query classifications for. Can be specified multiple times |
| distinct | boolean Only return 1 classification result per audio_clip |
| start required | string <date-time> Start time for query |
| end required | string <date-time> End time for query |
| model_instance | string <uuid> Identifier for the ModelInstance to query classifications for. Can be specified multiple times |
| offset | integer The number of items to skip before starting to collect the result set. |
| limit | integer [ 1 .. 1000000 ] The numbers of items to return. |
| sort | string Example: sort=created_at Name of the column to sort by |
| order | string Example: order=asc Whether to sort in ascending (asc/ASC) order or in descending (desc/DESC) order. |
{- "data": [
- {
- "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "device_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0b",
- "model_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0c",
- "audio_clip_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0d",
- "spectrogram_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0d",
- "sensor_id": "5dfacc46-006a-4e0c-aeac-ccc172a9a7db",
- "predictions": [
- 0.1,
- 0.9
], - "period": 1000000,
- "created_at": 1630942200,
- "meta": {
- "extra": "data"
}, - "sensor": {
- "id": "5dfacc46-006a-4e0c-aeac-ccc172a9a7db",
- "description": "Sensor1"
}, - "end_time": 112223232,
- "model_instance_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0d",
- "model_instance": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "model_template": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "created_at": "1609462800",
- "start_time": "1609462800",
- "end_time": "1609462800",
- "devices": [
- {
- "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "device_id": "stm32:31003b4d34501320303041",
- "api_key": "",
- "sensor_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "serial": "203",
- "revision": "1.2",
- "type_id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "type": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "brand": "Soundsensing",
- "model": "dB20",
- "registered_at": "163161+643.174402",
- "registered_by": "eca213d2-6119-4135-97a9-9b4fce4043de"
}, - "organization_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0c",
- "nickname": "Soundsensing Office",
- "description": "A description of this device",
- "registered_at": "1600000.00",
- "registered_by": "040517af-71c5-4fa3-a1d1-ec5a9112ce0b",
- "configs": [
- {
- "device_id": "3bafab7b-4400-4bcf-8e6e-09f954699940",
- "config_id": "d1d31429-d888-4f1c-b9c1-4e842f9bce5b"
}
]
}
], - "target": "server",
- "model_type": "Gaussian",
- "model_type_id": "c9269a3e-aede-466e-944a-7f0ec3594468",
- "training_parameters": {
- "parameter": "value"
}, - "meta": {
- "name": "value"
}, - "name": "Example Name",
- "nice_name": "Example Nice Name",
- "description": "Example Description",
- "version": 1,
- "enabled": true,
- "visible": true
}, - "model_training_run": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "created_at": 1630942200,
- "device": {
- "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "device_id": "stm32:31003b4d34501320303041",
- "api_key": "",
- "sensor_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "serial": "203",
- "revision": "1.2",
- "type_id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "type": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "brand": "Soundsensing",
- "model": "dB20",
- "registered_at": "163161+643.174402",
- "registered_by": "eca213d2-6119-4135-97a9-9b4fce4043de"
}, - "organization_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0c",
- "nickname": "Soundsensing Office",
- "description": "A description of this device",
- "registered_at": "1600000.00",
- "registered_by": "040517af-71c5-4fa3-a1d1-ec5a9112ce0b",
- "configs": [
- {
- "device_id": "3bafab7b-4400-4bcf-8e6e-09f954699940",
- "config_id": "d1d31429-d888-4f1c-b9c1-4e842f9bce5b"
}
]
}, - "device_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "data_period": "[\"1970-01-19 13:22:30+01\",\"1970-01-19 13:27:30+01\")",
- "model_template": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "created_at": "1609462800",
- "start_time": "1609462800",
- "end_time": "1609462800",
- "devices": [
- {
- "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "device_id": "stm32:31003b4d34501320303041",
- "api_key": "",
- "sensor_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "serial": "203",
- "revision": "1.2",
- "type_id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "type": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "brand": "Soundsensing",
- "model": "dB20",
- "registered_at": "163161+643.174402",
- "registered_by": "eca213d2-6119-4135-97a9-9b4fce4043de"
}, - "organization_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0c",
- "nickname": "Soundsensing Office",
- "description": "A description of this device",
- "registered_at": "1600000.00",
- "registered_by": "040517af-71c5-4fa3-a1d1-ec5a9112ce0b",
- "configs": [
- {
- "device_id": null,
- "config_id": null
}
]
}
], - "target": "server",
- "model_type": "Gaussian",
- "model_type_id": "c9269a3e-aede-466e-944a-7f0ec3594468",
- "training_parameters": {
- "parameter": "value"
}, - "meta": {
- "name": "value"
}, - "name": "Example Name",
- "nice_name": "Example Nice Name",
- "description": "Example Description",
- "version": 1,
- "enabled": true,
- "visible": true
}, - "model_template_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "saved_model": { },
- "evaluation_metrics": { },
- "meta": { }
}, - "saved_model": { },
- "evaluation_metrics": { },
- "meta": { },
- "created_at": 1630942200
}
}
]
}Post an array of classifications to one or multiple devices
| id required | string <uuid> Unique identifier for this Classification entry |
| device_id | string <uuid> Unique identifier for the decvice that made the classification |
| model_id | string Unique identifier for the model used for the classifications. Can be a uuid or a string. |
| audio_clip_id | string or null <uuid> Unique identifier for the audio clip used for the classifications, if any |
| spectrogram_id | string or null <uuid> Unique identifier for the spectrogram used for the classifications, if any |
| sensor_id | string or null <uuid> Identifier for the Sensor this belongs to |
| predictions | Array of numbers or null Prediction probabilities |
| period | number The period of the classification |
| created_at | number The creation date of the classification as a timestamp |
object or null Meta data for the classification | |
object or (any or null) | |
| end_time | number End time for the classifications |
| model_instance_id | string or null <uuid> Unique identifier for the ModelInstance used for the classifications, if any |
object or (any or null) |
[- {
- "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "device_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0b",
- "model_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0c",
- "audio_clip_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0d",
- "spectrogram_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0d",
- "sensor_id": "5dfacc46-006a-4e0c-aeac-ccc172a9a7db",
- "predictions": [
- 0.1,
- 0.9
], - "period": 1000000,
- "created_at": 1630942200,
- "meta": {
- "extra": "data"
}, - "sensor": {
- "id": "5dfacc46-006a-4e0c-aeac-ccc172a9a7db",
- "description": "Sensor1"
}, - "end_time": 112223232,
- "model_instance_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0d",
- "model_instance": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "model_template": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "start_time": "1609462800",
- "end_time": "1609462800",
- "devices": [
- {
- "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "device_id": "stm32:31003b4d34501320303041",
- "api_key": "",
- "sensor_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "serial": "203",
- "revision": "1.2",
- "type_id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "type": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "brand": "Soundsensing",
- "model": "dB20",
- "registered_at": "163161+643.174402",
- "registered_by": "eca213d2-6119-4135-97a9-9b4fce4043de"
}, - "organization_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0c",
- "nickname": "Soundsensing Office",
- "description": "A description of this device",
- "registered_at": "1600000.00",
- "registered_by": "040517af-71c5-4fa3-a1d1-ec5a9112ce0b",
- "configs": [
- {
- "device_id": "3bafab7b-4400-4bcf-8e6e-09f954699940",
- "config_id": "d1d31429-d888-4f1c-b9c1-4e842f9bce5b"
}
]
}
], - "target": "server",
- "model_type": "Gaussian",
- "model_type_id": "c9269a3e-aede-466e-944a-7f0ec3594468",
- "training_parameters": {
- "parameter": "value"
}, - "meta": {
- "name": "value"
}, - "name": "Example Name",
- "nice_name": "Example Nice Name",
- "description": "Example Description",
- "version": 1,
- "enabled": true,
- "visible": true
}, - "model_training_run": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "created_at": 1630942200,
- "device": {
- "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "device_id": "stm32:31003b4d34501320303041",
- "api_key": "",
- "sensor_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "serial": "203",
- "revision": "1.2",
- "type_id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "type": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "brand": "Soundsensing",
- "model": "dB20",
- "registered_at": "163161+643.174402",
- "registered_by": "eca213d2-6119-4135-97a9-9b4fce4043de"
}, - "organization_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0c",
- "nickname": "Soundsensing Office",
- "description": "A description of this device",
- "registered_at": "1600000.00",
- "registered_by": "040517af-71c5-4fa3-a1d1-ec5a9112ce0b",
- "configs": [
- {
- "device_id": "3bafab7b-4400-4bcf-8e6e-09f954699940",
- "config_id": "d1d31429-d888-4f1c-b9c1-4e842f9bce5b"
}
]
}, - "device_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "data_period": "[\"1970-01-19 13:22:30+01\",\"1970-01-19 13:27:30+01\")",
- "model_template": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "start_time": "1609462800",
- "end_time": "1609462800",
- "devices": [
- {
- "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "device_id": "stm32:31003b4d34501320303041",
- "api_key": "",
- "sensor_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "serial": "203",
- "revision": "1.2",
- "type_id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "type": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "brand": "Soundsensing",
- "model": "dB20",
- "registered_at": "163161+643.174402",
- "registered_by": "eca213d2-6119-4135-97a9-9b4fce4043de"
}, - "organization_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0c",
- "nickname": "Soundsensing Office",
- "description": "A description of this device",
- "registered_at": "1600000.00",
- "registered_by": "040517af-71c5-4fa3-a1d1-ec5a9112ce0b",
- "configs": [
- {
- "device_id": "3bafab7b-4400-4bcf-8e6e-09f954699940",
- "config_id": "d1d31429-d888-4f1c-b9c1-4e842f9bce5b"
}
]
}
], - "target": "server",
- "model_type": "Gaussian",
- "model_type_id": "c9269a3e-aede-466e-944a-7f0ec3594468",
- "training_parameters": {
- "parameter": "value"
}, - "meta": {
- "name": "value"
}, - "name": "Example Name",
- "nice_name": "Example Nice Name",
- "description": "Example Description",
- "version": 1,
- "enabled": true,
- "visible": true
}, - "model_template_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "saved_model": { },
- "evaluation_metrics": { },
- "meta": { }
}, - "saved_model": { },
- "evaluation_metrics": { },
- "meta": { },
- "created_at": 1630942200
}
}
]Returns classification data formatted for use in heatmaps.
| device | string <uuid> Identifier for the device to query for. Can be specified multiple times |
| audioclip | string <uuid> Identifier for the audioclip to query for. Can be specified multiple times |
| start | string <date-time> Start time for query |
| end | string <date-time> End time for query |
| time_resolution | number The amount of seconds between each datapoint |
| category_detail_level | number Each detail level represents a step down the hierarchy of categories in the Audioset ontology |
| number_of_categories | number The amount of classes to return. They will be ordered by overall highest probability so the most likely classes are first. |
{- "data": [
- {
- "class_name": "Human Voice",
- "data": [
- {
- "time": 1629291282,
- "prediction": 0.83729
}
]
}
]
}Get soundlevels in a given timespan for the specific sensor. Use either device, organization or both as parameters. Using none will not work
| device | string <uuid> Identifier for the device to query. Can be specified multiple times |
| organization | string <uuid> Identifier for the organization to quiery devices from. Can be specified multiple times |
| start required | string <date-time> Start time for query |
| end required | string <date-time> End time for query |
| offset | integer The number of items to skip before starting to collect the result set. |
| limit | integer [ 1 .. 1000000 ] The numbers of items to return. |
| sort | string Example: sort=created_at Name of the column to sort by |
| order | string Example: order=asc Whether to sort in ascending (asc/ASC) order or in descending (desc/DESC) order. |
{- "data": [
- {
- "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "device_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "leq": 62.2,
- "lafmax": 62.2,
- "lafmin": 62.2,
- "period": 60000000,
- "created_at": 60000000,
- "end_time": 60000000
}
]
}Post an array of soundlevels to one or multiple devices
| id | string <uuid> Unique identifier for this soundlevel entry |
| device_id | string <uuid> Unique identifier for the device posting this soundlevel entry |
| leq | number or null Continious Equivalent SPL. A-weighted |
| lafmax | number or null Maximum A-weighted sound level measurement in dB measured with a fast time weighting. |
| lafmin | number or null Minimum level with A-weighted frequency response and fast time constant |
| period | integer Time-span this soundlevel measurement covers. Number of microseconds prior to @end_time. |
| created_at | number Time of creation for this entry |
| end_time | number Time this measurement ended. |
[- {
- "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "device_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "leq": 62.2,
- "lafmax": 62.2,
- "lafmin": 62.2,
- "period": 60000000,
- "created_at": 60000000,
- "end_time": 60000000
}
]Get vibration data in a given timespan for the specific sensor. Use either device, organization or both as parameters. Using none will not work
| device | Array of strings <uuid> Identifier for the device to query. Can be specified multiple times |
| offset | integer The number of items to skip before starting to collect the result set. |
| limit | integer [ 1 .. 1000000 ] The numbers of items to return. |
| sort | string Example: sort=created_at Name of the column to sort by |
| order | string Example: order=asc Whether to sort in ascending (asc/ASC) order or in descending (desc/DESC) order. |
| organization | Array of strings <uuid> Filter buildings by organization_id |
| start required | number <timestamp> Start time for query |
| end required | number <timestamp> End time for query |
{- "data": [
- {
- "device_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "rms_x": 0.003,
- "rms_y": 0.003,
- "rms_z": 0.003,
- "p2p_x": 0.003,
- "p2p_y": 0.003,
- "p2p_z": 0.003,
- "period": 60,
- "created_at": 60000000,
- "end_time": 60000000,
- "start_time": 60000000
}
], - "pagination": {
- "offset": 0,
- "limit": 0,
- "total": 0
}
}Post an array of Vibrations to one or multiple devices
| device_id | string <uuid> Unique identifier for the device posting this vibration data |
| rms_x | number or null RMS X |
| rms_y | number or null RMS Y |
| rms_z | number or null RMS Z |
| p2p_x | number or null P2P X |
| p2p_y | number or null P2P Y |
| p2p_z | number or null P2P Z |
| period | number Time-span this vibration measurement covers. Number of seconds prior to @end_time. |
| created_at | number Time of creation for this entry |
| end_time | number Time this measurement ended. |
| start_time | number Time this measurement started. |
[- {
- "device_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "rms_x": 0.003,
- "rms_y": 0.003,
- "rms_z": 0.003,
- "p2p_x": 0.003,
- "p2p_y": 0.003,
- "p2p_z": 0.003,
- "period": 60,
- "created_at": 60000000,
- "end_time": 60000000,
- "start_time": 60000000
}
]Get spectrograms in a given timespan for the specificed devices
| device required | string <uuid> Identifier for the device to query. Can be specified multiple times |
| start required | string <date-time> Start time for query |
| end required | string <date-time> End time for query |
| offset | integer The number of items to skip before starting to collect the result set. |
| limit | integer [ 1 .. 1000000 ] The numbers of items to return. |
| sort | string Example: sort=created_at Name of the column to sort by |
| order | string Example: order=asc Whether to sort in ascending (asc/ASC) order or in descending (desc/DESC) order. |
{- "data": [
- {
- "id": "c55b2fda-74bc-4ce9-81e6-d666e016f478",
- "device_id": "9cb799ac-3513-46b3-ba22-cf260bd82f1a",
- "spectrogram_type_id": "1e884c97-e147-47e6-a27a-7aeba75f4258",
- "filename": "5928e1a85fa8.wav",
- "bucket": "gs://foo/abucket",
- "start_time": 0.75,
- "end_time": 20,
- "created_at": 1600000.123,
- "period": 60
}
]
}Post an array of Spectrogram to one or multiple devices
| id required | string <uuid> Unique identifier for this object |
| device_id | string <uuid> Identifier for Device this belongs to |
| spectrogram_type_id | string <uuid> Identifier for SpectrogramType this has |
| filename required | string Filename of the AudioClip |
| bucket required | string Storage bucket the file is in |
| start_time | number Time inside AudioClip for annotation start (seconds) |
| end_time | number Time inside AudioClip for annotation end (seconds) |
| created_at required | number Timestamp for creation |
| period | number or null Period of the spectrogram |
[- {
- "id": "c55b2fda-74bc-4ce9-81e6-d666e016f478",
- "device_id": "9cb799ac-3513-46b3-ba22-cf260bd82f1a",
- "spectrogram_type_id": "1e884c97-e147-47e6-a27a-7aeba75f4258",
- "filename": "5928e1a85fa8.wav",
- "bucket": "gs://foo/abucket",
- "start_time": 0.75,
- "end_time": 20,
- "created_at": 1600000.123,
- "period": 60
}
]{- "data": {
- "id": "c55b2fda-74bc-4ce9-81e6-d666e016f478",
- "device_id": "9cb799ac-3513-46b3-ba22-cf260bd82f1a",
- "spectrogram_type_id": "1e884c97-e147-47e6-a27a-7aeba75f4258",
- "filename": "5928e1a85fa8.wav",
- "bucket": "gs://foo/abucket",
- "start_time": 0.75,
- "end_time": 20,
- "created_at": 1600000.123,
- "period": 60
}
}Get download information for a set of spectrograms
| id required | string <uuid> Identifier for the data to download. Can be specified multiple times |
| id required | string <uuid> UUID for the item to download |
[- {
- "id": "a8a50ae6-c858-4634-b95d-30b1fe5712ee"
}
]{- "data": [
- {
- "id": "c55b2fda-74bc-4ce9-81e6-d666e016f478",
}
]
}Generates a pdf report
list of device-ids
| deviceList required | Array of strings[ items <uuid > ] Unique identifiers for devices |
| dateFrom required | string From-date for the date-range |
| dateTo required | string To-date for the date-range |
| workdayStart | string Start of a workday, defaults to 08:00 |
| workdayEnd | string End of a workday, defaults to 16:00 |
| template-id | string <uuid> Unique identifier for template |
{- "deviceList": "[\"040517af-71c5-4fa3-a1d1-ec5a9112ce0a\", \"3e8d2f55-6828-451e-aa8c-9674faa54b19\"]",
- "dateFrom": "YYYY-MM-DDTHH:MM",
- "dateTo": "YYYY-MM-DDTHH:MM",
- "workdayStart": "HH:MM",
- "workdayEnd": "HH:MM",
- "template-id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a"
}| offset | integer The number of items to skip before starting to collect the result set. |
| limit | integer [ 1 .. 1000000 ] The numbers of items to return. |
| sort | string Example: sort=created_at Name of the column to sort by |
| order | string Example: order=asc Whether to sort in ascending (asc/ASC) order or in descending (desc/DESC) order. |
{- "data": [
- {
- "name": "Your Webhook Name",
- "description": "This is a description of details pertaining to your webhook",
- "organization_id": "3cf4b5b4-a8d4-49d3-bbb5-6aedb5ace61c",
- "active": true,
- "auth": {
- "header_key": "Authorization"
}, - "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "registered_at": 1627902751.599545,
- "registered_by": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "devices": [
- {
- "nickname": "Device Nickname",
- "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a"
}
], - "event_subscriptions": [
- [
- {
- "event_type": "spectrogram",
- "id": "47915021-5162-4bb9-bdfa-4213be93a10e",
- "webhook_id": "57915021-5162-4bb9-bdfa-4413be93a90d"
}
]
], - "creator": {
- "email": "user@example.com",
- "id": "6241d28d-a9ec-4724-b272-3573d75ebbf1",
- "name": "User Userson"
}
}
]
}| url required | string <uri> Url for your webhook endpoint. Url must start with https:// |
| name | string A name you want to give your webhook for easier managing |
| description | string Any description you would like to give your webhook |
| organization_id required | string <uuid> The id of a organization you belong to |
| active | boolean Wether your webhook is active or not |
required | object |
| devices | Array of strings[ items <uuid > ] Unique identifiers for devices |
| event_subscriptions required | Array of strings[ items <Capital letters, valid event types > ] The events you would like the webhook to subscribe to. List of possible events can be found at /webhookevents |
{- "name": "Your Webhook Name",
- "description": "This is a description of details pertaining to your webhook",
- "organization_id": "3cf4b5b4-a8d4-49d3-bbb5-6aedb5ace61c",
- "active": true,
- "auth": {
- "header_key": "Authorization",
- "header_value": "Bearer MY-APPLICATION-TOKEN"
}, - "devices": [
- "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "3e8d2f55-6828-451e-aa8c-9674faa54b19"
], - "event_subscriptions": [
- "device",
- "spectrogram"
]
}{- "name": "Your Webhook Name",
- "description": "This is a description of details pertaining to your webhook",
- "organization_id": "3cf4b5b4-a8d4-49d3-bbb5-6aedb5ace61c",
- "active": true,
- "auth": {
- "header_key": "Authorization"
}, - "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "registered_at": 1627902751.599545,
- "registered_by": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "devices": [
- {
- "nickname": "Device Nickname",
- "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a"
}
], - "event_subscriptions": [
- [
- {
- "event_type": "spectrogram",
- "id": "47915021-5162-4bb9-bdfa-4213be93a10e",
- "webhook_id": "57915021-5162-4bb9-bdfa-4413be93a90d"
}
]
], - "creator": {
- "email": "user@example.com",
- "id": "6241d28d-a9ec-4724-b272-3573d75ebbf1",
- "name": "User Userson"
}
}| webhook_id required | string <uuid> uuid of wanted webhook |
{- "data": {
- "name": "Your Webhook Name",
- "description": "This is a description of details pertaining to your webhook",
- "organization_id": "3cf4b5b4-a8d4-49d3-bbb5-6aedb5ace61c",
- "active": true,
- "auth": {
- "header_key": "Authorization"
}, - "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "registered_at": 1627902751.599545,
- "registered_by": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "devices": [
- {
- "nickname": "Device Nickname",
- "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a"
}
], - "event_subscriptions": [
- [
- {
- "event_type": "spectrogram",
- "id": "47915021-5162-4bb9-bdfa-4213be93a10e",
- "webhook_id": "57915021-5162-4bb9-bdfa-4413be93a90d"
}
]
], - "creator": {
- "email": "user@example.com",
- "id": "6241d28d-a9ec-4724-b272-3573d75ebbf1",
- "name": "User Userson"
}
}
}Currently only active property may be edited.
| webhook_id required | string <uuid> uuid of wanted webhook |
| active required | boolean Sets the active state of the webhook. |
{- "active": false
}{- "name": "Your Webhook Name",
- "description": "This is a description of details pertaining to your webhook",
- "organization_id": "3cf4b5b4-a8d4-49d3-bbb5-6aedb5ace61c",
- "active": true,
- "auth": {
- "header_key": "Authorization"
}, - "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "registered_at": 1627902751.599545,
- "registered_by": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "devices": [
- {
- "nickname": "Device Nickname",
- "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a"
}
], - "event_subscriptions": [
- [
- {
- "event_type": "spectrogram",
- "id": "47915021-5162-4bb9-bdfa-4213be93a10e",
- "webhook_id": "57915021-5162-4bb9-bdfa-4413be93a90d"
}
]
], - "creator": {
- "email": "user@example.com",
- "id": "6241d28d-a9ec-4724-b272-3573d75ebbf1",
- "name": "User Userson"
}
}No parameters required, a request with no wuery parameters will return all templates.
| device | string <uuid> uuid of wanted device. Can add plural |
| id | string <uuid> uuid of wanted template. Can add plural |
| name | string Name of wanted model. Can add plural |
| start_time | integer UTC timestamp for earliest valid time for template |
| end_time | integer UTC timestamp for latest valid time for template |
| active_at | integer Limit to templates that are active at the given time |
| active_after | integer Limit to templates that are active after the given time |
| include_devices | boolean Default: true Wether or not to load devices. Query much faster if devices are not needed. Use 0 or 1 |
| offset | integer The number of items to skip before starting to collect the result set. |
| limit | integer [ 1 .. 1000000 ] The numbers of items to return. |
| sort | string Example: sort=created_at Name of the column to sort by |
| order | string Example: order=asc Whether to sort in ascending (asc/ASC) order or in descending (desc/DESC) order. |
{- "data": [
- {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "created_at": "1609462800",
- "start_time": "1609462800",
- "end_time": "1609462800",
- "devices": [
- {
- "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "device_id": "stm32:31003b4d34501320303041",
- "api_key": "",
- "sensor_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "serial": "203",
- "revision": "1.2",
- "type_id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "type": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "brand": "Soundsensing",
- "model": "dB20",
- "registered_at": "163161+643.174402",
- "registered_by": "eca213d2-6119-4135-97a9-9b4fce4043de"
}, - "organization_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0c",
- "nickname": "Soundsensing Office",
- "description": "A description of this device",
- "registered_at": "1600000.00",
- "registered_by": "040517af-71c5-4fa3-a1d1-ec5a9112ce0b",
- "configs": [
- {
- "device_id": "3bafab7b-4400-4bcf-8e6e-09f954699940",
- "config_id": "d1d31429-d888-4f1c-b9c1-4e842f9bce5b"
}
]
}
], - "target": "server",
- "model_type": "Gaussian",
- "model_type_id": "c9269a3e-aede-466e-944a-7f0ec3594468",
- "training_parameters": {
- "parameter": "value"
}, - "meta": {
- "name": "value"
}, - "name": "Example Name",
- "nice_name": "Example Nice Name",
- "description": "Example Description",
- "version": 1,
- "enabled": true,
- "visible": true
}
], - "pagination": {
- "offset": 0,
- "limit": 0,
- "total": 0
}
}| id | string <uuid> Unique identifier for the ModelTemplate |
| start_time | number or null |
| end_time | number or null |
Array of objects or objects or strings | |
| target | string Value: "server" |
| model_type | string |
| model_type_id | string or null <uuid> |
| training_parameters | object or null |
| meta | object or null |
| name | string |
| nice_name | string or null |
| description | string or null |
| version | integer |
| enabled | boolean |
| visible | boolean |
{- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "start_time": "1609462800",
- "end_time": "1609462800",
- "devices": [
- {
- "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "device_id": "stm32:31003b4d34501320303041",
- "api_key": "",
- "sensor_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "serial": "203",
- "revision": "1.2",
- "type_id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "type": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "brand": "Soundsensing",
- "model": "dB20",
- "registered_at": "163161+643.174402",
- "registered_by": "eca213d2-6119-4135-97a9-9b4fce4043de"
}, - "organization_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0c",
- "nickname": "Soundsensing Office",
- "description": "A description of this device",
- "registered_at": "1600000.00",
- "registered_by": "040517af-71c5-4fa3-a1d1-ec5a9112ce0b",
- "configs": [
- {
- "device_id": "3bafab7b-4400-4bcf-8e6e-09f954699940",
- "config_id": "d1d31429-d888-4f1c-b9c1-4e842f9bce5b"
}
]
}
], - "target": "server",
- "model_type": "Gaussian",
- "model_type_id": "c9269a3e-aede-466e-944a-7f0ec3594468",
- "training_parameters": {
- "parameter": "value"
}, - "meta": {
- "name": "value"
}, - "name": "Example Name",
- "nice_name": "Example Nice Name",
- "description": "Example Description",
- "version": 1,
- "enabled": true,
- "visible": true
}{- "data": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "created_at": "1609462800",
- "start_time": "1609462800",
- "end_time": "1609462800",
- "devices": [
- {
- "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "device_id": "stm32:31003b4d34501320303041",
- "api_key": "",
- "sensor_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "serial": "203",
- "revision": "1.2",
- "type_id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "type": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "brand": "Soundsensing",
- "model": "dB20",
- "registered_at": "163161+643.174402",
- "registered_by": "eca213d2-6119-4135-97a9-9b4fce4043de"
}, - "organization_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0c",
- "nickname": "Soundsensing Office",
- "description": "A description of this device",
- "registered_at": "1600000.00",
- "registered_by": "040517af-71c5-4fa3-a1d1-ec5a9112ce0b",
- "configs": [
- {
- "device_id": "3bafab7b-4400-4bcf-8e6e-09f954699940",
- "config_id": "d1d31429-d888-4f1c-b9c1-4e842f9bce5b"
}
]
}
], - "target": "server",
- "model_type": "Gaussian",
- "model_type_id": "c9269a3e-aede-466e-944a-7f0ec3594468",
- "training_parameters": {
- "parameter": "value"
}, - "meta": {
- "name": "value"
}, - "name": "Example Name",
- "nice_name": "Example Nice Name",
- "description": "Example Description",
- "version": 1,
- "enabled": true,
- "visible": true
}
}| template_id required | string <uuid> uuid of wanted ModelTemplate |
{- "data": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "created_at": "1609462800",
- "start_time": "1609462800",
- "end_time": "1609462800",
- "devices": [
- {
- "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "device_id": "stm32:31003b4d34501320303041",
- "api_key": "",
- "sensor_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "serial": "203",
- "revision": "1.2",
- "type_id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "type": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "brand": "Soundsensing",
- "model": "dB20",
- "registered_at": "163161+643.174402",
- "registered_by": "eca213d2-6119-4135-97a9-9b4fce4043de"
}, - "organization_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0c",
- "nickname": "Soundsensing Office",
- "description": "A description of this device",
- "registered_at": "1600000.00",
- "registered_by": "040517af-71c5-4fa3-a1d1-ec5a9112ce0b",
- "configs": [
- {
- "device_id": "3bafab7b-4400-4bcf-8e6e-09f954699940",
- "config_id": "d1d31429-d888-4f1c-b9c1-4e842f9bce5b"
}
]
}
], - "target": "server",
- "model_type": "Gaussian",
- "model_type_id": "c9269a3e-aede-466e-944a-7f0ec3594468",
- "training_parameters": {
- "parameter": "value"
}, - "meta": {
- "name": "value"
}, - "name": "Example Name",
- "nice_name": "Example Nice Name",
- "description": "Example Description",
- "version": 1,
- "enabled": true,
- "visible": true
}
}| template_id required | string <uuid> uuid of wanted ModelTemplate |
attributes labeled required here are not required when editing.
| id | string <uuid> Unique identifier for the ModelTemplate |
| start_time | number or null |
| end_time | number or null |
Array of objects or objects or strings | |
| target | string Value: "server" |
| model_type | string |
| model_type_id | string or null <uuid> |
| training_parameters | object or null |
| meta | object or null |
| name | string |
| nice_name | string or null |
| description | string or null |
| version | integer |
| enabled | boolean |
| visible | boolean |
{- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "start_time": "1609462800",
- "end_time": "1609462800",
- "devices": [
- {
- "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "device_id": "stm32:31003b4d34501320303041",
- "api_key": "",
- "sensor_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "serial": "203",
- "revision": "1.2",
- "type_id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "type": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "brand": "Soundsensing",
- "model": "dB20",
- "registered_at": "163161+643.174402",
- "registered_by": "eca213d2-6119-4135-97a9-9b4fce4043de"
}, - "organization_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0c",
- "nickname": "Soundsensing Office",
- "description": "A description of this device",
- "registered_at": "1600000.00",
- "registered_by": "040517af-71c5-4fa3-a1d1-ec5a9112ce0b",
- "configs": [
- {
- "device_id": "3bafab7b-4400-4bcf-8e6e-09f954699940",
- "config_id": "d1d31429-d888-4f1c-b9c1-4e842f9bce5b"
}
]
}
], - "target": "server",
- "model_type": "Gaussian",
- "model_type_id": "c9269a3e-aede-466e-944a-7f0ec3594468",
- "training_parameters": {
- "parameter": "value"
}, - "meta": {
- "name": "value"
}, - "name": "Example Name",
- "nice_name": "Example Nice Name",
- "description": "Example Description",
- "version": 1,
- "enabled": true,
- "visible": true
}{- "data": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "created_at": "1609462800",
- "start_time": "1609462800",
- "end_time": "1609462800",
- "devices": [
- {
- "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "device_id": "stm32:31003b4d34501320303041",
- "api_key": "",
- "sensor_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "serial": "203",
- "revision": "1.2",
- "type_id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "type": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "brand": "Soundsensing",
- "model": "dB20",
- "registered_at": "163161+643.174402",
- "registered_by": "eca213d2-6119-4135-97a9-9b4fce4043de"
}, - "organization_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0c",
- "nickname": "Soundsensing Office",
- "description": "A description of this device",
- "registered_at": "1600000.00",
- "registered_by": "040517af-71c5-4fa3-a1d1-ec5a9112ce0b",
- "configs": [
- {
- "device_id": "3bafab7b-4400-4bcf-8e6e-09f954699940",
- "config_id": "d1d31429-d888-4f1c-b9c1-4e842f9bce5b"
}
]
}
], - "target": "server",
- "model_type": "Gaussian",
- "model_type_id": "c9269a3e-aede-466e-944a-7f0ec3594468",
- "training_parameters": {
- "parameter": "value"
}, - "meta": {
- "name": "value"
}, - "name": "Example Name",
- "nice_name": "Example Nice Name",
- "description": "Example Description",
- "version": 1,
- "enabled": true,
- "visible": true
}
}| template_id required | string <uuid> uuid of wanted ModelTemplate |
DeviceIds to add
| add | Array of strings <uuid> |
| remove | Array of strings <uuid> |
{- "add": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "remove": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
]
}{- "data": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "created_at": "1609462800",
- "start_time": "1609462800",
- "end_time": "1609462800",
- "devices": [
- {
- "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "device_id": "stm32:31003b4d34501320303041",
- "api_key": "",
- "sensor_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "serial": "203",
- "revision": "1.2",
- "type_id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "type": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "brand": "Soundsensing",
- "model": "dB20",
- "registered_at": "163161+643.174402",
- "registered_by": "eca213d2-6119-4135-97a9-9b4fce4043de"
}, - "organization_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0c",
- "nickname": "Soundsensing Office",
- "description": "A description of this device",
- "registered_at": "1600000.00",
- "registered_by": "040517af-71c5-4fa3-a1d1-ec5a9112ce0b",
- "configs": [
- {
- "device_id": "3bafab7b-4400-4bcf-8e6e-09f954699940",
- "config_id": "d1d31429-d888-4f1c-b9c1-4e842f9bce5b"
}
]
}
], - "target": "server",
- "model_type": "Gaussian",
- "model_type_id": "c9269a3e-aede-466e-944a-7f0ec3594468",
- "training_parameters": {
- "parameter": "value"
}, - "meta": {
- "name": "value"
}, - "name": "Example Name",
- "nice_name": "Example Nice Name",
- "description": "Example Description",
- "version": 1,
- "enabled": true,
- "visible": true
}
}No parameters required, a request with no query parameters will return all instances.
| id | string <uuid> uuid of wanted model instance. Can add plural |
| model_template_id | string <uuid> get instances associated with given model_template. Can add plural |
| model_training_run_id | string <uuid> get instances associated with given training_run. Can add plural |
| start_time | int only get instances created after given UTC timestamp |
| end_time | int only get instances created before given UTC timestamp |
| offset | integer The number of items to skip before starting to collect the result set. |
| limit | integer [ 1 .. 1000000 ] The numbers of items to return. |
| sort | string Example: sort=created_at Name of the column to sort by |
| order | string Example: order=asc Whether to sort in ascending (asc/ASC) order or in descending (desc/DESC) order. |
{- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "model_template": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "created_at": "1609462800",
- "start_time": "1609462800",
- "end_time": "1609462800",
- "devices": [
- {
- "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "device_id": "stm32:31003b4d34501320303041",
- "api_key": "",
- "sensor_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "serial": "203",
- "revision": "1.2",
- "type_id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "type": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "brand": "Soundsensing",
- "model": "dB20",
- "registered_at": "163161+643.174402",
- "registered_by": "eca213d2-6119-4135-97a9-9b4fce4043de"
}, - "organization_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0c",
- "nickname": "Soundsensing Office",
- "description": "A description of this device",
- "registered_at": "1600000.00",
- "registered_by": "040517af-71c5-4fa3-a1d1-ec5a9112ce0b",
- "configs": [
- {
- "device_id": "3bafab7b-4400-4bcf-8e6e-09f954699940",
- "config_id": "d1d31429-d888-4f1c-b9c1-4e842f9bce5b"
}
]
}
], - "target": "server",
- "model_type": "Gaussian",
- "model_type_id": "c9269a3e-aede-466e-944a-7f0ec3594468",
- "training_parameters": {
- "parameter": "value"
}, - "meta": {
- "name": "value"
}, - "name": "Example Name",
- "nice_name": "Example Nice Name",
- "description": "Example Description",
- "version": 1,
- "enabled": true,
- "visible": true
}, - "model_training_run": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "created_at": 1630942200,
- "device": {
- "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "device_id": "stm32:31003b4d34501320303041",
- "api_key": "",
- "sensor_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "serial": "203",
- "revision": "1.2",
- "type_id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "type": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "brand": "Soundsensing",
- "model": "dB20",
- "registered_at": "163161+643.174402",
- "registered_by": "eca213d2-6119-4135-97a9-9b4fce4043de"
}, - "organization_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0c",
- "nickname": "Soundsensing Office",
- "description": "A description of this device",
- "registered_at": "1600000.00",
- "registered_by": "040517af-71c5-4fa3-a1d1-ec5a9112ce0b",
- "configs": [
- {
- "device_id": "3bafab7b-4400-4bcf-8e6e-09f954699940",
- "config_id": "d1d31429-d888-4f1c-b9c1-4e842f9bce5b"
}
]
}, - "device_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "data_period": "[\"1970-01-19 13:22:30+01\",\"1970-01-19 13:27:30+01\")",
- "model_template": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "created_at": "1609462800",
- "start_time": "1609462800",
- "end_time": "1609462800",
- "devices": [
- {
- "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "device_id": "stm32:31003b4d34501320303041",
- "api_key": "",
- "sensor_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "serial": "203",
- "revision": "1.2",
- "type_id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "type": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "brand": "Soundsensing",
- "model": "dB20",
- "registered_at": "163161+643.174402",
- "registered_by": "eca213d2-6119-4135-97a9-9b4fce4043de"
}, - "organization_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0c",
- "nickname": "Soundsensing Office",
- "description": "A description of this device",
- "registered_at": "1600000.00",
- "registered_by": "040517af-71c5-4fa3-a1d1-ec5a9112ce0b",
- "configs": [
- {
- "device_id": "3bafab7b-4400-4bcf-8e6e-09f954699940",
- "config_id": "d1d31429-d888-4f1c-b9c1-4e842f9bce5b"
}
]
}
], - "target": "server",
- "model_type": "Gaussian",
- "model_type_id": "c9269a3e-aede-466e-944a-7f0ec3594468",
- "training_parameters": {
- "parameter": "value"
}, - "meta": {
- "name": "value"
}, - "name": "Example Name",
- "nice_name": "Example Nice Name",
- "description": "Example Description",
- "version": 1,
- "enabled": true,
- "visible": true
}, - "model_template_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "saved_model": { },
- "evaluation_metrics": { },
- "meta": { }
}, - "saved_model": { },
- "evaluation_metrics": { },
- "meta": { },
- "created_at": 1630942200
}| id | string <uuid> Unique identifier for the ModelInstance |
required | object Model Template describing a model that can be used by the system |
object or (any or null) | |
| saved_model | object |
| evaluation_metrics | object |
| meta | object |
| created_at | number The creation date of the ModelInstance as a timestamp |
{- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "model_template": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "start_time": "1609462800",
- "end_time": "1609462800",
- "devices": [
- {
- "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "device_id": "stm32:31003b4d34501320303041",
- "api_key": "",
- "sensor_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "serial": "203",
- "revision": "1.2",
- "type_id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "type": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "brand": "Soundsensing",
- "model": "dB20",
- "registered_at": "163161+643.174402",
- "registered_by": "eca213d2-6119-4135-97a9-9b4fce4043de"
}, - "organization_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0c",
- "nickname": "Soundsensing Office",
- "description": "A description of this device",
- "registered_at": "1600000.00",
- "registered_by": "040517af-71c5-4fa3-a1d1-ec5a9112ce0b",
- "configs": [
- {
- "device_id": "3bafab7b-4400-4bcf-8e6e-09f954699940",
- "config_id": "d1d31429-d888-4f1c-b9c1-4e842f9bce5b"
}
]
}
], - "target": "server",
- "model_type": "Gaussian",
- "model_type_id": "c9269a3e-aede-466e-944a-7f0ec3594468",
- "training_parameters": {
- "parameter": "value"
}, - "meta": {
- "name": "value"
}, - "name": "Example Name",
- "nice_name": "Example Nice Name",
- "description": "Example Description",
- "version": 1,
- "enabled": true,
- "visible": true
}, - "model_training_run": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "created_at": 1630942200,
- "device": {
- "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "device_id": "stm32:31003b4d34501320303041",
- "api_key": "",
- "sensor_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "serial": "203",
- "revision": "1.2",
- "type_id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "type": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "brand": "Soundsensing",
- "model": "dB20",
- "registered_at": "163161+643.174402",
- "registered_by": "eca213d2-6119-4135-97a9-9b4fce4043de"
}, - "organization_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0c",
- "nickname": "Soundsensing Office",
- "description": "A description of this device",
- "registered_at": "1600000.00",
- "registered_by": "040517af-71c5-4fa3-a1d1-ec5a9112ce0b",
- "configs": [
- {
- "device_id": "3bafab7b-4400-4bcf-8e6e-09f954699940",
- "config_id": "d1d31429-d888-4f1c-b9c1-4e842f9bce5b"
}
]
}, - "device_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "data_period": "[\"1970-01-19 13:22:30+01\",\"1970-01-19 13:27:30+01\")",
- "model_template": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "start_time": "1609462800",
- "end_time": "1609462800",
- "devices": [
- {
- "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "device_id": "stm32:31003b4d34501320303041",
- "api_key": "",
- "sensor_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "serial": "203",
- "revision": "1.2",
- "type_id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "type": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "brand": "Soundsensing",
- "model": "dB20",
- "registered_at": "163161+643.174402",
- "registered_by": "eca213d2-6119-4135-97a9-9b4fce4043de"
}, - "organization_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0c",
- "nickname": "Soundsensing Office",
- "description": "A description of this device",
- "registered_at": "1600000.00",
- "registered_by": "040517af-71c5-4fa3-a1d1-ec5a9112ce0b",
- "configs": [
- {
- "device_id": "3bafab7b-4400-4bcf-8e6e-09f954699940",
- "config_id": "d1d31429-d888-4f1c-b9c1-4e842f9bce5b"
}
]
}
], - "target": "server",
- "model_type": "Gaussian",
- "model_type_id": "c9269a3e-aede-466e-944a-7f0ec3594468",
- "training_parameters": {
- "parameter": "value"
}, - "meta": {
- "name": "value"
}, - "name": "Example Name",
- "nice_name": "Example Nice Name",
- "description": "Example Description",
- "version": 1,
- "enabled": true,
- "visible": true
}, - "model_template_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "saved_model": { },
- "evaluation_metrics": { },
- "meta": { }
}, - "saved_model": { },
- "evaluation_metrics": { },
- "meta": { },
- "created_at": 1630942200
}{- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "model_template": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "created_at": "1609462800",
- "start_time": "1609462800",
- "end_time": "1609462800",
- "devices": [
- {
- "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "device_id": "stm32:31003b4d34501320303041",
- "api_key": "",
- "sensor_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "serial": "203",
- "revision": "1.2",
- "type_id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "type": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "brand": "Soundsensing",
- "model": "dB20",
- "registered_at": "163161+643.174402",
- "registered_by": "eca213d2-6119-4135-97a9-9b4fce4043de"
}, - "organization_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0c",
- "nickname": "Soundsensing Office",
- "description": "A description of this device",
- "registered_at": "1600000.00",
- "registered_by": "040517af-71c5-4fa3-a1d1-ec5a9112ce0b",
- "configs": [
- {
- "device_id": "3bafab7b-4400-4bcf-8e6e-09f954699940",
- "config_id": "d1d31429-d888-4f1c-b9c1-4e842f9bce5b"
}
]
}
], - "target": "server",
- "model_type": "Gaussian",
- "model_type_id": "c9269a3e-aede-466e-944a-7f0ec3594468",
- "training_parameters": {
- "parameter": "value"
}, - "meta": {
- "name": "value"
}, - "name": "Example Name",
- "nice_name": "Example Nice Name",
- "description": "Example Description",
- "version": 1,
- "enabled": true,
- "visible": true
}, - "model_training_run": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "created_at": 1630942200,
- "device": {
- "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "device_id": "stm32:31003b4d34501320303041",
- "api_key": "",
- "sensor_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "serial": "203",
- "revision": "1.2",
- "type_id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "type": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "brand": "Soundsensing",
- "model": "dB20",
- "registered_at": "163161+643.174402",
- "registered_by": "eca213d2-6119-4135-97a9-9b4fce4043de"
}, - "organization_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0c",
- "nickname": "Soundsensing Office",
- "description": "A description of this device",
- "registered_at": "1600000.00",
- "registered_by": "040517af-71c5-4fa3-a1d1-ec5a9112ce0b",
- "configs": [
- {
- "device_id": "3bafab7b-4400-4bcf-8e6e-09f954699940",
- "config_id": "d1d31429-d888-4f1c-b9c1-4e842f9bce5b"
}
]
}, - "device_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "data_period": "[\"1970-01-19 13:22:30+01\",\"1970-01-19 13:27:30+01\")",
- "model_template": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "created_at": "1609462800",
- "start_time": "1609462800",
- "end_time": "1609462800",
- "devices": [
- {
- "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "device_id": "stm32:31003b4d34501320303041",
- "api_key": "",
- "sensor_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "serial": "203",
- "revision": "1.2",
- "type_id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "type": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "brand": "Soundsensing",
- "model": "dB20",
- "registered_at": "163161+643.174402",
- "registered_by": "eca213d2-6119-4135-97a9-9b4fce4043de"
}, - "organization_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0c",
- "nickname": "Soundsensing Office",
- "description": "A description of this device",
- "registered_at": "1600000.00",
- "registered_by": "040517af-71c5-4fa3-a1d1-ec5a9112ce0b",
- "configs": [
- {
- "device_id": "3bafab7b-4400-4bcf-8e6e-09f954699940",
- "config_id": "d1d31429-d888-4f1c-b9c1-4e842f9bce5b"
}
]
}
], - "target": "server",
- "model_type": "Gaussian",
- "model_type_id": "c9269a3e-aede-466e-944a-7f0ec3594468",
- "training_parameters": {
- "parameter": "value"
}, - "meta": {
- "name": "value"
}, - "name": "Example Name",
- "nice_name": "Example Nice Name",
- "description": "Example Description",
- "version": 1,
- "enabled": true,
- "visible": true
}, - "model_template_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "saved_model": { },
- "evaluation_metrics": { },
- "meta": { }
}, - "saved_model": { },
- "evaluation_metrics": { },
- "meta": { },
- "created_at": 1630942200
}No parameters required, a request with no query parameters will return all training runs.
| id | string <uuid> uuid of wanted training run. Can add plural |
| model_template_id | string <uuid> uuid of model template to query by. Can add plural |
| device | string <uuid> uuid of device to query by. Can add plural |
| data_start | int only get training runs that use data from after this UTC timestamp |
| data_end | int only get training runs that use data from before this UTC timestamp |
| offset | integer The number of items to skip before starting to collect the result set. |
| limit | integer [ 1 .. 1000000 ] The numbers of items to return. |
| sort | string Example: sort=created_at Name of the column to sort by |
| order | string Example: order=asc Whether to sort in ascending (asc/ASC) order or in descending (desc/DESC) order. |
{- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "created_at": 1630942200,
- "device": {
- "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "device_id": "stm32:31003b4d34501320303041",
- "api_key": "",
- "sensor_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "serial": "203",
- "revision": "1.2",
- "type_id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "type": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "brand": "Soundsensing",
- "model": "dB20",
- "registered_at": "163161+643.174402",
- "registered_by": "eca213d2-6119-4135-97a9-9b4fce4043de"
}, - "organization_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0c",
- "nickname": "Soundsensing Office",
- "description": "A description of this device",
- "registered_at": "1600000.00",
- "registered_by": "040517af-71c5-4fa3-a1d1-ec5a9112ce0b",
- "configs": [
- {
- "device_id": "3bafab7b-4400-4bcf-8e6e-09f954699940",
- "config_id": "d1d31429-d888-4f1c-b9c1-4e842f9bce5b"
}
]
}, - "device_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "data_period": "[\"1970-01-19 13:22:30+01\",\"1970-01-19 13:27:30+01\")",
- "model_template": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "created_at": "1609462800",
- "start_time": "1609462800",
- "end_time": "1609462800",
- "devices": [
- {
- "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "device_id": "stm32:31003b4d34501320303041",
- "api_key": "",
- "sensor_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "serial": "203",
- "revision": "1.2",
- "type_id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "type": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "brand": "Soundsensing",
- "model": "dB20",
- "registered_at": "163161+643.174402",
- "registered_by": "eca213d2-6119-4135-97a9-9b4fce4043de"
}, - "organization_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0c",
- "nickname": "Soundsensing Office",
- "description": "A description of this device",
- "registered_at": "1600000.00",
- "registered_by": "040517af-71c5-4fa3-a1d1-ec5a9112ce0b",
- "configs": [
- {
- "device_id": "3bafab7b-4400-4bcf-8e6e-09f954699940",
- "config_id": "d1d31429-d888-4f1c-b9c1-4e842f9bce5b"
}
]
}
], - "target": "server",
- "model_type": "Gaussian",
- "model_type_id": "c9269a3e-aede-466e-944a-7f0ec3594468",
- "training_parameters": {
- "parameter": "value"
}, - "meta": {
- "name": "value"
}, - "name": "Example Name",
- "nice_name": "Example Nice Name",
- "description": "Example Description",
- "version": 1,
- "enabled": true,
- "visible": true
}, - "model_template_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "saved_model": { },
- "evaluation_metrics": { },
- "meta": { }
}| id | string <uuid> Unique identifier for the ModelTrainingRun |
| created_at | number The creation date of the ModelTrainingRun as a timestamp |
object | |
| device_id | string <uuid> |
| data_period | string Timerange for the training data |
required | object or (any or null) |
| model_template_id | string <uuid> |
| saved_model | object |
| evaluation_metrics | object |
| meta | object |
{- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "created_at": 1630942200,
- "device": {
- "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "device_id": "stm32:31003b4d34501320303041",
- "api_key": "",
- "sensor_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "serial": "203",
- "revision": "1.2",
- "type_id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "type": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "brand": "Soundsensing",
- "model": "dB20",
- "registered_at": "163161+643.174402",
- "registered_by": "eca213d2-6119-4135-97a9-9b4fce4043de"
}, - "organization_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0c",
- "nickname": "Soundsensing Office",
- "description": "A description of this device",
- "registered_at": "1600000.00",
- "registered_by": "040517af-71c5-4fa3-a1d1-ec5a9112ce0b",
- "configs": [
- {
- "device_id": "3bafab7b-4400-4bcf-8e6e-09f954699940",
- "config_id": "d1d31429-d888-4f1c-b9c1-4e842f9bce5b"
}
]
}, - "device_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "data_period": "[\"1970-01-19 13:22:30+01\",\"1970-01-19 13:27:30+01\")",
- "model_template": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "start_time": "1609462800",
- "end_time": "1609462800",
- "devices": [
- {
- "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "device_id": "stm32:31003b4d34501320303041",
- "api_key": "",
- "sensor_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "serial": "203",
- "revision": "1.2",
- "type_id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "type": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "brand": "Soundsensing",
- "model": "dB20",
- "registered_at": "163161+643.174402",
- "registered_by": "eca213d2-6119-4135-97a9-9b4fce4043de"
}, - "organization_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0c",
- "nickname": "Soundsensing Office",
- "description": "A description of this device",
- "registered_at": "1600000.00",
- "registered_by": "040517af-71c5-4fa3-a1d1-ec5a9112ce0b",
- "configs": [
- {
- "device_id": "3bafab7b-4400-4bcf-8e6e-09f954699940",
- "config_id": "d1d31429-d888-4f1c-b9c1-4e842f9bce5b"
}
]
}
], - "target": "server",
- "model_type": "Gaussian",
- "model_type_id": "c9269a3e-aede-466e-944a-7f0ec3594468",
- "training_parameters": {
- "parameter": "value"
}, - "meta": {
- "name": "value"
}, - "name": "Example Name",
- "nice_name": "Example Nice Name",
- "description": "Example Description",
- "version": 1,
- "enabled": true,
- "visible": true
}, - "model_template_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "saved_model": { },
- "evaluation_metrics": { },
- "meta": { }
}{- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "created_at": 1630942200,
- "device": {
- "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "device_id": "stm32:31003b4d34501320303041",
- "api_key": "",
- "sensor_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "serial": "203",
- "revision": "1.2",
- "type_id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "type": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "brand": "Soundsensing",
- "model": "dB20",
- "registered_at": "163161+643.174402",
- "registered_by": "eca213d2-6119-4135-97a9-9b4fce4043de"
}, - "organization_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0c",
- "nickname": "Soundsensing Office",
- "description": "A description of this device",
- "registered_at": "1600000.00",
- "registered_by": "040517af-71c5-4fa3-a1d1-ec5a9112ce0b",
- "configs": [
- {
- "device_id": "3bafab7b-4400-4bcf-8e6e-09f954699940",
- "config_id": "d1d31429-d888-4f1c-b9c1-4e842f9bce5b"
}
]
}, - "device_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "data_period": "[\"1970-01-19 13:22:30+01\",\"1970-01-19 13:27:30+01\")",
- "model_template": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "created_at": "1609462800",
- "start_time": "1609462800",
- "end_time": "1609462800",
- "devices": [
- {
- "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "device_id": "stm32:31003b4d34501320303041",
- "api_key": "",
- "sensor_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "serial": "203",
- "revision": "1.2",
- "type_id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "type": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "brand": "Soundsensing",
- "model": "dB20",
- "registered_at": "163161+643.174402",
- "registered_by": "eca213d2-6119-4135-97a9-9b4fce4043de"
}, - "organization_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0c",
- "nickname": "Soundsensing Office",
- "description": "A description of this device",
- "registered_at": "1600000.00",
- "registered_by": "040517af-71c5-4fa3-a1d1-ec5a9112ce0b",
- "configs": [
- {
- "device_id": "3bafab7b-4400-4bcf-8e6e-09f954699940",
- "config_id": "d1d31429-d888-4f1c-b9c1-4e842f9bce5b"
}
]
}
], - "target": "server",
- "model_type": "Gaussian",
- "model_type_id": "c9269a3e-aede-466e-944a-7f0ec3594468",
- "training_parameters": {
- "parameter": "value"
}, - "meta": {
- "name": "value"
}, - "name": "Example Name",
- "nice_name": "Example Nice Name",
- "description": "Example Description",
- "version": 1,
- "enabled": true,
- "visible": true
}, - "model_template_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "saved_model": { },
- "evaluation_metrics": { },
- "meta": { }
}| start required | number <timestamp> start time of query as timestamp |
| end required | number <timestamp> end time of query |
| datatype required | string The datatype to query. Format = datapoints_ |
| organization_id | string <uuid> Specifies the organization to draw datapoints from. If not specified, returns for all devices the user can access. |
{ }An endpoint ment to be used from a device, for storing metrics for the device in the backend
| device required | string <uuid> Identifier for the device to query. |
| timestamp required | integer Timestamp for the collection of metrics |
| period | integer The period of soundrecording average, if applicable. Will be stored as a Soundlevel |
| dba_leq | number The leq soundlevel measurement, if applicable. Will be stored as a Soundlevel |
| lafmax | number The lafmax soundlevel measurement, if applicable. Will be stored as a Soundlevel |
| lafmin | number The lafmin soundlevel measurement, if applicable. Will be stored as a Soundlevel |
| your_metric_name | string Any metric that a device might send that is interesting to store may be entered as a query parameter in this endpoint, and will be stored in DeviceMetrics.metrics unless the parameter is specified above. Vibration data has a dedicated endpoint. |
{- "Location": "string"
}An endpoint ment to be used from a device, for storing metrics for the device in the backend. Returns an url for uploading the spectrogram from the device. The format of the spectrogram should be either JPEG or PNG with the 8bit values representing a decibel value. The Y-axis of the image represents time, and the X-axis represents frequency.
| device required | string <uuid> Identifier for the device to query. |
| timestamp required | number Timestamp for the collection of metrics. Timestamp should be the end time of the spectrogram. |
| frames required | number Number of timeframes in the spectrogram |
| format required | integer <short_id> The short id of the format of the spectrogram. See SpectrogramTypes |
| bucket | string <url> The url of the bucket for uploading the spectrogram |
| Content-Type required | string Content Type of data, must be image/jpeg |
{- "Location": "string"
}Get raw device data in a given timespan for specified devices. Use either device, organization or both as parameters
| device | Array of strings <uuid> ids of devices to return raw data for |
| gateway_device_id | Array of strings <uuid> ids of gateways to return data for |
| organization_id | Array of strings <uuid> ids of organizations to return data for |
| start required | number <timestamp> Start time for query |
| end required | number <timestamp> End time for query |
| offset | integer The number of items to skip before starting to collect the result set. |
| limit | integer [ 1 .. 1000000 ] The numbers of items to return. |
| sort | string Example: sort=created_at Name of the column to sort by |
| order | string Example: order=asc Whether to sort in ascending (asc/ASC) order or in descending (desc/DESC) order. |
{- "data": [
- {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "device_id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "gateway_device_id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "start_time": "1599750",
- "end_time": "1600050",
- "data": "string",
- "meta": { },
- "created_at": 0
}
], - "pagination": {
- "offset": 0,
- "limit": 0,
- "total": 0
}
}Insert raw device data. Can be for multiple devices at a time
{- "data": [
- {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "device_id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "gateway_device_id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "start_time": "1599750",
- "end_time": "1600050",
- "data": "string",
- "meta": { },
- "created_at": 0
}
]
}Post an array of DeviceMetrics to one or multiple devices
| id | string <uuid> Unique identifier for the metrics |
| device_id | string <uuid> Unique identifier for the device the metrics belong to |
| time | string or null Timerange for metrics |
object Extra data containing custom key/value pairs | |
| created_at | number Time of creation |
| start_time | number Start time of metrics |
| end_time | number End time of metrics |
| period | number Difference between start and end time |
[- {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "device_id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "time": "[\"1970-01-19 13:22:30+01\",\"1970-01-19 13:27:30+01\")",
- "data": { },
- "created_at": 0,
- "start_time": "1599750",
- "end_time": "1600050",
- "period": "60"
}
]The building to create.
| address | string or null The address of the building |
| name | string or null The name of the building |
| latitude | number or null The latitude of the building |
| longitude | number or null The longitude of the building |
| site | string or null The name of the group of buildings this building is a part of |
| organization_id | string or null <uuid> The ID of the organization that owns or maintains this building |
object or null Meta data and options for building |
{- "address": "Gaustadalléen 21, 0349 Oslo",
- "name": "StartupLab",
- "latitude": 59.94244371768029,
- "longitude": 10.716423984958196,
- "site": "Forskningsparken",
- "organization_id": "f7052ff6-172d-43ac-80a9-6319ec2992c9",
- "meta": {
- "muted_to": 1520000000,
- "muted_at": 1520000000,
- "muted_by": "09ef1908-2848-44cf-b729-3b3c63b4e62e"
}
}{- "data": {
- "id": "8dd2f042-faed-47e2-9a05-db496220dbe6",
- "address": "Gaustadalléen 21, 0349 Oslo",
- "name": "StartupLab",
- "latitude": 59.94244371768029,
- "longitude": 10.716423984958196,
- "site": "Forskningsparken",
- "organization_id": "f7052ff6-172d-43ac-80a9-6319ec2992c9",
- "meta": {
- "muted_to": 1520000000,
- "muted_at": 1520000000,
- "muted_by": "09ef1908-2848-44cf-b729-3b3c63b4e62e"
}
}
}| organization_id | Array of strings <uuid> Filter buildings by organization_id |
| offset | integer The number of items to skip before starting to collect the result set. |
| limit | integer [ 1 .. 1000000 ] The numbers of items to return. |
| sort | string Example: sort=created_at Name of the column to sort by |
| order | string Example: order=asc Whether to sort in ascending (asc/ASC) order or in descending (desc/DESC) order. |
{- "data": [
- {
- "id": "8dd2f042-faed-47e2-9a05-db496220dbe6",
- "address": "Gaustadalléen 21, 0349 Oslo",
- "name": "StartupLab",
- "latitude": 59.94244371768029,
- "longitude": 10.716423984958196,
- "site": "Forskningsparken",
- "organization_id": "f7052ff6-172d-43ac-80a9-6319ec2992c9",
- "meta": {
- "muted_to": 1520000000,
- "muted_at": 1520000000,
- "muted_by": "09ef1908-2848-44cf-b729-3b3c63b4e62e"
}
}
], - "pagination": {
- "offset": 0,
- "limit": 0,
- "total": 0
}
}| building_id required | string <uuid> The UUID of the building to retrieve. |
{- "data": {
- "id": "8dd2f042-faed-47e2-9a05-db496220dbe6",
- "address": "Gaustadalléen 21, 0349 Oslo",
- "name": "StartupLab",
- "latitude": 59.94244371768029,
- "longitude": 10.716423984958196,
- "site": "Forskningsparken",
- "organization_id": "f7052ff6-172d-43ac-80a9-6319ec2992c9",
- "meta": {
- "muted_to": 1520000000,
- "muted_at": 1520000000,
- "muted_by": "09ef1908-2848-44cf-b729-3b3c63b4e62e"
}
}
}| building_id required | string <uuid> The ID of the building to update |
The fields to update.
| address | string or null The address of the building |
| name | string or null The name of the building |
| latitude | number or null The latitude of the building |
| longitude | number or null The longitude of the building |
| site | string or null The name of the group of buildings this building is a part of |
object or null Meta data and options for building |
{- "address": "Gaustadalléen 21, 0349 Oslo",
- "name": "StartupLab",
- "latitude": 59.94244371768029,
- "longitude": 10.716423984958196,
- "site": "Forskningsparken",
- "organization_id": "f7052ff6-172d-43ac-80a9-6319ec2992c9",
- "meta": {
- "muted_to": 1520000000,
- "muted_at": 1520000000,
- "muted_by": "09ef1908-2848-44cf-b729-3b3c63b4e62e"
}
}{- "data": {
- "id": "8dd2f042-faed-47e2-9a05-db496220dbe6",
- "address": "Gaustadalléen 21, 0349 Oslo",
- "name": "StartupLab",
- "latitude": 59.94244371768029,
- "longitude": 10.716423984958196,
- "site": "Forskningsparken",
- "organization_id": "f7052ff6-172d-43ac-80a9-6319ec2992c9",
- "meta": {
- "muted_to": 1520000000,
- "muted_at": 1520000000,
- "muted_by": "09ef1908-2848-44cf-b729-3b3c63b4e62e"
}
}
}The room to create.
| nice_name | string or null Human-readable name for the room |
| name | string or null The name of the room, usually a technical name that identifies the room inside the building |
| floor | string or null The floor of the room |
| building_id | string or null <uuid> The ID of the building this room belongs to |
| latitude | number or null The latitude of the room |
| longitude | number or null The longitude of the room |
{- "nice_name": "Head Down Space",
- "name": "XAZ154",
- "floor": "U1",
- "building_id": "9dd2f042-faed-47e2-9a05-db496220dbe1",
- "latitude": 59.94244371768025,
- "longitude": 10.716423984958194
}{- "data": {
- "id": "8dd2f042-faed-47e2-9a05-db496220dbe1",
- "nice_name": "Head Down Space",
- "name": "XAZ154",
- "floor": "U1",
- "building_id": "9dd2f042-faed-47e2-9a05-db496220dbe1",
- "latitude": 59.94244371768025,
- "longitude": 10.716423984958194
}
}| organization_id | Array of strings <uuid> Filter rooms by organization_id |
| building_id | Array of strings <uuid> Filter rooms by building_id |
| offset | integer The number of items to skip before starting to collect the result set. |
| limit | integer [ 1 .. 1000000 ] The numbers of items to return. |
| sort | string Example: sort=created_at Name of the column to sort by |
| order | string Example: order=asc Whether to sort in ascending (asc/ASC) order or in descending (desc/DESC) order. |
{ }| room_id required | string <uuid> The ID of the room to get |
{- "data": {
- "id": "8dd2f042-faed-47e2-9a05-db496220dbe1",
- "nice_name": "Head Down Space",
- "name": "XAZ154",
- "floor": "U1",
- "building_id": "9dd2f042-faed-47e2-9a05-db496220dbe1",
- "latitude": 59.94244371768025,
- "longitude": 10.716423984958194
}
}| room_id required | string <uuid> The ID of the room to update |
The fields to update.
| nice_name | string or null Human-readable name for the room |
| name | string or null The name of the room, usually a technical name that identifies the room inside the building |
| floor | string or null The floor of the room |
| building_id | string or null <uuid> The ID of the building this room belongs to |
| latitude | number or null The latitude of the room |
| longitude | number or null The longitude of the room |
{- "nice_name": "Head Down Space",
- "name": "XAZ154",
- "floor": "U1",
- "building_id": "9dd2f042-faed-47e2-9a05-db496220dbe1",
- "latitude": 59.94244371768025,
- "longitude": 10.716423984958194
}{- "data": {
- "id": "8dd2f042-faed-47e2-9a05-db496220dbe1",
- "nice_name": "Head Down Space",
- "name": "XAZ154",
- "floor": "U1",
- "building_id": "9dd2f042-faed-47e2-9a05-db496220dbe1",
- "latitude": 59.94244371768025,
- "longitude": 10.716423984958194
}
}The asset type to create
| name required | string The name of the asset type. The name uniquely defines the asset type. |
{- "name": "string"
}{- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}
}| offset | integer The number of items to skip before starting to collect the result set. |
| limit | integer [ 1 .. 1000000 ] The numbers of items to return. |
| sort | string Example: sort=created_at Name of the column to sort by |
| order | string Example: order=asc Whether to sort in ascending (asc/ASC) order or in descending (desc/DESC) order. |
{- "data": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}
], - "pagination": {
- "offset": 0,
- "limit": 0,
- "total": 0
}
}| asset_category_id required | string <uuid> The ID of the asset category to update |
The fields to update for the given asset category.
| name required | string The name of the asset type. The name uniquely defines the asset type. |
{- "name": "string"
}{- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}
}The asset to create
| name required | string The name of the asset |
| description | string or null Description of asset |
| room_id required | string or null <uuid> The ID of the room that the asset is placed in |
| model required | string or null The model name of the asset |
| nice_name | string or null Human-readable name that identifies the asset or asset type |
| room_position_id | string or null <uuid> The ID of the RoomPosition object the asset is linked to |
| parent_id | string or null <uuid> The ID of the parent asset, if any, the asset is linked to |
| asset_category_id required | string <uuid> The ID of the AssetCategory object that corresponds to the asset |
{- "name": "string",
- "description": "string",
- "room_id": "05451321-18e1-4bfa-aa22-dfd0080cc120",
- "model": "string",
- "nice_name": "string",
- "room_position_id": "71000099-4fca-4140-bfcb-f06f733cf608",
- "parent_id": "1c6ca187-e61f-4301-8dcb-0e9749e89eef",
- "asset_category_id": "ed5f6da2-e989-4290-b244-87ae06007e71"
}{- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "registered_by": "0f8e5222-a38e-4555-9170-437c5d11d7ec",
- "room_id": "05451321-18e1-4bfa-aa22-dfd0080cc120",
- "created_at": 0,
- "model": "string",
- "nice_name": "string",
- "room_position_id": "71000099-4fca-4140-bfcb-f06f733cf608",
- "parent_id": "1c6ca187-e61f-4301-8dcb-0e9749e89eef",
- "asset_category_id": "ed5f6da2-e989-4290-b244-87ae06007e71"
}
}| organization_id | Array of strings <uuid> Filter assets by organization_id |
| building_id | Array of strings <uuid> Filter assets by building_id |
| room_id | Array of strings <uuid> Filter assets by room_id |
| offset | integer The number of items to skip before starting to collect the result set. |
| limit | integer [ 1 .. 1000000 ] The numbers of items to return. |
| sort | string Example: sort=created_at Name of the column to sort by |
| order | string Example: order=asc Whether to sort in ascending (asc/ASC) order or in descending (desc/DESC) order. |
{- "data": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "registered_by": "0f8e5222-a38e-4555-9170-437c5d11d7ec",
- "room_id": "05451321-18e1-4bfa-aa22-dfd0080cc120",
- "created_at": 0,
- "model": "string",
- "nice_name": "string",
- "room_position_id": "71000099-4fca-4140-bfcb-f06f733cf608",
- "parent_id": "1c6ca187-e61f-4301-8dcb-0e9749e89eef",
- "asset_category_id": "ed5f6da2-e989-4290-b244-87ae06007e71"
}
], - "pagination": {
- "offset": 0,
- "limit": 0,
- "total": 0
}
}Get a single asset by ID.
| asset_id required | string <uuid> The ID of the asset to get. |
{- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "registered_by": "0f8e5222-a38e-4555-9170-437c5d11d7ec",
- "room_id": "05451321-18e1-4bfa-aa22-dfd0080cc120",
- "created_at": 0,
- "model": "string",
- "nice_name": "string",
- "room_position_id": "71000099-4fca-4140-bfcb-f06f733cf608",
- "parent_id": "1c6ca187-e61f-4301-8dcb-0e9749e89eef",
- "asset_category_id": "ed5f6da2-e989-4290-b244-87ae06007e71"
}
}Update a single asset by ID.
| asset_id required | string <uuid> The ID of the asset to update. |
The fields to update.
| name | string The name of the asset |
| description | string or null Description of asset |
| room_id | string or null <uuid> The ID of the room that the asset is placed in |
| model | string or null The model name of the asset |
| nice_name | string or null Human-readable name that identifies the asset or asset type |
| room_position_id | string or null <uuid> The ID of the RoomPosition object the asset is linked to |
| parent_id | string or null <uuid> The ID of the parent asset, if any, the asset is linked to |
| asset_category_id | string <uuid> The ID of the AssetCategory object that corresponds to the asset |
{- "name": "string",
- "description": "string",
- "room_id": "05451321-18e1-4bfa-aa22-dfd0080cc120",
- "model": "string",
- "nice_name": "string",
- "room_position_id": "71000099-4fca-4140-bfcb-f06f733cf608",
- "parent_id": "1c6ca187-e61f-4301-8dcb-0e9749e89eef",
- "asset_category_id": "ed5f6da2-e989-4290-b244-87ae06007e71"
}{- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "registered_by": "0f8e5222-a38e-4555-9170-437c5d11d7ec",
- "room_id": "05451321-18e1-4bfa-aa22-dfd0080cc120",
- "created_at": 0,
- "model": "string",
- "nice_name": "string",
- "room_position_id": "71000099-4fca-4140-bfcb-f06f733cf608",
- "parent_id": "1c6ca187-e61f-4301-8dcb-0e9749e89eef",
- "asset_category_id": "ed5f6da2-e989-4290-b244-87ae06007e71"
}
}| id | string <uuid> Unique identifier for the annotation |
| created_at | number Time of creation in UTC |
| start_time | number Start time for the annotation in UTC |
| end_time | number End time for the annotation in UTC |
| creator_id | string <uuid> Unique identifier for the user that created this annotation |
| device_id | string <uuid> Unique identifier for the device that this annotation is related to |
| model_template_id | string or null <uuid> Unique identifier for the model template that this annotation is related to |
| alarm_id | string or null <uuid> Unique identifier for an alarm that this annotation is related to |
| anomaly | string or null Enum: "YES" "NO" "MAYBE" Is this annotation related to an anomaly? |
| description | string Description of the annotation |
| tags | Array of strings or null |
| meta | object or null |
{- "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "created_at": 1500000000,
- "start_time": 1500000000,
- "end_time": 1500000000,
- "creator_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "device_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "model_template_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "alarm_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "anomaly": "yes",
- "description": "This is a description of the annotation",
- "tags": [
- "overheating"
], - "meta": { }
}| id | string <uuid> |
| name required | string The name of the asset |
| description | string or null Description of asset |
| registered_by | string <uuid> The ID of the user that registered the asset |
| room_id required | string or null <uuid> The ID of the room that the asset is placed in |
| created_at | number The timestamp at creation. |
| model required | string or null The model name of the asset |
| nice_name | string or null Human-readable name that identifies the asset or asset type |
| room_position_id | string or null <uuid> The ID of the RoomPosition object the asset is linked to |
| parent_id | string or null <uuid> The ID of the parent asset, if any, the asset is linked to |
| asset_category_id required | string <uuid> The ID of the AssetCategory object that corresponds to the asset |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "registered_by": "0f8e5222-a38e-4555-9170-437c5d11d7ec",
- "room_id": "05451321-18e1-4bfa-aa22-dfd0080cc120",
- "created_at": 0,
- "model": "string",
- "nice_name": "string",
- "room_position_id": "71000099-4fca-4140-bfcb-f06f733cf608",
- "parent_id": "1c6ca187-e61f-4301-8dcb-0e9749e89eef",
- "asset_category_id": "ed5f6da2-e989-4290-b244-87ae06007e71"
}| id | string <uuid> |
| name required | string The name of the asset type. The name uniquely defines the asset type. |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}| id | string <uuid> Unique identifier for this building |
| address | string or null The address of the building |
| name | string or null The name of the building |
| latitude | number or null The latitude of the building |
| longitude | number or null The longitude of the building |
| site | string or null The name of the group of buildings this building is a part of |
| organization_id | string or null <uuid> The ID of the organization that owns or maintains this building |
object or null Meta data and options for building |
{- "id": "8dd2f042-faed-47e2-9a05-db496220dbe6",
- "address": "Gaustadalléen 21, 0349 Oslo",
- "name": "StartupLab",
- "latitude": 59.94244371768029,
- "longitude": 10.716423984958196,
- "site": "Forskningsparken",
- "organization_id": "f7052ff6-172d-43ac-80a9-6319ec2992c9",
- "meta": {
- "muted_to": 1520000000,
- "muted_at": 1520000000,
- "muted_by": "09ef1908-2848-44cf-b729-3b3c63b4e62e"
}
}| id | string <uuid> Unique identifier for this room |
| nice_name | string or null Human-readable name for the room |
| name | string or null The name of the room, usually a technical name that identifies the room inside the building |
| floor | string or null The floor of the room |
| building_id | string or null <uuid> The ID of the building this room belongs to |
| latitude | number or null The latitude of the room |
| longitude | number or null The longitude of the room |
{- "id": "8dd2f042-faed-47e2-9a05-db496220dbe1",
- "nice_name": "Head Down Space",
- "name": "XAZ154",
- "floor": "U1",
- "building_id": "9dd2f042-faed-47e2-9a05-db496220dbe1",
- "latitude": 59.94244371768025,
- "longitude": 10.716423984958194
}| id | string <uuid> Unique identifier for the alarm |
| device_id required | string <uuid> Unique identifier for the device that posted this alarm |
| model_instance_id | string or null <uuid> |
| created_at | number Time of creation in UTC |
| creator_id | string <uuid> Unique identifier for the user that created this alarm |
| timestamp required | number Time of alarm in UTC |
| resolved | boolean or null Whether or not the alarm has been resolved |
| resolution_description | string or null Description of how the alarm was resolved |
| resolution_time | number or null Time of resolution in UTC |
| description | string Description of the alarm |
| alarm_type required | string Enum: "A" "B" Type of alarm |
| customer_visible | boolean Wether an alarm is published to customers or not, always true unless user is admin |
{- "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "device_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "model_instance_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "created_at": 1500000000,
- "creator_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "timestamp": 1500000000,
- "resolved": true,
- "resolution_description": "The alarm was resolved by the user",
- "resolution_time": 1500000000,
- "description": "The machine is not running",
- "alarm_type": "B",
- "customer_visible": true
}| device_id | string <uuid> Unique identifier for the device posting this anomaly |
| start_time | number Start time of anomaly in UTC |
| end_time | number End time of anomaly in UTC |
| model_instance_id | string <uuid> Unique identifier for the model instance that detected this anomaly |
| model_template_id | string or null <uuid> Unique identifier for the model template that created this result |
| machine_state | boolean or null Current machine state (on/off/unknown) |
| schedule_state | integer or null Expected machine state based on schedule (on/off/unknown) |
| feature | string or null Feature of the anomaly |
| category | number or null Integer mapping to an internal category of possible anomaly modes |
| schedule_type | number or null Integer mapping to an internal category of possible schedule modes |
| normal_lower | number or null Lower bound of normal range |
| normal_upper | number or null Upper bound of normal range |
| value | number Value of the anomaly |
| score | number Score of the anomaly |
| probability | number Probability of the anomaly |
| created_at | number Time of creation in UTC |
| period | number Length of the period the result covers (end_time - start_time) |
{- "device_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "start_time": 1500000000,
- "end_time": 1500000000,
- "model_instance_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "model_template_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0b",
- "machine_state": true,
- "schedule_state": true,
- "feature": "vibration",
- "category": 1,
- "schedule_type": 1,
- "normal_lower": 0.3,
- "normal_upper": 0.4,
- "value": 0.5,
- "score": 0.5,
- "probability": 0.5,
- "created_at": 1500000000,
- "period": 360
}| id | string <uuid> Unique identifier for the Asset Metric Tag |
| asset_id required | string <uuid> The ID of the asset this tag belongs to |
| metric required | string The name of the metric being tagged |
| description | string or null Optional description of the tag |
| registered_by | string <uuid> The ID of the user who registered the tag |
| created_at | number <timestamp> Timestamp when the tag was created |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "asset_id": "b4695157-0d1d-4da0-8f9e-5c53149389e4",
- "metric": "string",
- "description": "string",
- "registered_by": "0f8e5222-a38e-4555-9170-437c5d11d7ec",
- "created_at": 0
}| id | string <uuid> Unique identifier for this soundlevel entry |
| device_id | string <uuid> Unique identifier for the device posting this soundlevel entry |
| leq | number or null Continious Equivalent SPL. A-weighted |
| lafmax | number or null Maximum A-weighted sound level measurement in dB measured with a fast time weighting. |
| lafmin | number or null Minimum level with A-weighted frequency response and fast time constant |
| period | integer Time-span this soundlevel measurement covers. Number of microseconds prior to @end_time. |
| created_at | number Time of creation for this entry |
| end_time | number Time this measurement ended. |
{- "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "device_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "leq": 62.2,
- "lafmax": 62.2,
- "lafmin": 62.2,
- "period": 60000000,
- "created_at": 60000000,
- "end_time": 60000000
}| id | string <uuid> Integration id |
| integration_service_id | string <uuid> Integration service id |
object | |
| organization_id | string <uuid> Organization id |
| user_name | string or null Username, if used for authentication. If username is used, also supply password |
| api_url | string or null Api-key for integration. This API key overwrites service api url, if different urls are used for different integrations on service. |
| enabled | boolean Boolean for enabling and disabling the integration. If disabled, no notifications will be published using this integration |
| configuration | object or null Other information required for integration |
{- "id": "integration_id",
- "integration_service_id": "integration_service_id",
- "integration_service": {
- "id": "integration_service_id",
- "name": "integration_service_name",
- "description": "integration_service_description",
- "api_url": "integration_service_url"
}, - "organization_id": "organization_id",
- "user_name": "UserName123",
- "enabled": true,
- "configuration": "{'some_info': 'OtherInfo'}"
}| id | string <uuid> Integration service id |
| name | string or null Integration service name |
| description | string or null Integration service description |
| api_url | string or null Integration service url |
{- "id": "integration_service_id",
- "name": "integration_service_name",
- "description": "integration_service_description",
- "api_url": "integration_service_url"
}| id required | string <uuid> Unique identifier for this Classification entry |
| device_id | string <uuid> Unique identifier for the decvice that made the classification |
| model_id | string Unique identifier for the model used for the classifications. Can be a uuid or a string. |
| audio_clip_id | string or null <uuid> Unique identifier for the audio clip used for the classifications, if any |
| spectrogram_id | string or null <uuid> Unique identifier for the spectrogram used for the classifications, if any |
| sensor_id | string or null <uuid> Identifier for the Sensor this belongs to |
| predictions | Array of numbers or null Prediction probabilities |
| period | number The period of the classification |
| created_at | number The creation date of the classification as a timestamp |
object or null Meta data for the classification | |
object or (any or null) | |
| end_time | number End time for the classifications |
| model_instance_id | string or null <uuid> Unique identifier for the ModelInstance used for the classifications, if any |
object or (any or null) |
{- "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "device_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0b",
- "model_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0c",
- "audio_clip_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0d",
- "spectrogram_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0d",
- "sensor_id": "5dfacc46-006a-4e0c-aeac-ccc172a9a7db",
- "predictions": [
- 0.1,
- 0.9
], - "period": 1000000,
- "created_at": 1630942200,
- "meta": {
- "extra": "data"
}, - "sensor": {
- "id": "5dfacc46-006a-4e0c-aeac-ccc172a9a7db",
- "description": "Sensor1"
}, - "end_time": 112223232,
- "model_instance_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0d",
- "model_instance": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "model_template": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "created_at": "1609462800",
- "start_time": "1609462800",
- "end_time": "1609462800",
- "devices": [
- {
- "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "device_id": "stm32:31003b4d34501320303041",
- "api_key": "",
- "sensor_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "serial": "203",
- "revision": "1.2",
- "type_id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "type": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "brand": "Soundsensing",
- "model": "dB20",
- "registered_at": "163161+643.174402",
- "registered_by": "eca213d2-6119-4135-97a9-9b4fce4043de"
}, - "organization_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0c",
- "nickname": "Soundsensing Office",
- "description": "A description of this device",
- "registered_at": "1600000.00",
- "registered_by": "040517af-71c5-4fa3-a1d1-ec5a9112ce0b",
- "configs": [
- {
- "device_id": "3bafab7b-4400-4bcf-8e6e-09f954699940",
- "config_id": "d1d31429-d888-4f1c-b9c1-4e842f9bce5b"
}
]
}
], - "target": "server",
- "model_type": "Gaussian",
- "model_type_id": "c9269a3e-aede-466e-944a-7f0ec3594468",
- "training_parameters": {
- "parameter": "value"
}, - "meta": {
- "name": "value"
}, - "name": "Example Name",
- "nice_name": "Example Nice Name",
- "description": "Example Description",
- "version": 1,
- "enabled": true,
- "visible": true
}, - "model_training_run": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "created_at": 1630942200,
- "device": {
- "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "device_id": "stm32:31003b4d34501320303041",
- "api_key": "",
- "sensor_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "serial": "203",
- "revision": "1.2",
- "type_id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "type": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "brand": "Soundsensing",
- "model": "dB20",
- "registered_at": "163161+643.174402",
- "registered_by": "eca213d2-6119-4135-97a9-9b4fce4043de"
}, - "organization_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0c",
- "nickname": "Soundsensing Office",
- "description": "A description of this device",
- "registered_at": "1600000.00",
- "registered_by": "040517af-71c5-4fa3-a1d1-ec5a9112ce0b",
- "configs": [
- {
- "device_id": "3bafab7b-4400-4bcf-8e6e-09f954699940",
- "config_id": "d1d31429-d888-4f1c-b9c1-4e842f9bce5b"
}
]
}, - "device_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "data_period": "[\"1970-01-19 13:22:30+01\",\"1970-01-19 13:27:30+01\")",
- "model_template": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "created_at": "1609462800",
- "start_time": "1609462800",
- "end_time": "1609462800",
- "devices": [
- {
- "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "device_id": "stm32:31003b4d34501320303041",
- "api_key": "",
- "sensor_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "serial": "203",
- "revision": "1.2",
- "type_id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "type": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "brand": "Soundsensing",
- "model": "dB20",
- "registered_at": "163161+643.174402",
- "registered_by": "eca213d2-6119-4135-97a9-9b4fce4043de"
}, - "organization_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0c",
- "nickname": "Soundsensing Office",
- "description": "A description of this device",
- "registered_at": "1600000.00",
- "registered_by": "040517af-71c5-4fa3-a1d1-ec5a9112ce0b",
- "configs": [
- {
- "device_id": "3bafab7b-4400-4bcf-8e6e-09f954699940",
- "config_id": "d1d31429-d888-4f1c-b9c1-4e842f9bce5b"
}
]
}
], - "target": "server",
- "model_type": "Gaussian",
- "model_type_id": "c9269a3e-aede-466e-944a-7f0ec3594468",
- "training_parameters": {
- "parameter": "value"
}, - "meta": {
- "name": "value"
}, - "name": "Example Name",
- "nice_name": "Example Nice Name",
- "description": "Example Description",
- "version": 1,
- "enabled": true,
- "visible": true
}, - "model_template_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "saved_model": { },
- "evaluation_metrics": { },
- "meta": { }
}, - "saved_model": { },
- "evaluation_metrics": { },
- "meta": { },
- "created_at": 1630942200
}
}| id required | string <uuid> Unique identifier for this sensor |
| description | string Description for this sensor |
{- "id": "5dfacc46-006a-4e0c-aeac-ccc172a9a7db",
- "description": "Sensor1"
}| id | string <uuid> Unique identifier for this User |
| email required | string Email associated with this User |
| name required | string Full name of user (first and last names) |
{- "id": "7813b3d6-cbe5-4f1f-a5f8-9da009f7eb23",
- "email": "user@example.net",
- "name": "John Doe"
}| category | string Category of the preference |
| preference | string The preference for this category |
{- "category": "general",
- "preference": "language"
}| id required | string <uuid> Unique identifier for this AudioClip |
| filename required | string Original filename of the AudioClip |
| bucket required | string Storage bucket the file is in |
| download_url required | string <url> An URL where the file can be downloaded |
| hash | string or null Audio Clip file hash |
Array of objects | |
| upload_time | number The time of upload |
| length | number or null The length of the file |
Array of objects | |
| uploader_id | string or null <uuid> Id of the uploader |
| start_time | number Timestamp for the start time of the audio_clip |
| device_id | string <uuid> Id of the device that posted the audio clip |
| blob_filename | string Filename of the actual blob in the bucket |
object or null Additional metadata about this clip |
{- "id": "8201058b-46dd-4407-b486-5928e1a85fa8",
- "filename": "5928e1a85fa8.wav",
- "bucket": "gs://somecompany/abucket",
- "hash": "a18410d899a8873575434d60aba867ff",
- "classification_result": [
- {
- "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "device_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0b",
- "model_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0c",
- "audio_clip_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0d",
- "spectrogram_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0d",
- "sensor_id": "5dfacc46-006a-4e0c-aeac-ccc172a9a7db",
- "predictions": [
- 0.1,
- 0.9
], - "period": 1000000,
- "created_at": 1630942200,
- "meta": {
- "extra": "data"
}, - "sensor": {
- "id": "5dfacc46-006a-4e0c-aeac-ccc172a9a7db",
- "description": "Sensor1"
}, - "end_time": 112223232,
- "model_instance_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0d",
- "model_instance": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "model_template": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "created_at": "1609462800",
- "start_time": "1609462800",
- "end_time": "1609462800",
- "devices": [
- {
- "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "device_id": "stm32:31003b4d34501320303041",
- "api_key": "",
- "sensor_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "serial": "203",
- "revision": "1.2",
- "type_id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "type": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "brand": "Soundsensing",
- "model": "dB20",
- "registered_at": "163161+643.174402",
- "registered_by": "eca213d2-6119-4135-97a9-9b4fce4043de"
}, - "organization_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0c",
- "nickname": "Soundsensing Office",
- "description": "A description of this device",
- "registered_at": "1600000.00",
- "registered_by": "040517af-71c5-4fa3-a1d1-ec5a9112ce0b",
- "configs": [
- {
- "device_id": "3bafab7b-4400-4bcf-8e6e-09f954699940",
- "config_id": "d1d31429-d888-4f1c-b9c1-4e842f9bce5b"
}
]
}
], - "target": "server",
- "model_type": "Gaussian",
- "model_type_id": "c9269a3e-aede-466e-944a-7f0ec3594468",
- "training_parameters": {
- "parameter": "value"
}, - "meta": {
- "name": "value"
}, - "name": "Example Name",
- "nice_name": "Example Nice Name",
- "description": "Example Description",
- "version": 1,
- "enabled": true,
- "visible": true
}, - "model_training_run": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "created_at": 1630942200,
- "device": {
- "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "device_id": "stm32:31003b4d34501320303041",
- "api_key": "",
- "sensor_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "serial": "203",
- "revision": "1.2",
- "type_id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "type": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "brand": "Soundsensing",
- "model": "dB20",
- "registered_at": "163161+643.174402",
- "registered_by": "eca213d2-6119-4135-97a9-9b4fce4043de"
}, - "organization_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0c",
- "nickname": "Soundsensing Office",
- "description": "A description of this device",
- "registered_at": "1600000.00",
- "registered_by": "040517af-71c5-4fa3-a1d1-ec5a9112ce0b",
- "configs": [
- {
- "device_id": "3bafab7b-4400-4bcf-8e6e-09f954699940",
- "config_id": "d1d31429-d888-4f1c-b9c1-4e842f9bce5b"
}
]
}, - "device_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "data_period": "[\"1970-01-19 13:22:30+01\",\"1970-01-19 13:27:30+01\")",
- "model_template": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "created_at": "1609462800",
- "start_time": "1609462800",
- "end_time": "1609462800",
- "devices": [
- {
- "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "device_id": "stm32:31003b4d34501320303041",
- "api_key": "",
- "sensor_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "serial": "203",
- "revision": "1.2",
- "type_id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "type": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "brand": "Soundsensing",
- "model": "dB20",
- "registered_at": "163161+643.174402",
- "registered_by": "eca213d2-6119-4135-97a9-9b4fce4043de"
}, - "organization_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0c",
- "nickname": "Soundsensing Office",
- "description": "A description of this device",
- "registered_at": "1600000.00",
- "registered_by": "040517af-71c5-4fa3-a1d1-ec5a9112ce0b",
- "configs": [
- {
- "device_id": null,
- "config_id": null
}
]
}
], - "target": "server",
- "model_type": "Gaussian",
- "model_type_id": "c9269a3e-aede-466e-944a-7f0ec3594468",
- "training_parameters": {
- "parameter": "value"
}, - "meta": {
- "name": "value"
}, - "name": "Example Name",
- "nice_name": "Example Nice Name",
- "description": "Example Description",
- "version": 1,
- "enabled": true,
- "visible": true
}, - "model_template_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "saved_model": { },
- "evaluation_metrics": { },
- "meta": { }
}, - "saved_model": { },
- "evaluation_metrics": { },
- "meta": { },
- "created_at": 1630942200
}
}
], - "upload_time": 1614151400,
- "length": 3.04,
- "annotations": [
- {
- "id": "966ed422-b9b5-4787-a875-cd2259a9a255",
- "audio_clip_id": "8201058b-46dd-4407-b486-5928e1a85fa8",
- "start_time": 0.75,
- "end_time": 3.85,
- "label": "car_passing",
- "proximity": "far"
}
], - "uploader_id": "dc37a591-c902-4cb4-b71c-e17003001013",
- "start_time": 1615161516,
- "device_id": "dc37a591-c902-4cb4-b71c-e17003001013",
- "blob_filename": "8201058b-46dd-4407-b486-5928e1a85fa8.wav",
- "meta": { }
}| id required | string <uuid> Unique identifier for this object |
| device_id | string <uuid> Identifier for Device this belongs to |
| spectrogram_type_id | string <uuid> Identifier for SpectrogramType this has |
| filename required | string Filename of the AudioClip |
| bucket required | string Storage bucket the file is in |
| start_time | number Time inside AudioClip for annotation start (seconds) |
| end_time | number Time inside AudioClip for annotation end (seconds) |
| created_at required | number Timestamp for creation |
| period | number or null Period of the spectrogram |
{- "id": "c55b2fda-74bc-4ce9-81e6-d666e016f478",
- "device_id": "9cb799ac-3513-46b3-ba22-cf260bd82f1a",
- "spectrogram_type_id": "1e884c97-e147-47e6-a27a-7aeba75f4258",
- "filename": "5928e1a85fa8.wav",
- "bucket": "gs://foo/abucket",
- "start_time": 0.75,
- "end_time": 20,
- "created_at": 1600000.123,
- "period": 60
}| id required | string <uuid> Unique identifier for this DeviceCheckin entry |
| device_id | string <uuid> Identifier for the Device this belongs to |
| checkin_time | number The time the device checking was registered |
| uptime | number Number of seconds since the device booted |
| firmware | string Firmware version the device reported |
| device_time | number The RTC time the device reported |
| os_version | string Version of the local os running on the device |
| modem_version | string Version of the firmware version running on the device modem, if applicable |
{- "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "device_id": "5dfacc46-006a-4e0c-aeac-ccc172a9a7db",
- "checkin_time": 0,
- "uptime": 123,
- "firmware": "1.2.3-99-afbcd",
- "device_time": 0,
- "os_version": "7.9.2",
- "modem_version": "01.01.009"
}| id | string <uuid> Device model config id |
| creator_id | string Creator of the device model config |
| created_at | number <timestamp> Creation time of the device model config |
| device_ids | Array of strings or null <uuid> Device ids |
| model_type_id required | string <uuid> Model type id |
| description | string or null Description of the device model config |
| training_parameters | object or null Training parameters |
| start_time required | number <timestamp> Start time of the device model config |
| end_time | number or null <timestamp> End time of the device model config |
| updated_at | number or null <timestamp> The point in time this was last updated |
| meta | object or null Meta, place for meta info and additional settings that does not belong in training parameters |
{- "id": "device_model_config_id",
- "creator_id": "user",
- "created_at": 1520000000,
- "device_ids": [
- "device_id1",
- "device_id2"
], - "model_type_id": "model_type_id",
- "description": "Description of the device model config",
- "training_parameters": {
- "parameter1": "value1",
- "parameter2": "value2"
}, - "start_time": 1520000000,
- "end_time": 1520000000,
- "updated_at": 1520000000,
- "meta": {
- "parameter1": "value1",
- "parameter2": "value2"
}
}| id | string <uuid> Internal identifier for this Device |
| device_id | string or null External identifier for this Device. |
| api_key | string API token used to authenticate the device with the API. Can only be set at registration time. |
| sensor_id | string or null <uuid> Sensor id for this device |
| serial required | string Serial number of the device. Typically assigned at production time and printed on device. |
| revision | string or null Hardware revision of the device. Typically indicates minor changes that don't impact use and does not warrant a new DeviceType |
| type_id | string or null ID of the DeviceType for this device |
object or (any or null) | |
| organization_id | string or null <uuid> Uuid of organization that owns this device |
| nickname | string or null User modifiable nickname. For the user to recognize their devices more easily. |
| description | string or null A description of this device, for displaying what this device is used for. |
| registered_at | number Timestamp for time of registration for this device |
| registered_by | string or null <uuid> Uuid of user that registered this device |
Array of objects or null Model specific configuration options |
{- "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "device_id": "stm32:31003b4d34501320303041",
- "api_key": "",
- "sensor_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "serial": "203",
- "revision": "1.2",
- "type_id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "type": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "brand": "Soundsensing",
- "model": "dB20",
- "registered_at": "163161+643.174402",
- "registered_by": "eca213d2-6119-4135-97a9-9b4fce4043de"
}, - "organization_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0c",
- "nickname": "Soundsensing Office",
- "description": "A description of this device",
- "registered_at": "1600000.00",
- "registered_by": "040517af-71c5-4fa3-a1d1-ec5a9112ce0b",
- "configs": [
- {
- "device_id": "3bafab7b-4400-4bcf-8e6e-09f954699940",
- "config_id": "d1d31429-d888-4f1c-b9c1-4e842f9bce5b"
}
]
}| id required | string <uuid> Unique identifier for this DeviceType |
| brand required | string The brand/manufacturer/vendor name |
| model required | string The model name |
| registered_at | number Timestamp of when the type was registered |
| registered_by | string or null <uuid> Id of user that registered device type |
{- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "brand": "Soundsensing",
- "model": "dB20",
- "registered_at": "163161+643.174402",
- "registered_by": "eca213d2-6119-4135-97a9-9b4fce4043de"
}| start_time required | number Timestamp for the start time of the media |
| device_id | string <uuid> ID of the device that created or uploaded the media |
| duration | number or null The duration of the media in seconds |
| filename required | string Original filename of the DeviceMedia |
| bucket required | string Storage bucket the file is in |
| blob_filename | string Filename of the actual DeviceMedia blob-stored file |
| upload_complete | boolean Indicates whether the actual media has been uploaded to remote blob storage |
{- "start_time": 1615161516,
- "device_id": "dc37a591-c902-4cb4-b71c-e17003001013",
- "duration": 3.04,
- "filename": "man_running.mkv",
- "bucket": "gs://somecompany/abucket",
- "blob_filename": "8201058b-46dd-4407-b486-5928e1a85fa8.wav",
- "upload_complete": false
}| id | string <uuid> Unique identifier for the metrics |
| device_id | string <uuid> Unique identifier for the device the metrics belong to |
| time | string or null Timerange for metrics |
object Extra data containing custom key/value pairs | |
| created_at | number Time of creation |
| start_time | number Start time of metrics |
| end_time | number End time of metrics |
| period | number Difference between start and end time |
{- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "device_id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "time": "[\"1970-01-19 13:22:30+01\",\"1970-01-19 13:27:30+01\")",
- "data": { },
- "created_at": 0,
- "start_time": "1599750",
- "end_time": "1600050",
- "period": "60"
}| id required | string <uuid> Unique identifier for the DeviceLocation |
| device_id required | string <uuid> Unique identifier for the device the Location info belongs to |
| time required | string Timerange for the Location info |
| location_id | string ID of the Location for this DeviceLocation |
required | object Location data |
{- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "device_id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "time": "[\"1970-01-19 13:22:30+01\",\"1970-01-19 13:27:30+01\")",
- "location_id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "location": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "latitude": 59.913868,
- "longitude": 10.752245,
- "install_height": 2.5,
- "floor_height": 4,
- "roll": 23.2,
- "pitch": 23.2,
- "yaw": 23.2,
- "address": "Gaustadalleen 21, 0349, Oslo",
- "site": "Forskningsparken",
- "building": "Building 3",
- "floor": "B2",
- "room": "201",
- "room_position": "On wall next to pump 2A"
}
}| id | string <uuid> |
| device_id required | string <uuid> |
| room_id required | string <uuid> |
| room_position_id required | string or null <uuid> |
object or null | |
| start_time | number <timestamp> Timestamp for the start_time |
| end_time | number or null <timestamp> Timestamp for the end_time |
Array of objects or null | |
| meta | object or null |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "device_id": "3bafab7b-4400-4bcf-8e6e-09f954699940",
- "room_id": "05451321-18e1-4bfa-aa22-dfd0080cc120",
- "room_position_id": "71000099-4fca-4140-bfcb-f06f733cf608",
- "room_position": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "room_id": "05451321-18e1-4bfa-aa22-dfd0080cc120",
- "install_height": 0,
- "floor_height": 0,
- "roll": 0,
- "pitch": 0,
- "yaw": 0,
- "description": "string"
}, - "start_time": 1629291281,
- "end_time": 1629291281,
- "assets": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "registered_by": "0f8e5222-a38e-4555-9170-437c5d11d7ec",
- "room_id": "05451321-18e1-4bfa-aa22-dfd0080cc120",
- "created_at": 0,
- "model": "string",
- "nice_name": "string",
- "room_position_id": "71000099-4fca-4140-bfcb-f06f733cf608",
- "parent_id": "1c6ca187-e61f-4301-8dcb-0e9749e89eef",
- "asset_category_id": "ed5f6da2-e989-4290-b244-87ae06007e71"
}
], - "meta": "{'extra': 'data'}"
}| class_name | string Class name |
Array of objects |
[- {
- "class_name": "Human Voice",
- "data": [
- {
- "time": 1629291282,
- "prediction": 0.83729
}
]
}
]| deviceList required | Array of strings[ items <uuid > ] Unique identifiers for devices |
| dateFrom required | string From-date for the date-range |
| dateTo required | string To-date for the date-range |
| workdayStart | string Start of a workday, defaults to 08:00 |
| workdayEnd | string End of a workday, defaults to 16:00 |
| template-id | string <uuid> Unique identifier for template |
{- "deviceList": "[\"040517af-71c5-4fa3-a1d1-ec5a9112ce0a\", \"3e8d2f55-6828-451e-aa8c-9674faa54b19\"]",
- "dateFrom": "YYYY-MM-DDTHH:MM",
- "dateTo": "YYYY-MM-DDTHH:MM",
- "workdayStart": "HH:MM",
- "workdayEnd": "HH:MM",
- "template-id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a"
}| device_id | string <uuid> Unique identifier for the device posting this vibration data |
| rms_x | number or null RMS X |
| rms_y | number or null RMS Y |
| rms_z | number or null RMS Z |
| p2p_x | number or null P2P X |
| p2p_y | number or null P2P Y |
| p2p_z | number or null P2P Z |
| period | number Time-span this vibration measurement covers. Number of seconds prior to @end_time. |
| created_at | number Time of creation for this entry |
| end_time | number Time this measurement ended. |
| start_time | number Time this measurement started. |
{- "device_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "rms_x": 0.003,
- "rms_y": 0.003,
- "rms_z": 0.003,
- "p2p_x": 0.003,
- "p2p_y": 0.003,
- "p2p_z": 0.003,
- "period": 60,
- "created_at": 60000000,
- "end_time": 60000000,
- "start_time": 60000000
}| url | string <uri> Url for your webhook endpoint. Url must start with https:// |
| name | string A name you want to give your webhook for easier managing |
| description | string Any description you would like to give your webhook |
| organization_id | string <uuid> The id of a organization you belong to |
| active | boolean Wether your webhook is active or not |
object | |
| id | string <uuid> |
| registered_at | number Timestamp for the creation of this webhook |
| registered_by | string <uuid> Uuid of the user that registered this webhook |
Array of objects Unique identifiers for devices | |
Array of objects[ items ] The events you would like the webhook to subscribe to. List of possible events can be found at /webhookevents | |
object More information on the creator of the webhook |
{- "name": "Your Webhook Name",
- "description": "This is a description of details pertaining to your webhook",
- "organization_id": "3cf4b5b4-a8d4-49d3-bbb5-6aedb5ace61c",
- "active": true,
- "auth": {
- "header_key": "Authorization"
}, - "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "registered_at": 1627902751.599545,
- "registered_by": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "devices": [
- {
- "nickname": "Device Nickname",
- "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a"
}
], - "event_subscriptions": [
- [
- {
- "event_type": "spectrogram",
- "id": "47915021-5162-4bb9-bdfa-4213be93a10e",
- "webhook_id": "57915021-5162-4bb9-bdfa-4413be93a90d"
}
]
], - "creator": {
- "email": "user@example.com",
- "id": "6241d28d-a9ec-4724-b272-3573d75ebbf1",
- "name": "User Userson"
}
}| url required | string <uri> Url for your webhook endpoint. Url must start with https:// |
| name | string A name you want to give your webhook for easier managing |
| description | string Any description you would like to give your webhook |
| organization_id required | string <uuid> The id of a organization you belong to |
| active | boolean Wether your webhook is active or not |
required | object |
| devices | Array of strings[ items <uuid > ] Unique identifiers for devices |
| event_subscriptions required | Array of strings[ items <Capital letters, valid event types > ] The events you would like the webhook to subscribe to. List of possible events can be found at /webhookevents |
{- "name": "Your Webhook Name",
- "description": "This is a description of details pertaining to your webhook",
- "organization_id": "3cf4b5b4-a8d4-49d3-bbb5-6aedb5ace61c",
- "active": true,
- "auth": {
- "header_key": "Authorization",
- "header_value": "Bearer MY-APPLICATION-TOKEN"
}, - "devices": [
- "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "3e8d2f55-6828-451e-aa8c-9674faa54b19"
], - "event_subscriptions": [
- "device",
- "spectrogram"
]
}"device"List of the possible types that can be returned from the webhook
"device.added"| event_type required | string Value: "device.added" |
required | Array of objects |
| event_id required | string <uuid> |
{- "event_type": "alarm.added",
- "data": [
- {
- "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "device_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "model_instance_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "created_at": 1500000000,
- "creator_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "timestamp": 1500000000,
- "resolved": true,
- "resolution_description": "The alarm was resolved by the user",
- "resolution_time": 1500000000,
- "description": "The machine is not running",
- "alarm_type": "B",
- "customer_visible": true
}
], - "event_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a"
}| id | string <uuid> Unique identifier for the ModelTemplate |
| created_at | number |
| start_time | number or null |
| end_time | number or null |
Array of objects or objects or strings | |
| target | string Value: "server" |
| model_type | string |
| model_type_id | string or null <uuid> |
| training_parameters | object or null |
| meta | object or null |
| name | string |
| nice_name | string or null |
| description | string or null |
| version | integer |
| enabled | boolean |
| visible | boolean |
{- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "created_at": "1609462800",
- "start_time": "1609462800",
- "end_time": "1609462800",
- "devices": [
- {
- "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "device_id": "stm32:31003b4d34501320303041",
- "api_key": "",
- "sensor_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "serial": "203",
- "revision": "1.2",
- "type_id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "type": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "brand": "Soundsensing",
- "model": "dB20",
- "registered_at": "163161+643.174402",
- "registered_by": "eca213d2-6119-4135-97a9-9b4fce4043de"
}, - "organization_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0c",
- "nickname": "Soundsensing Office",
- "description": "A description of this device",
- "registered_at": "1600000.00",
- "registered_by": "040517af-71c5-4fa3-a1d1-ec5a9112ce0b",
- "configs": [
- {
- "device_id": "3bafab7b-4400-4bcf-8e6e-09f954699940",
- "config_id": "d1d31429-d888-4f1c-b9c1-4e842f9bce5b"
}
]
}
], - "target": "server",
- "model_type": "Gaussian",
- "model_type_id": "c9269a3e-aede-466e-944a-7f0ec3594468",
- "training_parameters": {
- "parameter": "value"
}, - "meta": {
- "name": "value"
}, - "name": "Example Name",
- "nice_name": "Example Nice Name",
- "description": "Example Description",
- "version": 1,
- "enabled": true,
- "visible": true
}| id | string <uuid> Unique identifier for the ModelInstance |
required | object Model Template describing a model that can be used by the system |
object or (any or null) | |
| saved_model | object |
| evaluation_metrics | object |
| meta | object |
| created_at | number The creation date of the ModelInstance as a timestamp |
{- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "model_template": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "created_at": "1609462800",
- "start_time": "1609462800",
- "end_time": "1609462800",
- "devices": [
- {
- "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "device_id": "stm32:31003b4d34501320303041",
- "api_key": "",
- "sensor_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "serial": "203",
- "revision": "1.2",
- "type_id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "type": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "brand": "Soundsensing",
- "model": "dB20",
- "registered_at": "163161+643.174402",
- "registered_by": "eca213d2-6119-4135-97a9-9b4fce4043de"
}, - "organization_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0c",
- "nickname": "Soundsensing Office",
- "description": "A description of this device",
- "registered_at": "1600000.00",
- "registered_by": "040517af-71c5-4fa3-a1d1-ec5a9112ce0b",
- "configs": [
- {
- "device_id": "3bafab7b-4400-4bcf-8e6e-09f954699940",
- "config_id": "d1d31429-d888-4f1c-b9c1-4e842f9bce5b"
}
]
}
], - "target": "server",
- "model_type": "Gaussian",
- "model_type_id": "c9269a3e-aede-466e-944a-7f0ec3594468",
- "training_parameters": {
- "parameter": "value"
}, - "meta": {
- "name": "value"
}, - "name": "Example Name",
- "nice_name": "Example Nice Name",
- "description": "Example Description",
- "version": 1,
- "enabled": true,
- "visible": true
}, - "model_training_run": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "created_at": 1630942200,
- "device": {
- "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "device_id": "stm32:31003b4d34501320303041",
- "api_key": "",
- "sensor_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "serial": "203",
- "revision": "1.2",
- "type_id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "type": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "brand": "Soundsensing",
- "model": "dB20",
- "registered_at": "163161+643.174402",
- "registered_by": "eca213d2-6119-4135-97a9-9b4fce4043de"
}, - "organization_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0c",
- "nickname": "Soundsensing Office",
- "description": "A description of this device",
- "registered_at": "1600000.00",
- "registered_by": "040517af-71c5-4fa3-a1d1-ec5a9112ce0b",
- "configs": [
- {
- "device_id": "3bafab7b-4400-4bcf-8e6e-09f954699940",
- "config_id": "d1d31429-d888-4f1c-b9c1-4e842f9bce5b"
}
]
}, - "device_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "data_period": "[\"1970-01-19 13:22:30+01\",\"1970-01-19 13:27:30+01\")",
- "model_template": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "created_at": "1609462800",
- "start_time": "1609462800",
- "end_time": "1609462800",
- "devices": [
- {
- "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "device_id": "stm32:31003b4d34501320303041",
- "api_key": "",
- "sensor_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "serial": "203",
- "revision": "1.2",
- "type_id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "type": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "brand": "Soundsensing",
- "model": "dB20",
- "registered_at": "163161+643.174402",
- "registered_by": "eca213d2-6119-4135-97a9-9b4fce4043de"
}, - "organization_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0c",
- "nickname": "Soundsensing Office",
- "description": "A description of this device",
- "registered_at": "1600000.00",
- "registered_by": "040517af-71c5-4fa3-a1d1-ec5a9112ce0b",
- "configs": [
- {
- "device_id": "3bafab7b-4400-4bcf-8e6e-09f954699940",
- "config_id": "d1d31429-d888-4f1c-b9c1-4e842f9bce5b"
}
]
}
], - "target": "server",
- "model_type": "Gaussian",
- "model_type_id": "c9269a3e-aede-466e-944a-7f0ec3594468",
- "training_parameters": {
- "parameter": "value"
}, - "meta": {
- "name": "value"
}, - "name": "Example Name",
- "nice_name": "Example Nice Name",
- "description": "Example Description",
- "version": 1,
- "enabled": true,
- "visible": true
}, - "model_template_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "saved_model": { },
- "evaluation_metrics": { },
- "meta": { }
}, - "saved_model": { },
- "evaluation_metrics": { },
- "meta": { },
- "created_at": 1630942200
}| id | string <uuid> Unique identifier for the ModelTrainingRun |
| created_at | number The creation date of the ModelTrainingRun as a timestamp |
object | |
| device_id | string <uuid> |
| data_period | string Timerange for the training data |
required | object or (any or null) |
| model_template_id | string <uuid> |
| saved_model | object |
| evaluation_metrics | object |
| meta | object |
{- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "created_at": 1630942200,
- "device": {
- "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "device_id": "stm32:31003b4d34501320303041",
- "api_key": "",
- "sensor_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "serial": "203",
- "revision": "1.2",
- "type_id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "type": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "brand": "Soundsensing",
- "model": "dB20",
- "registered_at": "163161+643.174402",
- "registered_by": "eca213d2-6119-4135-97a9-9b4fce4043de"
}, - "organization_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0c",
- "nickname": "Soundsensing Office",
- "description": "A description of this device",
- "registered_at": "1600000.00",
- "registered_by": "040517af-71c5-4fa3-a1d1-ec5a9112ce0b",
- "configs": [
- {
- "device_id": "3bafab7b-4400-4bcf-8e6e-09f954699940",
- "config_id": "d1d31429-d888-4f1c-b9c1-4e842f9bce5b"
}
]
}, - "device_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "data_period": "[\"1970-01-19 13:22:30+01\",\"1970-01-19 13:27:30+01\")",
- "model_template": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "created_at": "1609462800",
- "start_time": "1609462800",
- "end_time": "1609462800",
- "devices": [
- {
- "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "device_id": "stm32:31003b4d34501320303041",
- "api_key": "",
- "sensor_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "serial": "203",
- "revision": "1.2",
- "type_id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "type": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "brand": "Soundsensing",
- "model": "dB20",
- "registered_at": "163161+643.174402",
- "registered_by": "eca213d2-6119-4135-97a9-9b4fce4043de"
}, - "organization_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0c",
- "nickname": "Soundsensing Office",
- "description": "A description of this device",
- "registered_at": "1600000.00",
- "registered_by": "040517af-71c5-4fa3-a1d1-ec5a9112ce0b",
- "configs": [
- {
- "device_id": "3bafab7b-4400-4bcf-8e6e-09f954699940",
- "config_id": "d1d31429-d888-4f1c-b9c1-4e842f9bce5b"
}
]
}
], - "target": "server",
- "model_type": "Gaussian",
- "model_type_id": "c9269a3e-aede-466e-944a-7f0ec3594468",
- "training_parameters": {
- "parameter": "value"
}, - "meta": {
- "name": "value"
}, - "name": "Example Name",
- "nice_name": "Example Nice Name",
- "description": "Example Description",
- "version": 1,
- "enabled": true,
- "visible": true
}, - "model_template_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "saved_model": { },
- "evaluation_metrics": { },
- "meta": { }
}| id | string <uuid> Model type id |
| name | string Model type name |
| description | string or null Model type description |
{- "id": "model_type_id",
- "name": "model_type_name",
- "description": "model_type_description"
}| code required | integer HTTP status code |
| description required | string Descriptive message |
| name required | string Common response name |
{- "code": 0,
- "description": "string",
- "name": "string"
}| code | integer |
| description | string |
| name | string |
{- "code": 400,
- "description": "The server could not process the request",
- "name": "Bad Request"
}| code | integer |
| description | string |
| name | string |
{- "code": 403,
- "description": "Wrong Authorization",
- "name": "Forbidden"
}| code | integer |
| description | string |
| name | string |
{- "code": 404,
- "description": "The specified resource was not found",
- "name": "Not Found"
}An event that is sent when a device posts a spectrogram
| event_type required | string Value: "spectrogram.added" |
required | Array of objects |
| event_id required | string <uuid> |
{- "event_type": "spectrogram.added",
- "data": [
- {
- "id": "c55b2fda-74bc-4ce9-81e6-d666e016f478",
- "device_id": "9cb799ac-3513-46b3-ba22-cf260bd82f1a",
- "spectrogram_type_id": "1e884c97-e147-47e6-a27a-7aeba75f4258",
- "filename": "5928e1a85fa8.wav",
- "bucket": "gs://foo/abucket",
- "start_time": 0.75,
- "end_time": 20,
- "created_at": 1600000.123,
- "period": 60
}
], - "event_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a"
}An event that is sent when a device is registered
| event_type required | string Value: "device.added" |
required | Array of objects |
| event_id required | string <uuid> |
{- "event_type": "device.added",
- "data": [
- {
- "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "device_id": "stm32:31003b4d34501320303041",
- "api_key": "",
- "sensor_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "serial": "203",
- "revision": "1.2",
- "type_id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "type": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "brand": "Soundsensing",
- "model": "dB20",
- "registered_at": "163161+643.174402",
- "registered_by": "eca213d2-6119-4135-97a9-9b4fce4043de"
}, - "organization_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0c",
- "nickname": "Soundsensing Office",
- "description": "A description of this device",
- "registered_at": "1600000.00",
- "registered_by": "040517af-71c5-4fa3-a1d1-ec5a9112ce0b",
- "configs": [
- {
- "device_id": "3bafab7b-4400-4bcf-8e6e-09f954699940",
- "config_id": "d1d31429-d888-4f1c-b9c1-4e842f9bce5b"
}
]
}
], - "event_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a"
}An event that is sent when a device sends metrics
| event_type required | string Value: "device_metric.added" |
required | Array of objects |
| event_id required | string <uuid> |
{- "event_type": "device_metric.added",
- "data": [
- {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "device_id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "time": "[\"1970-01-19 13:22:30+01\",\"1970-01-19 13:27:30+01\")",
- "data": { },
- "created_at": 0,
- "start_time": "1599750",
- "end_time": "1600050",
- "period": "60"
}
], - "event_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a"
}An event that is sent when a spectrogram or audioclip from a device is classified
| event_type required | string Value: "classification.added" |
required | Array of objects |
| event_id required | string <uuid> |
{- "event_type": "classification.added",
- "data": [
- {
- "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "device_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0b",
- "model_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0c",
- "audio_clip_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0d",
- "spectrogram_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0d",
- "sensor_id": "5dfacc46-006a-4e0c-aeac-ccc172a9a7db",
- "predictions": [
- 0.1,
- 0.9
], - "period": 1000000,
- "created_at": 1630942200,
- "meta": {
- "extra": "data"
}, - "sensor": {
- "id": "5dfacc46-006a-4e0c-aeac-ccc172a9a7db",
- "description": "Sensor1"
}, - "end_time": 112223232,
- "model_instance_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0d",
- "model_instance": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "model_template": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "created_at": "1609462800",
- "start_time": "1609462800",
- "end_time": "1609462800",
- "devices": [
- {
- "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "device_id": "stm32:31003b4d34501320303041",
- "api_key": "",
- "sensor_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "serial": "203",
- "revision": "1.2",
- "type_id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "type": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "brand": "Soundsensing",
- "model": "dB20",
- "registered_at": "163161+643.174402",
- "registered_by": "eca213d2-6119-4135-97a9-9b4fce4043de"
}, - "organization_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0c",
- "nickname": "Soundsensing Office",
- "description": "A description of this device",
- "registered_at": "1600000.00",
- "registered_by": "040517af-71c5-4fa3-a1d1-ec5a9112ce0b",
- "configs": [
- {
- "device_id": "3bafab7b-4400-4bcf-8e6e-09f954699940",
- "config_id": "d1d31429-d888-4f1c-b9c1-4e842f9bce5b"
}
]
}
], - "target": "server",
- "model_type": "Gaussian",
- "model_type_id": "c9269a3e-aede-466e-944a-7f0ec3594468",
- "training_parameters": {
- "parameter": "value"
}, - "meta": {
- "name": "value"
}, - "name": "Example Name",
- "nice_name": "Example Nice Name",
- "description": "Example Description",
- "version": 1,
- "enabled": true,
- "visible": true
}, - "model_training_run": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "created_at": 1630942200,
- "device": {
- "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "device_id": "stm32:31003b4d34501320303041",
- "api_key": "",
- "sensor_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "serial": "203",
- "revision": "1.2",
- "type_id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "type": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "brand": "Soundsensing",
- "model": "dB20",
- "registered_at": "163161+643.174402",
- "registered_by": "eca213d2-6119-4135-97a9-9b4fce4043de"
}, - "organization_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0c",
- "nickname": "Soundsensing Office",
- "description": "A description of this device",
- "registered_at": "1600000.00",
- "registered_by": "040517af-71c5-4fa3-a1d1-ec5a9112ce0b",
- "configs": [
- {
- "device_id": "3bafab7b-4400-4bcf-8e6e-09f954699940",
- "config_id": "d1d31429-d888-4f1c-b9c1-4e842f9bce5b"
}
]
}, - "device_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "data_period": "[\"1970-01-19 13:22:30+01\",\"1970-01-19 13:27:30+01\")",
- "model_template": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "created_at": "1609462800",
- "start_time": "1609462800",
- "end_time": "1609462800",
- "devices": [
- {
- "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "device_id": "stm32:31003b4d34501320303041",
- "api_key": "",
- "sensor_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "serial": "203",
- "revision": "1.2",
- "type_id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "type": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "brand": "Soundsensing",
- "model": "dB20",
- "registered_at": "163161+643.174402",
- "registered_by": "eca213d2-6119-4135-97a9-9b4fce4043de"
}, - "organization_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0c",
- "nickname": "Soundsensing Office",
- "description": "A description of this device",
- "registered_at": "1600000.00",
- "registered_by": "040517af-71c5-4fa3-a1d1-ec5a9112ce0b",
- "configs": [
- {
- "device_id": null,
- "config_id": null
}
]
}
], - "target": "server",
- "model_type": "Gaussian",
- "model_type_id": "c9269a3e-aede-466e-944a-7f0ec3594468",
- "training_parameters": {
- "parameter": "value"
}, - "meta": {
- "name": "value"
}, - "name": "Example Name",
- "nice_name": "Example Nice Name",
- "description": "Example Description",
- "version": 1,
- "enabled": true,
- "visible": true
}, - "model_template_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "saved_model": { },
- "evaluation_metrics": { },
- "meta": { }
}, - "saved_model": { },
- "evaluation_metrics": { },
- "meta": { },
- "created_at": 1630942200
}
}
], - "event_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a"
}An event that is sent when a device sends metrics
| event_type required | string Value: "soundlevel.added" |
required | Array of objects |
| event_id required | string <uuid> |
{- "event_type": "soundlevel.added",
- "data": [
- {
- "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "device_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "leq": 62.2,
- "lafmax": 62.2,
- "lafmin": 62.2,
- "period": 60000000,
- "created_at": 60000000,
- "end_time": 60000000
}
], - "event_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a"
}An event that is sent when a device posts an audio clip
| event_type required | string Value: "audio_clip.added" |
required | Array of objects |
| event_id required | string <uuid> |
{- "event_type": "audio_clip.added",
- "data": [
- {
- "id": "8201058b-46dd-4407-b486-5928e1a85fa8",
- "filename": "5928e1a85fa8.wav",
- "bucket": "gs://somecompany/abucket",
- "hash": "a18410d899a8873575434d60aba867ff",
- "classification_result": [
- {
- "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "device_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0b",
- "model_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0c",
- "audio_clip_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0d",
- "spectrogram_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0d",
- "sensor_id": "5dfacc46-006a-4e0c-aeac-ccc172a9a7db",
- "predictions": [
- 0.1,
- 0.9
], - "period": 1000000,
- "created_at": 1630942200,
- "meta": {
- "extra": "data"
}, - "sensor": {
- "id": "5dfacc46-006a-4e0c-aeac-ccc172a9a7db",
- "description": "Sensor1"
}, - "end_time": 112223232,
- "model_instance_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0d",
- "model_instance": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "model_template": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "created_at": "1609462800",
- "start_time": "1609462800",
- "end_time": "1609462800",
- "devices": [
- {
- "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "device_id": "stm32:31003b4d34501320303041",
- "api_key": "",
- "sensor_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "serial": "203",
- "revision": "1.2",
- "type_id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "type": {
- "id": null,
- "brand": null,
- "model": null,
- "registered_at": null,
- "registered_by": null
}, - "organization_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0c",
- "nickname": "Soundsensing Office",
- "description": "A description of this device",
- "registered_at": "1600000.00",
- "registered_by": "040517af-71c5-4fa3-a1d1-ec5a9112ce0b",
- "configs": [
- { }
]
}
], - "target": "server",
- "model_type": "Gaussian",
- "model_type_id": "c9269a3e-aede-466e-944a-7f0ec3594468",
- "training_parameters": {
- "parameter": "value"
}, - "meta": {
- "name": "value"
}, - "name": "Example Name",
- "nice_name": "Example Nice Name",
- "description": "Example Description",
- "version": 1,
- "enabled": true,
- "visible": true
}, - "model_training_run": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "created_at": 1630942200,
- "device": {
- "id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "device_id": "stm32:31003b4d34501320303041",
- "api_key": "",
- "sensor_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "serial": "203",
- "revision": "1.2",
- "type_id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "type": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "brand": "Soundsensing",
- "model": "dB20",
- "registered_at": "163161+643.174402",
- "registered_by": "eca213d2-6119-4135-97a9-9b4fce4043de"
}, - "organization_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0c",
- "nickname": "Soundsensing Office",
- "description": "A description of this device",
- "registered_at": "1600000.00",
- "registered_by": "040517af-71c5-4fa3-a1d1-ec5a9112ce0b",
- "configs": [
- {
- "device_id": null,
- "config_id": null
}
]
}, - "device_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "data_period": "[\"1970-01-19 13:22:30+01\",\"1970-01-19 13:27:30+01\")",
- "model_template": {
- "id": "eca213d2-6119-4135-97a9-9b4fce4043dd",
- "created_at": "1609462800",
- "start_time": "1609462800",
- "end_time": "1609462800",
- "devices": [
- {
- "id": null,
- "device_id": null,
- "api_key": null,
- "sensor_id": null,
- "serial": null,
- "revision": null,
- "type_id": null,
- "type": null,
- "organization_id": null,
- "nickname": null,
- "description": null,
- "registered_at": null,
- "registered_by": null,
- "configs": [ ]
}
], - "target": "server",
- "model_type": "Gaussian",
- "model_type_id": "c9269a3e-aede-466e-944a-7f0ec3594468",
- "training_parameters": {
- "parameter": "value"
}, - "meta": {
- "name": "value"
}, - "name": "Example Name",
- "nice_name": "Example Nice Name",
- "description": "Example Description",
- "version": 1,
- "enabled": true,
- "visible": true
}, - "model_template_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a",
- "saved_model": { },
- "evaluation_metrics": { },
- "meta": { }
}, - "saved_model": { },
- "evaluation_metrics": { },
- "meta": { },
- "created_at": 1630942200
}
}
], - "upload_time": 1614151400,
- "length": 3.04,
- "annotations": [
- {
- "id": "966ed422-b9b5-4787-a875-cd2259a9a255",
- "audio_clip_id": "8201058b-46dd-4407-b486-5928e1a85fa8",
- "start_time": 0.75,
- "end_time": 3.85,
- "label": "car_passing",
- "proximity": "far"
}
], - "uploader_id": "dc37a591-c902-4cb4-b71c-e17003001013",
- "start_time": 1615161516,
- "device_id": "dc37a591-c902-4cb4-b71c-e17003001013",
- "blob_filename": "8201058b-46dd-4407-b486-5928e1a85fa8.wav",
- "meta": null
}
], - "event_id": "040517af-71c5-4fa3-a1d1-ec5a9112ce0a"
}