To analyze all of the devices? 03.08.2016 10:26 PM
Do you provide any APIs to achieve to analyze all of the devices? For example, the following requirements 1. How many devices input data today? 2. which device is the highest temperature in all devices. Thanks.
Re: To analyze all of the devices? 03.09.2016 12:26 PM
> Do you provide any APIs to achieve to analyze all of the devices?
The M2X Search Devices endpoint provides the ability to perform complex search queries against all devices on your account.
> For example, the following requirements > 1. How many devices input data today?
For this case, you could perform a query against the Search Devices endpoint using the `modified_since`parameter. Note that this would include any devices that pushed any data along with any devices whose metadata was updated since the given timestamp.
> 2. which device is the highest temperature in all devices.
The `streams` parameter of the Search Devices endpoint does not support this use case at the moment. With the `streams` parameter you can find all devices which have streams with a current value that matches some condition (ie. `temperature greater than 20`).
Could you provide some more details as to what drives this case?
> How long does M2X keep customer's data in database?
At the moment, M2X stores high-resolution data which never expires.
Please confirm that you want to flag this content as inappropriate.
Please confirm that you want to delete this content.