discontinuedPackage thingsboard_pe_client has been discontinued and replaced by thingsboard_client.

AlarmRuleControllerApi class

Constructors

AlarmRuleControllerApi(Dio _dio, [Serializers? _serializers])
const

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

deleteAlarmRule({required String alarmRuleId, CancelToken? cancelToken, Map<String, dynamic>? headers, Map<String, dynamic>? extra, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) → Future<Response<void>>
Delete Alarm Rule (deleteAlarmRule) Deletes the alarm rule. Referencing non-existing Alarm Rule Id will cause an error. Available for users with 'TENANT_ADMIN' authority.
getAlarmRuleById({required String alarmRuleId, CancelToken? cancelToken, Map<String, dynamic>? headers, Map<String, dynamic>? extra, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) → Future<Response<AlarmRuleDefinition>>
Get Alarm Rule (getAlarmRuleById) Fetch the Alarm Rule object based on the provided Alarm Rule Id. Available for users with 'TENANT_ADMIN' authority.
getAlarmRuleNames({required int pageSize, required int page, String? textSearch, String? sortOrder, CancelToken? cancelToken, Map<String, dynamic>? headers, Map<String, dynamic>? extra, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) → Future<Response<PageDataString>>
Get alarm rule names (getAlarmRuleNames) Fetch the list of alarm rule names. Available for users with 'TENANT_ADMIN' authority.
getAlarmRules({required int pageSize, required int page, EntityType? entityType, BuiltSet<String>? entities, String? textSearch, String? sortProperty, String? sortOrder, CancelToken? cancelToken, Map<String, dynamic>? headers, Map<String, dynamic>? extra, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) → Future<Response<PageDataAlarmRuleDefinitionInfo>>
Get alarm rules (getAlarmRules) Fetch tenant alarm rules based on the filter. Available for users with 'TENANT_ADMIN' authority.
getAlarmRulesByEntityId({required String entityType, required String entityId, required int pageSize, required int page, String? textSearch, String? sortProperty, String? sortOrder, CancelToken? cancelToken, Map<String, dynamic>? headers, Map<String, dynamic>? extra, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) → Future<Response<PageDataAlarmRuleDefinition>>
Get Alarm Rules by Entity Id (getAlarmRulesByEntityId) Fetch the Alarm Rules based on the provided Entity Id. Available for users with 'TENANT_ADMIN' authority.
getLatestAlarmRuleDebugEvent({required String alarmRuleId, CancelToken? cancelToken, Map<String, dynamic>? headers, Map<String, dynamic>? extra, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) → Future<Response<JsonObject>>
Get latest alarm rule debug event (getLatestAlarmRuleDebugEvent) Gets latest alarm rule debug event for specified alarm rule id. Referencing non-existing alarm rule id will cause an error. Available for users with 'TENANT_ADMIN' authority.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
saveAlarmRule({required AlarmRuleDefinition alarmRuleDefinition, CancelToken? cancelToken, Map<String, dynamic>? headers, Map<String, dynamic>? extra, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) → Future<Response<AlarmRuleDefinition>>
Create Or Update Alarm Rule (saveAlarmRule) Creates or Updates the Alarm Rule. When creating alarm rule, platform generates Alarm Rule Id as time-based UUID. The newly created Alarm Rule Id will be present in the response. Specify existing Alarm Rule Id to update the alarm rule. Referencing non-existing Alarm Rule Id will cause 'Not Found' error. Remove 'id', 'tenantId' from the request body example (below) to create new Alarm Rule entity. Available for users with 'TENANT_ADMIN' authority.
testAlarmRuleScript({JsonObject? body, CancelToken? cancelToken, Map<String, dynamic>? headers, Map<String, dynamic>? extra, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) → Future<Response<JsonObject>>
Test alarm rule TBEL expression (testAlarmRuleScript) Execute the alarm rule TBEL condition expression and return the result. Alarm rule expressions must return a boolean value. The format of request: ```json { &quot;expression&quot;: &quot;return temperature > 50;&quot;, &quot;arguments&quot;: { &quot;temperature&quot;: { &quot;type&quot;: &quot;SINGLE_VALUE&quot;, &quot;ts&quot;: 1739776478057, &quot;value&quot;: 55 } } } ``` Expected result JSON contains &quot;output&quot; and &quot;error&quot;. Available for users with 'TENANT_ADMIN' authority.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited