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

A repository for Device telemetry data.
Наследование: IDeviceTelemetryRepository
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
DeviceTelemetryRepository ( IConfigurationProvider configProvider, IBlobStorageClientFactory blobStorageClientFactory ) : System

Initializes a new instance of the DeviceTelemetryRepository 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.

Приватные методы

Метод Описание
LoadBlobTelemetryModels ( Stream stream, IList telemetryFields ) : List
LoadBlobTelemetrySummaryModels ( Stream stream, System.DateTime lastModifiedTime ) : List

Описание методов

DeviceTelemetryRepository() публичный Метод

Initializes a new instance of the DeviceTelemetryRepository class.
public DeviceTelemetryRepository ( IConfigurationProvider configProvider, IBlobStorageClientFactory blobStorageClientFactory ) : System
configProvider IConfigurationProvider /// The IConfigurationProvider implementation with which to initialize /// the new instance. ///
blobStorageClientFactory IBlobStorageClientFactory
Результат 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