TrendzControllerApi class
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
connectToTrendz({CancelToken? cancelToken, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress})
→ Future<Response<TrendzSynchronizationResult>>
-
Connect to Trendz (connectToTrendz)
Initiates synchronization with Trendz (Connect button action). Uses Trendz configuration from settings or falls back to environment variables. Generates API key, saves configuration, checks Trendz version, and performs initial sync. Available for users with 'SYS_ADMIN' authority.
-
getTrendzConfig({CancelToken? cancelToken, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress})
→ Future<Response<TrendzConfiguration>>
-
Get Trendz configuration (getTrendzConfig)
Retrieves Trendz configuration (URLs). Returns trendzUrl and tbUrl. Available for users with 'SYS_ADMIN' authority.
-
getTrendzSyncResult({CancelToken? cancelToken, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress})
→ Future<Response<TrendzSynchronizationResult>>
-
Get Trendz synchronization result (getTrendzSyncResult)
Retrieves Trendz synchronization result and status. Returns trendzVersion, updatedTs, resultType, and status. Available for any authorized user.
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
performTrendzHealthcheck({CancelToken? cancelToken, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress})
→ Future<Response<TrendzHealthcheckResult>>
-
Perform Trendz healthcheck (performTrendzHealthcheck)
Performs healthcheck for Trendz integration. Returns version, type, status, and message. Can only be performed if Trendz is already synchronized and integration is enabled. Available for any authorized user.
-
publicConnectToTrendz({CancelToken? cancelToken, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress})
→ Future<Response<void>>
-
Public connect to Trendz (publicConnectToTrendz)
Initiates synchronization with Trendz if Trendz is not synced yet. Uses Trendz configuration from settings or falls back to environment variables. Generates API key, saves configuration, checks Trendz version, and performs initial sync.
-
saveTrendzConfig({required TrendzConfiguration trendzConfiguration, CancelToken? cancelToken, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress})
→ Future<Response<TrendzConfiguration>>
-
Save Trendz configuration (saveTrendzConfig)
Saves Trendz configuration (URLs only, without triggering synchronization). Request body example: ```json { "trendzUrl": "https://trendz.domain.com", "tbUrl": "https://thingsboard.domain.com" } ``` Available for users with 'SYS_ADMIN' authority.
-
toString()
→ String
-
A string representation of this object.
inherited