public class TimeSeriesOperationsClient
extends MindsphereAPIClient
Modifier and Type | Class and Description |
---|---|
static class |
TimeSeriesOperationsClient.ClientBuilder |
Constructor and Description |
---|
TimeSeriesOperationsClient(TimeSeriesOperationsClient.ClientBuilder builder) |
Modifier and Type | Method and Description |
---|---|
static TimeSeriesOperationsClient.ClientBuilder |
builder() |
MultiStatusError |
createOrUpdateTimeseries(CreateOrUpdateTimeseriesRequest requestObject)
Create or update time series data for mutiple unique asset-aspect (entity-property set) combinations.
|
void |
createOrUpdateTimeseriesData(CreateOrUpdateTimeseriesDataRequest requestObject)
Create or update time series data
Create or update time series data for one combination of an asset (entity) and an(a) aspect (property set).
|
void |
deleteTimeseries(DeleteUpdatedTimeseriesRequest requestObject)
Delete time series data
Delete time series data for one combination of an asset (entity) and an(a) aspect (property set).
|
List<TimeSeriesDataItem> |
retrieveTimeseries(RetrieveTimeseriesRequest requestObject)
Retrieve time series data
Retrieve time series data for one combination of an asset (entity) and an(a) aspect (property set).
|
public TimeSeriesOperationsClient(TimeSeriesOperationsClient.ClientBuilder builder)
public static TimeSeriesOperationsClient.ClientBuilder builder()
public MultiStatusError createOrUpdateTimeseries(CreateOrUpdateTimeseriesRequest requestObject) throws MindsphereException
202 - Accepted. For each asset-aspect (entity-property set) pair a validation error can occur. In case an error is returned for an asset-aspect (entity-property set) pair, time series data for that pair is not considered. Possible validation errors are - 400: bad request schema for asset-aspect (entity-property set) pair - 404: asset (entity) and/or aspect(proprety set) not found - 429: asset-aspect (entity-property set) pair could not be processed due to too many requests - default: unexpected error while processing
400 - Bad request, in case the resource is invalid. Few of the validations as below - - Total number of records for all assets (entites) and aspects (property sets) should not be more than 100 per PUT request. - Total size of the payload should not be more than 100 kb per PUT request. - Payload cannot have more than 5 asset (entity)/aspect (property set) combinations.
401 - unauthorized
0 - Other error with any status code and response body format.
requestObject
- - Object of type CreateOrUpdateTimeseriesRequest {Parameters are timeseries*}MindsphereException
- if an error occurs while attempting to invoke the APIpublic void createOrUpdateTimeseriesData(CreateOrUpdateTimeseriesDataRequest requestObject) throws MindsphereException
204 - timeseries written
400 - bad request
401 - unauthorized
404 - asset (entity) not found
429 - too many requests
0 - Other error with any status code and response body format.
requestObject
- - Object of type CreateOrUpdateTimeseriesDataRequest {Parameters are entityId*,propertySetName*,timeseries*}MindsphereException
- if an error occurs while attempting to invoke the APIpublic void deleteTimeseries(DeleteUpdatedTimeseriesRequest requestObject) throws MindsphereException
204 - deleted
400 - bad request
401 - unauthorized
404 - asset (entity) not found
0 - Other error with any status code and response body format.
requestObject
- - Object of type DeleteTimeseriesRequest {Parameters are entityId*,propertySetName*,from*,to*}MindsphereException
- if an error occurs while attempting to invoke the APIpublic List<TimeSeriesDataItem> retrieveTimeseries(RetrieveTimeseriesRequest requestObject) throws MindsphereException
200 - array of time series
400 - bad request
401 - unauthorized
404 - asset (entity) not found
0 - Other error with any status code and response body format.
requestObject
- - Object of type RetrieveTimeseriesRequest {Parameters are entityId*,propertySetName*,from,to,limit,select,sort,latestValue}MindsphereException
- if an error occurs while attempting to invoke the API