Package co.arago.hiro.client.rest
Class GraphAPI.PostTimeseriesCommand
- java.lang.Object
-
- co.arago.hiro.client.rest.AuthenticatedAPIHandler.APIRequestConf<T,R>
-
- co.arago.hiro.client.rest.AuthenticatedAPIHandler.SendBodyAPIRequestConf<GraphAPI.PostTimeseriesCommand,HiroMessage>
-
- co.arago.hiro.client.rest.GraphAPI.PostTimeseriesCommand
-
- Enclosing class:
- GraphAPI
public class GraphAPI.PostTimeseriesCommand extends AuthenticatedAPIHandler.SendBodyAPIRequestConf<GraphAPI.PostTimeseriesCommand,HiroMessage>
post timeseries to an entityAPI POST /api/graph/[version]/{ogit/_id}/values
- See Also:
- API Documentation
-
-
Field Summary
-
Fields inherited from class co.arago.hiro.client.rest.AuthenticatedAPIHandler.SendBodyAPIRequestConf
body
-
Fields inherited from class co.arago.hiro.client.rest.AuthenticatedAPIHandler.APIRequestConf
fragment, headers, httpRequestTimeout, maxRetries, path, query
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedPostTimeseriesCommand(java.lang.String ogitId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HiroMessageexecute()protected GraphAPI.PostTimeseriesCommandself()voidsetTimeseries(HiroTimeseriesListMessage hiroTimeseriesListMessage)Set the timeseries.-
Methods inherited from class co.arago.hiro.client.rest.AuthenticatedAPIHandler.SendBodyAPIRequestConf
setBody, setJsonBodyFromMap, setJsonBodyFromMessage
-
Methods inherited from class co.arago.hiro.client.rest.AuthenticatedAPIHandler.APIRequestConf
setHttpHeaders, setHttpRequestTimeout, setMaxRetries, setUrlFragment, setUrlQuery
-
-
-
-
Method Detail
-
setTimeseries
public void setTimeseries(HiroTimeseriesListMessage hiroTimeseriesListMessage)
Set the timeseries.- Parameters:
hiroTimeseriesListMessage- The message for the body.
-
self
protected GraphAPI.PostTimeseriesCommand self()
- Specified by:
selfin classAuthenticatedAPIHandler.APIRequestConf<GraphAPI.PostTimeseriesCommand,HiroMessage>
-
execute
public HiroMessage execute() throws HiroException, java.io.IOException, java.lang.InterruptedException
- Specified by:
executein classAuthenticatedAPIHandler.APIRequestConf<GraphAPI.PostTimeseriesCommand,HiroMessage>- Returns:
HiroMessageThe Json Response. Can be empty when status code is 202.- Throws:
HiroException- When the call returns a http status error.java.io.IOException- When the call got an IO error.java.lang.InterruptedException- When the call gets interrupted.
-
-