C# Класс Microsoft.Azure.Devices.Applications.RemoteMonitoring.DeviceAdmin.Infrastructure.Repository.AlertsRepository

An IAlertsRepository implementation with functionality for accessing Alerts-related data.
Наследование: IAlertsRepository
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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>