public interface DeviceDataManager
| 限定符和类型 | 接口和说明 |
|---|---|
static interface |
DeviceDataManager.PropertyValue |
static interface |
DeviceDataManager.TagValue |
| 限定符和类型 | 方法和说明 |
|---|---|
reactor.core.publisher.Mono<DeviceDataManager.PropertyValue> |
getFirstProperty(String deviceId,
String propertyId)
获取第一次上报属性的数据
|
reactor.core.publisher.Mono<Long> |
getFirstPropertyTime(String deviceId)
获取首次属性上报的时间,如果从未上报则返回
Mono.empty() |
reactor.core.publisher.Mono<DeviceDataManager.PropertyValue> |
getLastProperty(String deviceId,
String propertyId)
获取最后上报的属性数据
|
reactor.core.publisher.Mono<DeviceDataManager.PropertyValue> |
getLastProperty(String deviceId,
String propertyId,
long baseTime)
获取基准时间前的最新数据
|
reactor.core.publisher.Mono<Long> |
getLastPropertyTime(String deviceId,
long baseTime)
获取基准时间前设备最后上报属性的时间,如果从未上报过则返回
Mono.empty() |
default reactor.core.publisher.Mono<Map<String,Object>> |
getTagMap(String deviceId,
String... tagIdList)
获取标签值并转为Map,key为标签ID,值为标签值
|
default reactor.core.publisher.Flux<DeviceDataManager.TagValue> |
getTags(String deviceId,
String... tagIdList)
获取标签值,如果不传入tags参数或者参数为空,则获取全部标签
|
reactor.core.publisher.Mono<DeviceDataManager.PropertyValue> getLastProperty(@Nonnull String deviceId, @Nonnull String propertyId)
deviceId - 设备IDpropertyId - 属性IDreactor.core.publisher.Mono<DeviceDataManager.PropertyValue> getLastProperty(@Nonnull String deviceId, @Nonnull String propertyId, long baseTime)
deviceId - 设备IDpropertyId - 属性IDbaseTime - 基准时间reactor.core.publisher.Mono<DeviceDataManager.PropertyValue> getFirstProperty(@Nonnull String deviceId, @Nonnull String propertyId)
deviceId - 设备IDpropertyId - 属性IDreactor.core.publisher.Mono<Long> getLastPropertyTime(@Nonnull String deviceId, long baseTime)
Mono.empty()deviceId - 设备IDreactor.core.publisher.Mono<Long> getFirstPropertyTime(@Nonnull String deviceId)
Mono.empty()deviceId - 设备IDdefault reactor.core.publisher.Flux<DeviceDataManager.TagValue> getTags(@Nonnull String deviceId, String... tagIdList)
deviceId - 设备IDtagIdList - 标签IDCopyright © 2019–2022. All rights reserved.