@@ -14,6 +14,7 @@ All URIs are relative to *https://api.lab5e.com*
1414| [ ** listDownstreamMessages** ] ( DevicesApi.md#listDownstreamMessages ) | ** GET** /span/collections/{collectionId}/devices/{deviceId}/outbox | List the messages in the outbox |
1515| [ ** listUpstreamMessages** ] ( DevicesApi.md#listUpstreamMessages ) | ** GET** /span/collections/{collectionId}/devices/{deviceId}/inbox | List incoming messages |
1616| [ ** retrieveDevice** ] ( DevicesApi.md#retrieveDevice ) | ** GET** /span/collections/{collectionId}/devices/{deviceId} | Retrieve device |
17+ | [ ** retrieveDeviceStats** ] ( DevicesApi.md#retrieveDeviceStats ) | ** GET** /span/collections/{collectionId}/devices/{deviceId}/stats | Retrieve device statistics |
1718| [ ** updateDevice** ] ( DevicesApi.md#updateDevice ) | ** PATCH** /span/collections/{existingCollectionId}/devices/{deviceId} | Update device |
1819
1920
@@ -766,7 +767,7 @@ public class Example {
766767
767768 DevicesApi apiInstance = new DevicesApi (defaultClient);
768769 String collectionId = " collectionId_example" ; // String | This is the containing collection
769- String deviceId = " deviceId_example" ; // String | The device ID is assigned by the backend.
770+ String deviceId = " deviceId_example" ; // String | The device identifier
770771 try {
771772 Device result = apiInstance. retrieveDevice(collectionId, deviceId);
772773 System . out. println(result);
@@ -786,7 +787,7 @@ public class Example {
786787| Name | Type | Description | Notes |
787788| ------------- | ------------- | ------------- | -------------|
788789| ** collectionId** | ** String** | This is the containing collection | |
789- | ** deviceId** | ** String** | The device ID is assigned by the backend. | |
790+ | ** deviceId** | ** String** | The device identifier | |
790791
791792### Return type
792793
@@ -813,6 +814,82 @@ public class Example {
813814| ** 500** | I' ; m sorry. We are broken | - |
814815| ** 0** | An unexpected error response. | - |
815816
817+ <a name =" retrieveDeviceStats " ></a >
818+ # ** retrieveDeviceStats**
819+ > DeviceStats retrieveDeviceStats(collectionId, deviceId)
820+
821+ Retrieve device statistics
822+
823+ ### Example
824+ ``` java
825+ // Import classes:
826+ import com.lab5e.ApiClient ;
827+ import com.lab5e.ApiException ;
828+ import com.lab5e.Configuration ;
829+ import com.lab5e.auth.* ;
830+ import com.lab5e.models.* ;
831+ import com.lab5e.span.DevicesApi ;
832+
833+ public class Example {
834+ public static void main (String [] args ) {
835+ ApiClient defaultClient = Configuration . getDefaultApiClient();
836+ defaultClient. setBasePath(" https://api.lab5e.com" );
837+
838+ // Configure API key authorization: APIToken
839+ ApiKeyAuth APIToken = (ApiKeyAuth ) defaultClient. getAuthentication(" APIToken" );
840+ APIToken . setApiKey(" YOUR API KEY" );
841+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
842+ // APIToken.setApiKeyPrefix("Token");
843+
844+ DevicesApi apiInstance = new DevicesApi (defaultClient);
845+ String collectionId = " collectionId_example" ; // String | This is the containing collection
846+ String deviceId = " deviceId_example" ; // String | The device identifier
847+ try {
848+ DeviceStats result = apiInstance. retrieveDeviceStats(collectionId, deviceId);
849+ System . out. println(result);
850+ } catch (ApiException e) {
851+ System . err. println(" Exception when calling DevicesApi#retrieveDeviceStats" );
852+ System . err. println(" Status code: " + e. getCode());
853+ System . err. println(" Reason: " + e. getResponseBody());
854+ System . err. println(" Response headers: " + e. getResponseHeaders());
855+ e. printStackTrace();
856+ }
857+ }
858+ }
859+ ```
860+
861+ ### Parameters
862+
863+ | Name | Type | Description | Notes |
864+ | ------------- | ------------- | ------------- | -------------|
865+ | ** collectionId** | ** String** | This is the containing collection | |
866+ | ** deviceId** | ** String** | The device identifier | |
867+
868+ ### Return type
869+
870+ [ ** DeviceStats** ] ( DeviceStats.md )
871+
872+ ### Authorization
873+
874+ [ APIToken] ( ../README.md#APIToken )
875+
876+ ### HTTP request headers
877+
878+ - ** Content-Type** : Not defined
879+ - ** Accept** : application/json
880+
881+ ### HTTP response details
882+ | Status code | Description | Response headers |
883+ | -------------| -------------| ------------------|
884+ | ** 200** | A successful response. | - |
885+ | ** 201** | It' ; s created. | - |
886+ | ** 400** | The request has an error. | - |
887+ | ** 401** | You can' ; t touch this | - |
888+ | ** 404** | Couldn' ; t find the resource. | - |
889+ | ** 409** | There' ; s a resource conflict here. | - |
890+ | ** 500** | I' ; m sorry. We are broken | - |
891+ | ** 0** | An unexpected error response. | - |
892+
816893<a name =" updateDevice " ></a >
817894# ** updateDevice**
818895> Device updateDevice(existingCollectionId, deviceId, body)
0 commit comments