public class TimeSeriesClient extends MindsphereAPIClient
| Modifier and Type | Class and Description |
|---|---|
static class |
TimeSeriesClient.ClientBuilder |
MindsphereAPIClient.Builder<T extends MindsphereAPIClient.Builder<T>>credentials, restClientConfig, restTemplate| Constructor and Description |
|---|
TimeSeriesClient(TimeSeriesClient.ClientBuilder builder) |
| Modifier and Type | Method and Description |
|---|---|
static TimeSeriesClient.ClientBuilder |
builder() |
void |
deleteTimeseries(DeleteTimeseriesRequest requestObject)
delete time series
Delete time series data for a single entity and propertyset within a given time range.
|
void |
deleteTimeseries(String entity,
String propertysetname,
String from,
String to)
delete time series
Delete time series data for a single entity and propertyset within a given time range.
|
List<Timeseries> |
getTimeseries(GetTimeseriesRequest requestObject)
read time series
Read time series data for a single entity and propertyset.
|
List<Timeseries> |
getTimeseries(String entity,
String propertysetname,
String from,
String to,
Integer limit,
String select)
read time series
Read time series data for a single entity and propertyset.
|
void |
putTimeseries(PutTimeseriesRequest requestObject)
write or update time series
Write or update time series data for a single entity and propertyset.
|
void |
putTimeseries(String entity,
String propertysetname,
List<Timeseries> timeseries)
write or update time series
Write or update time series data for a single entity and propertyset.
|
public TimeSeriesClient(TimeSeriesClient.ClientBuilder builder)
public static TimeSeriesClient.ClientBuilder builder()
public void deleteTimeseries(DeleteTimeseriesRequest requestObject) throws MindsphereException
204 - deleted
400 - bad request
401 - unauthorized
404 - entity not found
0 - unexpected error
requestObject - - Object of type DeleteTimeseriesRequest {Parameters are entity*,propertysetname*,from*,to*}MindsphereException - if an error occurs while attempting to invoke the APIpublic List<Timeseries> getTimeseries(GetTimeseriesRequest requestObject) throws MindsphereException
200 - array of time series
400 - bad request, in case of invalid parameters
401 - unauthorized
404 - entity not found
0 - unexpected error
requestObject - - Object of type GetTimeseriesRequest {Parameters are entity*,propertysetname*,from,to,limit,select}MindsphereException - if an error occurs while attempting to invoke the APIpublic void putTimeseries(PutTimeseriesRequest requestObject) throws MindsphereException
204 - timeseries written
400 - bad request, in case the resource is invalid
401 - unauthorized
404 - entity not found
429 - too many requests
0 - unexpected error
requestObject - - Object of type PutTimeseriesRequest {Parameters are entity*,propertysetname*,timeseries*}MindsphereException - if an error occurs while attempting to invoke the APIpublic void deleteTimeseries(String entity,
String propertysetname,
String from,
String to)
throws MindsphereException
204 - deleted
400 - bad request
401 - unauthorized
404 - entity not found
0 - unexpected error
entity - unique identifier of the entitypropertysetname - name of the propertysetfrom - beginning of the timerange to delete (exclusive)to - end of the timerange to delete (inclusive)MindsphereException - if an error occurs while attempting to invoke the APIpublic List<Timeseries> getTimeseries(String entity, String propertysetname, String from, String to, Integer limit, String select) throws MindsphereException
200 - array of time series
400 - bad request, in case of invalid parameters
401 - unauthorized
404 - entity not found
0 - unexpected error
entity - unique identifier of the entitypropertysetname - name of the propertysetfrom - beginning of the time range to read (exclusive)to - end of the time range to read (inclusive)limit - maximum number of entries to readselect - select fields to returnMindsphereException - if an error occurs while attempting to invoke the APIpublic void putTimeseries(String entity,
String propertysetname,
List<Timeseries> timeseries)
throws MindsphereException
204 - timeseries written
400 - bad request, in case the resource is invalid
401 - unauthorized
404 - entity not found
429 - too many requests
0 - unexpected error
entity - unique identifier of the entitypropertysetname - name of the propertysettimeseries - time series data arrayMindsphereException - if an error occurs while attempting to invoke the API