IAzureCosmosDbGetAlertRulesByDeviceAndEvent Method
Retrieves a list of
AlertRuleDto applicable to a specific device and event.
Namespace: MobileTrack.DataContainers.CosmosAssembly: MobileTrack.DataContainers (in MobileTrack.DataContainers.dll) Version: 0.7+45c8d9adb5970d727cceec44a5ed61aea0016e50
Task<List<AlertRuleDto>> GetAlertRulesByDeviceAndEvent(
Guid companyId,
Guid deviceId,
DeviceRequestType deviceEvent,
CancellationToken cancellationToken = default
)
- companyId Guid
- ID of the CompanyDto that the device belongs to.
- deviceId Guid
- The ID of the device.
- deviceEvent DeviceRequestType
- An event that can be triggered by the device.
- cancellationToken CancellationToken (Optional)
- Cancellation token.
TaskListAlertRuleDtoA list of
AlertRuleDto items that apply to the device event.