C# 클래스 Microsoft.Azure.Devices.Applications.RemoteMonitoring.DeviceAdmin.Infrastructure.Repository.AlertsRepository

An IAlertsRepository implementation with functionality for accessing Alerts-related data.
상속: IAlertsRepository
파일 보기 프로젝트 열기: Azure/azure-iot-remote-monitoring 1 사용 예제들

공개 메소드들

메소드 설명
AlertsRepository ( IConfigurationProvider configProvider, IBlobStorageClientFactory blobStorageClientFactory ) : Microsoft.Azure.Devices.Applications.RemoteMonitoring.Common.Configurations

Initializes a new instance of the AlertsRepository class.

LoadLatestAlertHistoryAsync ( System.DateTime minTime, int minResults ) : Task>

Loads the latest Device Alert History items.

비공개 메소드들

메소드 설명
BuildModelForItem ( string ruleOutput, string deviceId, string value, string time ) : Microsoft.Azure.Devices.Applications.RemoteMonitoring.DeviceAdmin.Infrastructure.Models.AlertHistoryItemModel
ProduceAlertHistoryItem ( System.Dynamic.ExpandoObject expandoObject ) : Microsoft.Azure.Devices.Applications.RemoteMonitoring.DeviceAdmin.Infrastructure.Models.AlertHistoryItemModel
ProduceAlertHistoryItemsAsync ( Stream stream ) : List

메소드 상세

AlertsRepository() 공개 메소드

Initializes a new instance of the AlertsRepository class.
public AlertsRepository ( IConfigurationProvider configProvider, IBlobStorageClientFactory blobStorageClientFactory ) : Microsoft.Azure.Devices.Applications.RemoteMonitoring.Common.Configurations
configProvider IConfigurationProvider /// The IConfigurationProvider implementation with which the new /// instance will be initialized. ///
blobStorageClientFactory IBlobStorageClientFactory
리턴 Microsoft.Azure.Devices.Applications.RemoteMonitoring.Common.Configurations

LoadLatestAlertHistoryAsync() 공개 메소드

Loads the latest Device Alert History items.
public LoadLatestAlertHistoryAsync ( System.DateTime minTime, int minResults ) : Task>
minTime System.DateTime /// The cutoff time for Device Alert History items that should be returned. ///
minResults int /// The minimum number of items that should be returned, if possible, /// after or otherwise. ///
리턴 Task>