publicstaticfinalStringENTITY_TYPE_DESCRIPTION="A string value representing the entity type. For example, 'DEVICE'";
publicstaticfinalStringENTITY_SCOPE_DESCRIPTION="A string value representing the entity scope. Required values: 'SERVER_SCOPE', 'CLIENT_SCOPE' or 'SHARED_SCOPE'. For example, 'SERVER_SCOPE'.";
publicstaticfinalStringENTITY_ID_DESCRIPTION="A string value representing the entity id. For example, '16cdaaf0-229d-11ec-b9f0-231c4d2593da'";
publicstaticfinalStringENTITY_TIMESERIES_KEYS_DESCRIPTION="A string value representing the comma-separated list of timeseries keys. If keys are not selected, the result will return all the latest timeseries. For example, 'active,inactivityAlarmTime'";
publicstaticfinalStringENTITY_ATTRIBUTES_KEYS_DESCRIPTION="A string value representing the comma-separated list of attributes keys. If keys are not selected, the result will return all the latest timeseries. For example, 'active,inactivityAlarmTime'";
publicstaticfinalStringENTITY_JSON_REQUEST_DESCRIPTION="A string value representing the json object. For example, '{\"key\":\"value\"}'";
publicstaticfinalStringDEVICE_ID_DESCRIPTION="A string value representing the device id. For example, 'e0034860-2065-11ec-8a0a-15ac1b4580c2'";
@Autowired
privateTimeseriesServicetsService;
@ -135,101 +142,101 @@ public class TelemetryController extends BaseController {
}
}
@ApiOperation(value="Get all existed attributes of entity by it`s type",
notes="Returns key`s name of the attribute")
@ApiOperation(value="Get all attributes for selected entity",
notes="Returns key names for the selected entity id and type")
@ApiParam(value="A string value representing the entity type. For example, 'ASSET'")@PathVariable("entityType")StringentityType,
@ApiParam(value="A string value representing the entity id of the required entity type. For example, '87b2fe90-2050-11ec-8a0a-15ac1b4580c2'")@PathVariable("entityId")StringentityIdStr)throwsThingsboardException{
@ApiParam(value="A string value representing the entity type. For example, 'DEVICE'")@PathVariable("entityType")StringentityType,
@ApiParam(value="A string value representing the entity id. For example, '16cdaaf0-229d-11ec-b9f0-231c4d2593da'")@PathVariable("entityId")StringentityIdStr,
@ApiParam(value="A string value representing the scope. For example, 'SERVER_SCOPE'. In the result will be return all server attributes")@PathVariable("scope")Stringscope)throwsThingsboardException{
@ApiParam(value=ENTITY_SCOPE_DESCRIPTION+" In the result will be return all server attributes")@PathVariable("scope")Stringscope)throwsThingsboardException{
@ApiParam(value="A string value representing the entity type. For example, 'DEVICE'")@PathVariable("entityType")StringentityType,
@ApiParam(value="A string value representing the entity id. For example, '16cdaaf0-229d-11ec-b9f0-231c4d2593da'")@PathVariable("entityId")StringentityIdStr,
@ApiParam(value="A string value representing the entity keys. They are optional and listed with comma with no space between keys. For example, 'active,inactivityAlarmTime'")@RequestParam(name="keys",required=false)StringkeysStr)throwsThingsboardException{
@ApiParam(value="A string value representing the entity type. For example, 'DEVICE'")@PathVariable("entityType")StringentityType,
@ApiParam(value="A string value representing the entity id. For example, '16cdaaf0-229d-11ec-b9f0-231c4d2593da'")@PathVariable("entityId")StringentityIdStr,
@ApiParam(value="A string value representing the entity type. For example, 'SERVER_SCOPE'")@PathVariable("scope")Stringscope,
@ApiParam(value="A string value representing the entity keys. They are optional and listed with comma with no space between keys. For example, 'active,inactivityAlarmTime'")@RequestParam(name="keys",required=false)StringkeysStr)throwsThingsboardException{
@ApiParam(value="A string value representing the entity type. For example, 'DEVICE'")@PathVariable("entityType")StringentityType,
@ApiParam(value="A string value representing the entity id. For example, '16cdaaf0-229d-11ec-b9f0-231c4d2593da'")@PathVariable("entityId")StringentityIdStr)throwsThingsboardException{
@ApiParam(value="A string value representing the entity type. For example, 'DEVICE'")@PathVariable("entityType")StringentityType,
@ApiParam(value="A string value representing the entity id. For example, '16cdaaf0-229d-11ec-b9f0-231c4d2593da'")@PathVariable("entityId")StringentityIdStr,
@ApiParam(value="A string value representing the entity keys. They are optional and listed with comma with no space between keys. For example, 'active,inactivityAlarmTime'")@RequestParam(name="keys",required=false)StringkeysStr,
@ApiParam(value="A boolean value representing if value of timeseries is representing as a string (by default) or as original type")@RequestParam(name="useStrictDataTypes",required=false,defaultValue="false")BooleanuseStrictDataTypes)throwsThingsboardException{
@ApiParam(value="A boolean value to specify if values of specified timeseries keys will representing a string (by default) or use strict data type.")@RequestParam(name="useStrictDataTypes",required=false,defaultValue="false")BooleanuseStrictDataTypes)throwsThingsboardException{
@ApiParam(value="A string value representing the entity type. For example, 'DEVICE'")@PathVariable("entityType")StringentityType,
@ApiParam(value="A string value representing the entity id. For example, '16cdaaf0-229d-11ec-b9f0-231c4d2593da'")@PathVariable("entityId")StringentityIdStr,
@ApiParam(value="A string value representing the entity keys. They are optional and listed with comma with no space between keys. For example, 'active,inactivityAlarmTime'")@RequestParam(name="keys")Stringkeys,
@ApiParam(value="A string value representing the function. For example, 'AVG'")@RequestParam(name="agg",defaultValue="NONE")StringaggStr,
@ApiParam(value="A string value representing a sorting type")@RequestParam(name="orderBy",defaultValue="DESC")StringorderBy,
@ApiParam(value="A string value representing the function. Available parameters: 'MIN', 'MAX', 'AVG', 'SUM', 'COUNT', 'NONE'."+
" If the interval is 0, aggStr will be converted to 'NONE' value. For example, 'AVG'")@RequestParam(name="agg",defaultValue="NONE")StringaggStr,
@ApiParam(value="A string value representing a sorting type. Available values 'DESC' or 'ASC'")@RequestParam(name="orderBy",defaultValue="DESC")StringorderBy,
@ApiParam(value="A string value representing the device id. For example, 'e0034860-2065-11ec-8a0a-15ac1b4580c2'")@PathVariable("deviceId")StringdeviceIdStr,
@ApiParam(value="A string value representing the entity type. For example, 'SERVER_SCOPE'")@PathVariable("scope")Stringscope,
@ApiParam(value="A string value representing the json object. Should contains key and value of the attribute. For example, '{\"key\":\"value\"}'")@RequestBodyJsonNoderequest)throwsThingsboardException{
@ApiParam(value="A string value representing the entity type. For example, 'DEVICE'")@PathVariable("entityType")StringentityType,
@ApiParam(value="A string value representing the entity id. For example, 'e0034860-2065-11ec-8a0a-15ac1b4580c2'")@PathVariable("entityId")StringentityIdStr,
@ApiParam(value="A string value representing the entity type. For example, 'SHARED_SCOPE'")@PathVariable("scope")Stringscope,
@ApiParam(value="A string value representing the json object. Should contains key and value of the attribute. For example, '{\"key\":\"value\"}'")@RequestBodyJsonNoderequest)throwsThingsboardException{
@ApiParam(value="A string value representing the device type. For example, 'DEVICE'")@PathVariable("entityType")StringentityType,
@ApiParam(value="A string value representing the device id. For example, 'e0034860-2065-11ec-8a0a-15ac1b4580c2'")@PathVariable("entityId")StringentityIdStr,
@ApiParam(value="A string value representing the scope. For example, 'SERVER_SCOPE'")@PathVariable("scope")Stringscope,
@ApiParam(value="A string value representing the json object. Should contains key and value of the attribute. For example, '{\"key\":\"value\"}'")@RequestBodyStringrequestBody)throwsThingsboardException{
@ApiParam(value="A string value representing the device type. For example, 'DEVICE'")@PathVariable("entityType")StringentityType,
@ApiParam(value="A string value representing the device id. For example, 'e0034860-2065-11ec-8a0a-15ac1b4580c2'")@PathVariable("entityId")StringentityIdStr,
@ApiParam(value="A string value representing the scope. For example, 'SERVER_SCOPE'")@PathVariable("scope")Stringscope,
@ApiParam(value="A long value representing the amount of days.")@PathVariable("ttl")Longttl,
@ApiParam(value="A string value representing the json object. Should contains key and value of the attribute. For example, '{\"key\":\"value\"}'")@RequestBodyStringrequestBody)throwsThingsboardException{
@ApiParam(value="A string value representing the device type. For example, 'DEVICE'")@PathVariable("entityType")StringentityType,
@ApiParam(value="A string value representing the device id. For example, 'e0034860-2065-11ec-8a0a-15ac1b4580c2'")@PathVariable("entityId")StringentityIdStr,
@ApiParam(value="A string value representing the entity keys. They are optional and listed with comma with no space between keys. For example, 'active,inactivityAlarmTime'")@RequestParam(name="keys")StringkeysStr,
@ApiParam(value="A boolean value representing if should be deleted all data of required key or only the latest")@RequestParam(name="deleteAllDataForKeys",defaultValue="false")booleandeleteAllDataForKeys,
@ApiParam(value="A boolean value representing if should be deleted all data of required keys or only the latest")@RequestParam(name="deleteAllDataForKeys",defaultValue="false")booleandeleteAllDataForKeys,
@ApiParam(value="A long value representing the start point of time")@RequestParam(name="startTs",required=false)LongstartTs,
@ApiParam(value="A long value representing the end point of time")@RequestParam(name="endTs",required=false)LongendTs,