Browse Source

minor improvements

pull/8928/head
YevhenBondarenko 3 years ago
parent
commit
ba85007a2d
  1. 10
      application/src/main/java/org/thingsboard/server/controller/TelemetryController.java
  2. 1
      ui-ngx/src/assets/locale/locale.constant-ca_ES.json
  3. 1
      ui-ngx/src/assets/locale/locale.constant-cs_CZ.json
  4. 1
      ui-ngx/src/assets/locale/locale.constant-da_DK.json
  5. 1
      ui-ngx/src/assets/locale/locale.constant-de_DE.json
  6. 1
      ui-ngx/src/assets/locale/locale.constant-el_GR.json
  7. 1
      ui-ngx/src/assets/locale/locale.constant-en_US.json
  8. 1
      ui-ngx/src/assets/locale/locale.constant-es_ES.json
  9. 1
      ui-ngx/src/assets/locale/locale.constant-fa_IR.json
  10. 1
      ui-ngx/src/assets/locale/locale.constant-fr_FR.json
  11. 1
      ui-ngx/src/assets/locale/locale.constant-it_IT.json
  12. 1
      ui-ngx/src/assets/locale/locale.constant-ja_JP.json
  13. 1
      ui-ngx/src/assets/locale/locale.constant-ka_GE.json
  14. 1
      ui-ngx/src/assets/locale/locale.constant-ko_KR.json
  15. 1
      ui-ngx/src/assets/locale/locale.constant-lv_LV.json
  16. 1
      ui-ngx/src/assets/locale/locale.constant-pt_BR.json
  17. 1
      ui-ngx/src/assets/locale/locale.constant-ro_RO.json
  18. 1
      ui-ngx/src/assets/locale/locale.constant-sl_SI.json
  19. 1
      ui-ngx/src/assets/locale/locale.constant-tr_TR.json
  20. 1
      ui-ngx/src/assets/locale/locale.constant-uk_UA.json
  21. 1
      ui-ngx/src/assets/locale/locale.constant-zh_CN.json
  22. 1
      ui-ngx/src/assets/locale/locale.constant-zh_TW.json

10
application/src/main/java/org/thingsboard/server/controller/TelemetryController.java

