discontinuedPackage thingsboard_pe_client has been discontinued and replaced by thingsboard_client.
RuleChainControllerApi 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
-
assignRuleChainToEdge({required String edgeId, required String ruleChainId, CancelToken? cancelToken, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress})
→ Future<Response<RuleChain>>
-
Assign rule chain to edge (assignRuleChainToEdge)
Creates assignment of an existing rule chain to an instance of The Edge. Assignment works in async way - first, notification event pushed to edge service queue on platform. Second, remote edge service will receive a copy of assignment rule chain (Edge will receive this instantly, if it's currently connected, or once it's going to be connected to platform). Third, once rule chain will be delivered to edge service, it's going to start processing messages locally. Only rule chain with type 'EDGE' can be assigned to edge. Available for users with 'TENANT_ADMIN' authority.
-
deleteRuleChain({required String ruleChainId, CancelToken? cancelToken, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress})
→ Future<Response<void>>
-
Delete rule chain (deleteRuleChain)
Deletes the rule chain. Referencing non-existing rule chain Id will cause an error. Referencing rule chain that is used in the device profiles will cause an error. Available for users with 'TENANT_ADMIN' authority.
-
exportRuleChains({required int limit, CancelToken? cancelToken, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress})
→ Future<Response<RuleChainData>>
-
Export Rule Chains
Exports all tenant rule chains as one JSON. Available for users with 'TENANT_ADMIN' authority.
-
getAutoAssignToEdgeRuleChains({CancelToken? cancelToken, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress})
→ Future<Response<BuiltList<RuleChain>>>
-
Get Auto Assign To Edge Rule Chains (getAutoAssignToEdgeRuleChains)
Returns a list of Rule Chains that will be assigned to a newly created edge. The rule chain object is lightweight and contains general information about the rule chain. List of rule nodes and their connection is stored in a separate 'metadata' object. Available for users with 'TENANT_ADMIN' authority.
-
getEdgeRuleChains({required String edgeId, required int pageSize, required int page, String? textSearch, String? sortProperty, String? sortOrder, CancelToken? cancelToken, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress})
→ Future<Response<PageDataRuleChain>>
-
Get Edge Rule Chains (getEdgeRuleChains)
Returns a page of Rule Chains assigned to the specified edge. The rule chain object is lightweight and contains general information about the rule chain. List of rule nodes and their connection is stored in a separate 'metadata' object.You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. Available for users with 'TENANT_ADMIN' authority.
-
getLatestRuleNodeDebugInput({required String ruleNodeId, CancelToken? cancelToken, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress})
→ Future<Response<JsonObject>>
-
Get latest input message (getLatestRuleNodeDebugInput)
Gets the input message from the debug events for specified Rule Chain Id. Referencing non-existing rule chain Id will cause an error. Available for users with 'TENANT_ADMIN' authority.
-
getRuleChainById({required String ruleChainId, CancelToken? cancelToken, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress})
→ Future<Response<RuleChain>>
-
Get Rule Chain (getRuleChainById)
Fetch the Rule Chain object based on the provided Rule Chain Id. The rule chain object is lightweight and contains general information about the rule chain. List of rule nodes and their connection is stored in a separate 'metadata' object. Available for users with 'TENANT_ADMIN' authority.
-
getRuleChainMetaData({required String ruleChainId, CancelToken? cancelToken, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress})
→ Future<Response<RuleChainMetaData>>
-
Get Rule Chain (getRuleChainById)
Fetch the Rule Chain Metadata object based on the provided Rule Chain Id. The metadata object contains information about the rule nodes and their connections. Available for users with 'TENANT_ADMIN' authority.
-
getRuleChainOutputLabels({required String ruleChainId, CancelToken? cancelToken, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress})
→ Future<Response<BuiltSet<String>>>
-
Get Rule Chain output labels (getRuleChainOutputLabels)
Fetch the unique labels for the "output" Rule Nodes that belong to the Rule Chain based on the provided Rule Chain Id. The rule chain object is lightweight and contains general information about the rule chain. List of rule nodes and their connection is stored in a separate 'metadata' object. Available for users with 'TENANT_ADMIN' authority.
-
getRuleChainOutputLabelsUsage({required String ruleChainId, CancelToken? cancelToken, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress})
→ Future<Response<BuiltList<RuleChainOutputLabelsUsage>>>
-
Get output labels usage (getRuleChainOutputLabelsUsage)
Fetch the list of rule chains and the relation types (labels) they use to process output of the current rule chain based on the provided Rule Chain Id. The rule chain object is lightweight and contains general information about the rule chain. List of rule nodes and their connection is stored in a separate 'metadata' object. Available for users with 'TENANT_ADMIN' authority.
-
getRuleChains({required int pageSize, required int page, String? type, String? textSearch, String? sortProperty, String? sortOrder, CancelToken? cancelToken, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress})
→ Future<Response<PageDataRuleChain>>
-
Get Rule Chains (getRuleChains)
Returns a page of Rule Chains owned by tenant. The rule chain object is lightweight and contains general information about the rule chain. List of rule nodes and their connection is stored in a separate 'metadata' object.You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. Available for users with 'TENANT_ADMIN' authority.
-
getRuleChainsByIds({required BuiltList<String> ruleChainIds, CancelToken? cancelToken, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress})
→ Future<Response<BuiltList<RuleChain>>>
-
Get Rule Chains By Ids (getRuleChainsByIds)
Requested rule chains must be owned by tenant which is performing the request. Security check is performed to verify that the user has 'READ' permission for the entity (entities).
-
importRuleChains({required RuleChainData ruleChainData, bool? overwrite = false, CancelToken? cancelToken, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress})
→ Future<Response<BuiltList<RuleChainImportResult>>>
-
Import Rule Chains
Imports all tenant rule chains as one JSON. Available for users with 'TENANT_ADMIN' authority.
-
isTbelEnabled({CancelToken? cancelToken, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress})
→ Future<Response<bool>>
-
Is TBEL script executor enabled
Returns 'True' if the TBEL script execution is enabled Available for users with 'TENANT_ADMIN' authority.
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
saveRuleChain({required RuleChain ruleChain, CancelToken? cancelToken, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress})
→ Future<Response<RuleChain>>
-
Create Or Update Rule Chain (saveRuleChain)
Create or update the Rule Chain. When creating Rule Chain, platform generates Rule Chain Id as time-based UUID. The newly created Rule Chain Id will be present in the response. Specify existing Rule Chain id to update the rule chain. Referencing non-existing rule chain Id will cause 'Not Found' error. The rule chain object is lightweight and contains general information about the rule chain. List of rule nodes and their connection is stored in a separate 'metadata' object.Remove 'id', 'tenantId' from the request body example (below) to create new Rule Chain entity. Available for users with 'TENANT_ADMIN' authority.
-
saveRuleChainMetaData({required RuleChainMetaData ruleChainMetaData, bool? updateRelated = true, CancelToken? cancelToken, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress})
→ Future<Response<RuleChainMetaData>>
-
Update Rule Chain Metadata
Updates the rule chain metadata. The metadata object contains information about the rule nodes and their connections. Available for users with 'TENANT_ADMIN' authority.
-
setAutoAssignToEdgeRuleChain({required String ruleChainId, CancelToken? cancelToken, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress})
→ Future<Response<RuleChain>>
-
Set Auto Assign To Edge Rule Chain (setAutoAssignToEdgeRuleChain)
Makes the rule chain to be automatically assigned for any new edge that will be created. Does not assign this rule chain for already created edges. Available for users with 'TENANT_ADMIN' authority.
-
setDeviceDefaultRuleChain({required DefaultRuleChainCreateRequest defaultRuleChainCreateRequest, CancelToken? cancelToken, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress})
→ Future<Response<RuleChain>>
-
Create Default Rule Chain (setDeviceDefaultRuleChain)
Create rule chain from template, based on the specified name in the request. Creates the rule chain based on the template that is used to create root rule chain. Available for users with 'TENANT_ADMIN' authority.
-
setEdgeTemplateRootRuleChain({required String ruleChainId, CancelToken? cancelToken, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress})
→ Future<Response<RuleChain>>
-
Set Edge Template Root Rule Chain (setEdgeTemplateRootRuleChain)
Makes the rule chain to be root rule chain for any new edge that will be created. Does not update root rule chain for already created edges. Available for users with 'TENANT_ADMIN' authority.
-
setRootRuleChain({required String ruleChainId, CancelToken? cancelToken, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress})
→ Future<Response<RuleChain>>
-
Set Root Rule Chain (setRootRuleChain)
Makes the rule chain to be root rule chain. Updates previous root rule chain as well. Available for users with 'TENANT_ADMIN' authority.
-
testRuleChainScript({JsonObject? body, ScriptLanguage? scriptLang, CancelToken? cancelToken, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress})
→ Future<Response<JsonObject>>
-
Test Script function
Execute the Script function and return the result. The format of request: ```json { "script": "Your Function as String", "scriptType": "One of: update, generate, filter, switch, json, string", "argNames":
\"msg\", \"metadata\", \"type\", "msg": "{\"temperature\": 42}", "metadata": { "deviceName": "Device A", "deviceType": "Thermometer" }, "msgType": "POST_TELEMETRY_REQUEST" } ``` Expected result JSON contains "output" and "error". Available for users with 'TENANT_ADMIN' authority.
-
toString()
→ String
-
A string representation of this object.
inherited
-
unassignRuleChainFromEdge({required String edgeId, required String ruleChainId, CancelToken? cancelToken, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress})
→ Future<Response<RuleChain>>
-
Unassign rule chain from edge (unassignRuleChainFromEdge)
Clears assignment of the rule chain to the edge. Unassignment works in async way - first, 'unassign' notification event pushed to edge queue on platform. Second, remote edge service will receive an 'unassign' command to remove rule chain (Edge will receive this instantly, if it's currently connected, or once it's going to be connected to platform). Third, once 'unassign' command will be delivered to edge service, it's going to remove rule chain locally. Available for users with 'TENANT_ADMIN' authority.
-
unsetAutoAssignToEdgeRuleChain({required String ruleChainId, CancelToken? cancelToken, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress})
→ Future<Response<RuleChain>>
-
Unset Auto Assign To Edge Rule Chain (unsetAutoAssignToEdgeRuleChain)
Removes the rule chain from the list of rule chains that are going to be automatically assigned for any new edge that will be created. Does not unassign this rule chain for already assigned edges. Available for users with 'TENANT_ADMIN' authority.