Skip to content

IoT TS Aggregates Client for Java

Introduction

The IoT TS Aggregates Java client allows you to query aggregated time series data.

Refer to IoT TS Aggregates for more information about the service.

Hint

In the IoT context, assets are referred to as entity and aspects as propertyset.

TS Aggregates operations

Client name: AggregatesClient

Read aggregated time series

Read aggregated time series data. This aggregation is applicable for a single asset and aspect that is available within the provided time range.

Note

A query can only return up to 200 aggregate intervals in one response.
Aggregates can only be created from up to 5,000 raw time series entries.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
// Construct the AggregatesClient object
AggregatesClient aggregateClient =  AggregatesClient.builder()
                                            .mindsphereCredentials(credentials)
                                            .restClientConfig(config)
                                            .build();

List<Aggregates> aggregateList = null;
try {
  aggregateList = aggregateClient.getAggregateTimeseries(entity, propertyset, from, to, intervalValue, intervalUnit, select);
} catch (MindsphereException e) {
  // Exception handling
}

Any questions left?

Ask the community


Except where otherwise noted, content on this site is licensed under the MindSphere Development License Agreement.