C# 클래스 Microsoft.Azure.Devices.Applications.RemoteMonitoring.DeviceAdmin.Infrastructure.BusinessLogic.DeviceTelemetryLogic

An IDeviceTelemetryLogic implementation that has business logic class for Device telemetry-related functionality.
상속: IDeviceTelemetryLogic
파일 보기 프로젝트 열기: Azure/azure-iot-remote-monitoring 1 사용 예제들

공개 메소드들

메소드 설명
DeviceTelemetryLogic ( IDeviceTelemetryRepository deviceTelemetryRepository ) : System

Initializes a new instance of the DeviceTelemetryLogic class.

LoadLatestDeviceTelemetryAsync ( string deviceId, IList telemetryFields, System.DateTime minTime ) : Task>

Loads the most recent Device telemetry.

LoadLatestDeviceTelemetrySummaryAsync ( string deviceId, System.DateTime minTime ) : Task

Loads the most recent DeviceTelemetrySummaryModel for a specified Device.

ProduceGetLatestDeviceAlertTime ( IEnumerable alertHistoryModels ) : DateTime?>.Func

Produces a delegate for getting the time of a specified Device's most recent alert.

메소드 상세

DeviceTelemetryLogic() 공개 메소드

Initializes a new instance of the DeviceTelemetryLogic class.
public DeviceTelemetryLogic ( IDeviceTelemetryRepository deviceTelemetryRepository ) : System
deviceTelemetryRepository IDeviceTelemetryRepository /// The IDeviceTelemetryRepository implementation that the new /// instance will use. ///
리턴 System

LoadLatestDeviceTelemetryAsync() 공개 메소드

Loads the most recent Device telemetry.
public LoadLatestDeviceTelemetryAsync ( string deviceId, IList telemetryFields, System.DateTime minTime ) : Task>
deviceId string /// The ID of the Device for which telemetry should be returned. ///
telemetryFields IList
minTime System.DateTime /// The minimum time of record of the telemetry that should be returned. ///
리턴 Task>

LoadLatestDeviceTelemetrySummaryAsync() 공개 메소드

Loads the most recent DeviceTelemetrySummaryModel for a specified Device.
public LoadLatestDeviceTelemetrySummaryAsync ( string deviceId, System.DateTime minTime ) : Task
deviceId string /// The ID of the Device for which a telemetry summary model should be /// returned. ///
minTime System.DateTime /// If provided the the minimum time stamp of the summary data that should /// be loaded. ///
리턴 Task

ProduceGetLatestDeviceAlertTime() 공개 메소드

Produces a delegate for getting the time of a specified Device's most recent alert.
public ProduceGetLatestDeviceAlertTime ( IEnumerable alertHistoryModels ) : DateTime?>.Func
alertHistoryModels IEnumerable /// A collection of AlertHistoryItemModel, representing all alerts that /// should be considered. ///
리턴 DateTime?>.Func