Browse Source
Merge pull request #16522 from smatvienko-tb/fix/transport-activity-reporting-strategy-env
Fixed TB_TRANSPORT_ACTIVITY_REPORTING_STRATEGY being ignored by standalone transport services
pull/16646/head
Viacheslav Klimov
3 weeks ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with
40 additions and
0 deletions
-
transport/coap/src/main/resources/tb-coap-transport.yml
-
transport/http/src/main/resources/tb-http-transport.yml
-
transport/lwm2m/src/main/resources/tb-lwm2m-transport.yml
-
transport/mqtt/src/main/resources/tb-mqtt-transport.yml
-
transport/snmp/src/main/resources/tb-snmp-transport.yml
|
|
|
@ -151,6 +151,14 @@ transport: |
|
|
|
inactivity_timeout: "${TB_TRANSPORT_SESSIONS_INACTIVITY_TIMEOUT:600000}" |
|
|
|
# Interval of periodic check for expired sessions and report of the changes to session last activity time |
|
|
|
report_timeout: "${TB_TRANSPORT_SESSIONS_REPORT_TIMEOUT:3000}" |
|
|
|
activity: |
|
|
|
# This property specifies the strategy for reporting activity events within each reporting period. |
|
|
|
# The accepted values are 'FIRST', 'LAST', 'FIRST_AND_LAST' and 'ALL'. |
|
|
|
# <ul><li> 'FIRST': Only the first activity event in each reporting period is reported.</li> |
|
|
|
# <li> 'LAST': Only the last activity event in the reporting period is reported.</li> |
|
|
|
# <li> 'FIRST_AND_LAST': Both the first and last activity events in the reporting period are reported.</li> |
|
|
|
# <li> 'ALL': All activity events in the reporting period are reported.</li></ul> |
|
|
|
reporting_strategy: "${TB_TRANSPORT_ACTIVITY_REPORTING_STRATEGY:LAST}" |
|
|
|
json: |
|
|
|
# Cast String data types to Numeric if possible when processing Telemetry/Attributes JSON |
|
|
|
type_cast_enabled: "${JSON_TYPE_CAST_ENABLED:true}" |
|
|
|
|
|
|
|
@ -183,6 +183,14 @@ transport: |
|
|
|
inactivity_timeout: "${TB_TRANSPORT_SESSIONS_INACTIVITY_TIMEOUT:600000}" |
|
|
|
# Interval of periodic check for expired sessions and report of the changes to session last activity time |
|
|
|
report_timeout: "${TB_TRANSPORT_SESSIONS_REPORT_TIMEOUT:3000}" |
|
|
|
activity: |
|
|
|
# This property specifies the strategy for reporting activity events within each reporting period. |
|
|
|
# The accepted values are 'FIRST', 'LAST', 'FIRST_AND_LAST' and 'ALL'. |
|
|
|
# <ul><li> 'FIRST': Only the first activity event in each reporting period is reported.</li> |
|
|
|
# <li> 'LAST': Only the last activity event in the reporting period is reported.</li> |
|
|
|
# <li> 'FIRST_AND_LAST': Both the first and last activity events in the reporting period are reported.</li> |
|
|
|
# <li> 'ALL': All activity events in the reporting period are reported.</li></ul> |
|
|
|
reporting_strategy: "${TB_TRANSPORT_ACTIVITY_REPORTING_STRATEGY:LAST}" |
|
|
|
json: |
|
|
|
# Cast String data types to Numeric if possible when processing Telemetry/Attributes JSON |
|
|
|
type_cast_enabled: "${JSON_TYPE_CAST_ENABLED:true}" |
|
|
|
|
|
|
|
@ -143,6 +143,14 @@ transport: |
|
|
|
inactivity_timeout: "${TB_TRANSPORT_SESSIONS_INACTIVITY_TIMEOUT:600000}" |
|
|
|
# Interval of periodic check for expired sessions and report of the changes to session last activity time |
|
|
|
report_timeout: "${TB_TRANSPORT_SESSIONS_REPORT_TIMEOUT:3000}" |
|
|
|
activity: |
|
|
|
# This property specifies the strategy for reporting activity events within each reporting period. |
|
|
|
# The accepted values are 'FIRST', 'LAST', 'FIRST_AND_LAST' and 'ALL'. |
|
|
|
# <ul><li> 'FIRST': Only the first activity event in each reporting period is reported.</li> |
|
|
|
# <li> 'LAST': Only the last activity event in the reporting period is reported.</li> |
|
|
|
# <li> 'FIRST_AND_LAST': Both the first and last activity events in the reporting period are reported.</li> |
|
|
|
# <li> 'ALL': All activity events in the reporting period are reported.</li></ul> |
|
|
|
reporting_strategy: "${TB_TRANSPORT_ACTIVITY_REPORTING_STRATEGY:LAST}" |
|
|
|
json: |
|
|
|
# Cast String data types to Numeric if possible when processing Telemetry/Attributes JSON |
|
|
|
type_cast_enabled: "${JSON_TYPE_CAST_ENABLED:false}" |
|
|
|
|
|
|
|
@ -206,6 +206,14 @@ transport: |
|
|
|
inactivity_timeout: "${TB_TRANSPORT_SESSIONS_INACTIVITY_TIMEOUT:600000}" |
|
|
|
# Interval of periodic check for expired sessions and report of the changes to session last activity time |
|
|
|
report_timeout: "${TB_TRANSPORT_SESSIONS_REPORT_TIMEOUT:3000}" |
|
|
|
activity: |
|
|
|
# This property specifies the strategy for reporting activity events within each reporting period. |
|
|
|
# The accepted values are 'FIRST', 'LAST', 'FIRST_AND_LAST' and 'ALL'. |
|
|
|
# <ul><li> 'FIRST': Only the first activity event in each reporting period is reported.</li> |
|
|
|
# <li> 'LAST': Only the last activity event in the reporting period is reported.</li> |
|
|
|
# <li> 'FIRST_AND_LAST': Both the first and last activity events in the reporting period are reported.</li> |
|
|
|
# <li> 'ALL': All activity events in the reporting period are reported.</li></ul> |
|
|
|
reporting_strategy: "${TB_TRANSPORT_ACTIVITY_REPORTING_STRATEGY:LAST}" |
|
|
|
json: |
|
|
|
# Cast String data types to Numeric if possible when processing Telemetry/Attributes JSON |
|
|
|
type_cast_enabled: "${JSON_TYPE_CAST_ENABLED:true}" |
|
|
|
|
|
|
|
@ -164,6 +164,14 @@ transport: |
|
|
|
inactivity_timeout: "${TB_TRANSPORT_SESSIONS_INACTIVITY_TIMEOUT:600000}" |
|
|
|
# Interval of periodic check for expired sessions and report of the changes to session last activity time |
|
|
|
report_timeout: "${TB_TRANSPORT_SESSIONS_REPORT_TIMEOUT:3000}" |
|
|
|
activity: |
|
|
|
# This property specifies the strategy for reporting activity events within each reporting period. |
|
|
|
# The accepted values are 'FIRST', 'LAST', 'FIRST_AND_LAST' and 'ALL'. |
|
|
|
# <ul><li> 'FIRST': Only the first activity event in each reporting period is reported.</li> |
|
|
|
# <li> 'LAST': Only the last activity event in the reporting period is reported.</li> |
|
|
|
# <li> 'FIRST_AND_LAST': Both the first and last activity events in the reporting period are reported.</li> |
|
|
|
# <li> 'ALL': All activity events in the reporting period are reported.</li></ul> |
|
|
|
reporting_strategy: "${TB_TRANSPORT_ACTIVITY_REPORTING_STRATEGY:LAST}" |
|
|
|
json: |
|
|
|
# Cast String data types to Numeric if possible when processing Telemetry/Attributes JSON |
|
|
|
type_cast_enabled: "${JSON_TYPE_CAST_ENABLED:true}" |
|
|
|
|