Development never stops
Yesterday a new release of the website/backend has been released and it adds the following improvements:
Package/Asset API speedup
The API calls for listing packages and listing assets have been improved and they should now be twice as fast. This might make a difference if you have a large number of assets or packages in your account. The package improvement reduced some load to the database by intelligent caching of often accessed package information like package information and their node configuration options. You can see the difference to the database load in the graph from the monitoring system:
API call list filters
Previously only the device check API call supported filters. Now this has been extended to other API calls. This feature is still undocumented at the moment. Until that’s done, here’s a small preview of what’s possible now (all query strings unquoted to make them more readable. Use a library to construct them in a real world use case!):
-
Filtering device list by device location:
https://info-beamer.com/api/v1/device/list?filter:location=HQ/*
This would return a list of only those devices with a location starting with
HQ/
-
Filtering by other properties:
https://info-beamer.com/api/v1/device/list?filter:feature=hevc
Only return devices that can play HEVC (H265) videos.
-
Filter by nested information:
https://info-beamer.com/api/v1/device/list?filter:setup.id=1234
Only return devices that have the setup
1234
assigned. -
Filter by userdata:
https://info-beamer.com/api/v1/device/list?filter:userdata.dummy=true
Only return devices with a userdata value that includes the boolean value
dummy
set totrue
.
Right now the device list, setup list and asset list calls have support for filtering. Note that not all properties can be filtered. Official documentation will follow. Feedback welcome.