The chat responses are generated using Generative AI technology for intuitive search and may not be entirely accurate. They are not intended as professional advice. For full details, including our use rights, privacy practices and potential export control restrictions, please refer to our Generative AI Service Terms of Use and Generative AI Service Privacy Information. As this is a test version, please let us know if something irritating comes up. Like you get recommended a chocolate fudge ice cream instead of an energy managing application. If that occurs, please use the feedback button in our contact form!
Skip to content
Insights Hub and Industrial IoT

Insights Hub drives smart manufacturing through the industrial Internet of Things. Gain actionable insights with asset and operational data and improve your processes.

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: TimeseriesAggregateClient

Read Aggregated Time Series Data¶

Read aggregated time series data. This method returns aggregated data of a single aspect of an asset from the specified 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.

// 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
}