Skip to content

IoT TS Aggregates Client for Java

Introduction

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

See IoT TS Aggregates for more information about the service.

TS Aggregates Operations

Client name: TimeseriesAggregateClient

Read Aggregated Time Series

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

Note

The maximum number of aggregated intervals that will be returned is 200.

Note

The maximum number of records that need to be queried to satisfy the response is 5000.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
// 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
}

Any questions left?

Ask the community


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