IoT TS Aggregates Java 客户端
简介
IoT TS Aggregates Java 客户端允许您查询聚合的时间序列数据。有关该服务的更多信息,请参见 IoT TS Aggregates。
提示
在 IoT 环境中,assets 指 entity
,aspects 指 propertyset
。
TS Aggregates 操作
客户端名称:TimeseriesAggregateClient
读取聚合的时间序列数据
读取聚合时间序列数据。此方法从指定的时间范围返回 asset 单个 aspect 的聚合数据。
说明
查询在一个响应中最多只能返回200个聚合间隔。
聚合最多只能从5000个原始时间序列条目创建。
// Construct the TimeseriesAggregateClient object
TimeseriesAggregateClient timeseriesAggregateClient = TimeseriesAggregateClient.builder()
.mindsphereCredentials(credentials)
.restClientConfig(config)
.build();
List<AggregateDetails> aggregateDetailsList = null;
try {
aggregateDetailsList = timeseriesAggregateClient.getAggregateTimeseries(entity, propertySet, from, to, intervalValue, intervalUnit, select);
} catch (MindsphereException e) {
// Exception handling
}
还有问题?
除非另行声明,该网站内容遵循MindSphere开发许可协议.
Last update: June 26, 2019