IAzureCosmosDbGetAlertRulesByDeviceAndEvent Method

Retrieves a list of AlertRuleDto applicable to a specific device and event.

Definition

Namespace: MobileTrack.DataContainers.Cosmos
Assembly: MobileTrack.DataContainers (in MobileTrack.DataContainers.dll) Version: 0.7+45c8d9adb5970d727cceec44a5ed61aea0016e50
Task<List<AlertRuleDto>> GetAlertRulesByDeviceAndEvent(
	Guid companyId,
	Guid deviceId,
	DeviceRequestType deviceEvent,
	CancellationToken cancellationToken = default
)

Parameters

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.

Return Value

TaskListAlertRuleDto
A list of AlertRuleDto items that apply to the device event.

See Also