@ -462,7 +462,9 @@ public class TelemetryController extends BaseController {
notes = "Delete time-series for selected entity based on entity id, entity type and keys." +
" Use 'deleteAllDataForKeys' to delete all time-series data." +
" Use 'startTs' and 'endTs' to specify time-range instead. " +
" Use 'rewriteLatestIfDeleted' to rewrite latest value (stored in separate table for performance) after deletion of the time range. " +
" Use 'deleteLatest' to delete latest value (stored in separate table for performance) if the value's timestamp matches the time-range. " +
" Use 'rewriteLatestIfDeleted' to rewrite latest value (stored in separate table for performance) if the value's timestamp matches the time-range and 'deleteLatest' param is true." +
" The replacement value will be fetched from the 'time-series' table, and its timestamp will be the most recent one before the defined time-range. " +
TENANT_OR_CUSTOMER_AUTHORITY_PARAGRAPH,
produces = MediaType.APPLICATION_JSON_VALUE)
@ApiResponses(value = {
@ -486,10 +488,10 @@ public class TelemetryController extends BaseController {
@RequestParam(name = "startTs", required = false) Long startTs,
@ApiParam(value = "A long value representing the end timestamp of removal time range in milliseconds.")
@RequestParam(name = "endTs", required = false) Long endTs,
@ApiParam(value = "If the parameter is set to true, the latest telemetry will be rewritten in case that current latest value was removed, otherwise, in case that parameter is set to false the new latest value will not set.")
@RequestParam(name = "rewriteLatestIfDeleted", defaultValue = "false") boolean rewriteLatestIfDeleted,
@ApiParam(value = "If the parameter is set to true, the latest telemetry can be removed, otherwise, in case that parameter is set to false the latest value will not removed.")
@RequestParam(name = "deleteLatest", required = false, defaultValue = "true") boolean deleteLatest) throws ThingsboardException {
@RequestParam(name = "deleteLatest", required = false, defaultValue = "true") boolean deleteLatest,
@ApiParam(value = "If the parameter is set to true, the latest telemetry will be rewritten in case that current latest value was removed, otherwise, in case that parameter is set to false the new latest value will not set.")
@RequestParam(name = "rewriteLatestIfDeleted", defaultValue = "false") boolean rewriteLatestIfDeleted) throws ThingsboardException {
EntityId entityId = EntityIdFactory.getByTypeAndId(entityType, entityIdStr);
return deleteTimeseries(entityId, keysStr, deleteAllDataForKeys, startTs, endTs, rewriteLatestIfDeleted, deleteLatest);
}

1
ui-ngx/src/assets/locale/locale.constant-ca_ES.json

@ -633,6 +633,7 @@
"latest-telemetry": "Última telemetria",
"attributes-scope": "Abast dels atributs del dispositiu",
"scope-telemetry": "Telemetria",
"scope-latest-telemetry": "Última telemetria",
"scope-client": "Atributs del Client",
"scope-server": "Atributs del Servidor",
"scope-shared": "Atributs Compartits",

1
ui-ngx/src/assets/locale/locale.constant-cs_CZ.json

@ -446,6 +446,7 @@
"latest-telemetry": "Poslední telemetrie",
"attributes-scope": "Rozsah atributů entity",
"scope-telemetry": "Telemetrie",
"scope-latest-telemetry": "Poslední telemetrie",
"scope-client": "Atributy klienta",
"scope-server": "Atributy serveru",
"scope-shared": "Sdílené atributy",

1
ui-ngx/src/assets/locale/locale.constant-da_DK.json

@ -454,6 +454,7 @@
"latest-telemetry": "Seneste telemetri",
"attributes-scope": "Omfang af entitetsattributter",
"scope-telemetry": "Telemetri",
"scope-latest-telemetry": "Seneste telemetri",
"scope-client": "Klientattributter",
"scope-server": "Serverattributter",
"scope-shared": "Delte attributter",

1
ui-ngx/src/assets/locale/locale.constant-de_DE.json

@ -325,6 +325,7 @@
"latest-telemetry": "Neueste Telemetrie",
"attributes-scope": "Entitätseigenschaftsbereich",
"scope-telemetry": "Telemetrie",
"scope-latest-telemetry": "Neueste Telemetrie",
"scope-client": "Client Eigenschaften",
"scope-server": "Server Eigenschaften",
"scope-shared": "Gemeinsame Eigenschaften",

1
ui-ngx/src/assets/locale/locale.constant-el_GR.json

@ -292,6 +292,7 @@
"latest-telemetry": "Τελευταία τηλεμετρία",
"attributes-scope": "Πεδίο εφαρμογής Χαρακτηριστικών Οντότητας",
"scope-telemetry": "Τηλεμετρία",
"scope-latest-telemetry": "Τελευταία τηλεμετρία",
"scope-client": "Χαρακτηριστικά Client",
"scope-server": "Χαρακτηριστικά Server",
"scope-shared": "Κοινόχρηστα Χαρακτηριστικά",

1
ui-ngx/src/assets/locale/locale.constant-en_US.json

@ -700,6 +700,7 @@
"no-latest-telemetry": "No latest telemetry",
"attributes-scope": "Entity attributes scope",
"scope-telemetry": "Telemetry",
"scope-latest-telemetry": "Latest telemetry",
"scope-client": "Client attributes",
"scope-server": "Server attributes",
"scope-shared": "Shared attributes",

1
ui-ngx/src/assets/locale/locale.constant-es_ES.json

@ -668,6 +668,7 @@
"latest-telemetry": "Última telemetría",
"attributes-scope": "Alcance de los atributos del dispositivo",
"scope-telemetry": "Telemetría",
"scope-latest-telemetry": "Última telemetría",
"scope-client": "Atributos de Cliente",
"scope-server": "Atributos de Servidor",
"scope-shared": "Atributos Compartidos",

1
ui-ngx/src/assets/locale/locale.constant-fa_IR.json

@ -255,6 +255,7 @@
"latest-telemetry": "آخرين سنجش",
"attributes-scope": "حوزه ويژگي هاي موجودي",
"scope-telemetry": "تله متری",
"scope-latest-telemetry": "آخرين سنجش",
"scope-client": "ويژگي هاي مشتري",
"scope-server": "ويژگي هاي سِروِر",
"scope-shared": "ويژگي هاي مشترک",

1
ui-ngx/src/assets/locale/locale.constant-fr_FR.json

@ -460,6 +460,7 @@
"prev-widget": "Widget précédent",
"scope-client": "Attributs du client",
"scope-telemetry": "Télémétrie",
"scope-latest-telemetry": "Dernière télémétrie",
"scope-server": "Attributs du serveur",
"scope-shared": "Attributs partagés",
"selected-attributes": "{count, plural, =1 {1 attribut} other {# attributs} } sélectionnés",

1
ui-ngx/src/assets/locale/locale.constant-it_IT.json

@ -277,6 +277,7 @@
"latest-telemetry": "Ultima telemetria",
"attributes-scope": "Visibilità attributi entità",
"scope-telemetry": "Telemetria",
"scope-latest-telemetry": "Ultima telemetria",
"scope-client": "Attributi client",
"scope-server": "Attributi server",
"scope-shared": "Attributi condivisi",

1
ui-ngx/src/assets/locale/locale.constant-ja_JP.json

@ -245,6 +245,7 @@
"latest-telemetry": "最新テレメトリ",
"attributes-scope": "エンティティ属性のスコープ",
"scope-telemetry": "テレメトリー",
"scope-latest-telemetry": "最新テレメトリ",
"scope-client": "クライアントの属性",
"scope-server": "サーバーの属性",
"scope-shared": "共有属性",

1
ui-ngx/src/assets/locale/locale.constant-ka_GE.json

@ -291,6 +291,7 @@
"latest-telemetry": "უახლესი ტელემეტრია",
"attributes-scope": "ობიექტის ატრიბუტების ფარგლები",
"scope-telemetry": "ტელემეტრია",
"scope-latest-telemetry": "უახლესი ტელემეტრია",
"scope-client": "კლიენტის ატრიბუტები",
"scope-server": "სერვერის ატრიბუტები",
"scope-shared": "ატრიბუტების გაზიარება",

1
ui-ngx/src/assets/locale/locale.constant-ko_KR.json

@ -409,6 +409,7 @@
"latest-telemetry": "최근 데이터",
"attributes-scope": "장치 속성 범위",
"scope-telemetry": "원격 측정",
"scope-latest-telemetry": "최근 데이터",
"scope-client": "클라이언트 속성",
"scope-server": "서버 속성",
"scope-shared": "공유 속성",

1
ui-ngx/src/assets/locale/locale.constant-lv_LV.json

@ -257,6 +257,7 @@
"latest-telemetry": "Jaunākā telemetrija",
"attributes-scope": "Vienības atribūtu darbības joma",
"scope-telemetry": "Telemetrija",
"scope-latest-telemetry": "Jaunākā telemetrija",
"scope-client": "Klientu atribūti",
"scope-server": "Servera atribūti",
"scope-shared": "Dalītie atribūti",

1
ui-ngx/src/assets/locale/locale.constant-pt_BR.json

@ -310,6 +310,7 @@
"latest-telemetry": "Última telemetria",
"attributes-scope": "Escopo de atributos de entidade",
"scope-telemetry": "Telemetria",
"scope-latest-telemetry": "Última telemetria",
"scope-client": "Atributos do cliente",
"scope-server": "Atributos do servidor",
"scope-shared": "Atributos compartilhados",

1
ui-ngx/src/assets/locale/locale.constant-ro_RO.json

@ -286,6 +286,7 @@
"latest-telemetry": "Ultimele Date Telemetrice",
"attributes-scope": "Scop Atribute Entitate",
"scope-telemetry": "Telemetrie",
"scope-latest-telemetry": "Ultimele Date Telemetrice",
"scope-client": "Atribute Client",
"scope-server": "Atribute Server",
"scope-shared": "Atribute Partajate",

1
ui-ngx/src/assets/locale/locale.constant-sl_SI.json

@ -409,6 +409,7 @@
"latest-telemetry": "Najnovejša telemetrija",
"attributes-scope": "Obseg atributov entitete",
"scope-telemetry": "Telemetrija",
"scope-latest-telemetry": "Najnovejša telemetrija",
"scope-client": "Atributi odjemalca",
"scope-server": "Atributi strežnika",
"scope-shared": "Skupni atributi",

1
ui-ngx/src/assets/locale/locale.constant-tr_TR.json

@ -446,6 +446,7 @@
"latest-telemetry": "Son telemetri",
"attributes-scope": "Varlık öznitelik kapsamı",
"scope-telemetry": "telemetri",
"scope-latest-telemetry": "Son telemetri",
"scope-client": "İstemci öznitelikler",
"scope-server": "Sunucu öznitelikler",
"scope-shared": "Paylaşılan öznitelikler",

1
ui-ngx/src/assets/locale/locale.constant-uk_UA.json

@ -343,6 +343,7 @@
"latest-telemetry": "Остання телеметрія",
"attributes-scope": "Область видимості атрибутів",
"scope-telemetry": "Телеметрія",
"scope-latest-telemetry": "Остання телеметрія",
"scope-client": "Клієнтські атрибути",
"scope-server": "Серверні атрибути",
"scope-shared": "Спільні атрибути",

1
ui-ngx/src/assets/locale/locale.constant-zh_CN.json

@ -591,6 +591,7 @@
"latest-telemetry": "最新遥测数据",
"attributes-scope": "设备属性范围",
"scope-telemetry": "遥测",
"scope-latest-telemetry": "最新遥测数据",
"scope-client": "客户端属性",
"scope-server": "服务端属性",
"scope-shared": "共享属性",

1
ui-ngx/src/assets/locale/locale.constant-zh_TW.json

@ -520,6 +520,7 @@
"latest-telemetry": "最新遙測",
"attributes-scope": "設備屬性範圍",
"scope-telemetry": "遙測",
"scope-latest-telemetry": "最新遙測",
"scope-client": "客戶端屬性",
"scope-server": "服務端屬性",
"scope-shared": "共享屬性",

Loading…
Cancel
Save