Package com.targomo.client.api.request
Class EdgeStatisticsRequest
java.lang.Object
com.targomo.client.api.request.EdgeStatisticsRequest
-
Constructor Summary
ConstructorsConstructorDescriptionEdgeStatisticsRequest(String serviceUrl, String serviceKey, int edgeStatisticCollectionId, EdgeStatisticsRequestOptions requestOptions) Use default client implementation with specified options and default headers Default client usesClientBuilderEdgeStatisticsRequest(javax.ws.rs.client.Client client, String serviceUrl, String serviceKey, int edgeStatisticCollectionId, EdgeStatisticsRequestOptions requestOptions) Use a custom client implementation with specified options and default headersEdgeStatisticsRequest(javax.ws.rs.client.Client client, String serviceUrl, String serviceKey, int edgeStatisticCollectionId, EdgeStatisticsRequestOptions requestOptions, javax.ws.rs.core.MultivaluedMap<String, Object> headers) Use a custom client implementation with specified options, method, and headers -
Method Summary
-
Constructor Details
-
EdgeStatisticsRequest
public EdgeStatisticsRequest(javax.ws.rs.client.Client client, String serviceUrl, String serviceKey, int edgeStatisticCollectionId, EdgeStatisticsRequestOptions requestOptions) Use a custom client implementation with specified options and default headers -
EdgeStatisticsRequest
public EdgeStatisticsRequest(String serviceUrl, String serviceKey, int edgeStatisticCollectionId, EdgeStatisticsRequestOptions requestOptions) Use default client implementation with specified options and default headers Default client usesClientBuilder -
EdgeStatisticsRequest
public EdgeStatisticsRequest(javax.ws.rs.client.Client client, String serviceUrl, String serviceKey, int edgeStatisticCollectionId, EdgeStatisticsRequestOptions requestOptions, javax.ws.rs.core.MultivaluedMap<String, Object> headers) Use a custom client implementation with specified options, method, and headers- Parameters:
client- Client implementation to be usedserviceUrl- The url for the serviceserviceKey- The api keyedgeStatisticCollectionId- Id of the statistic collectionrequestOptions- Options to be usedheaders- List of custom http headers to be used
-
-
Method Details
-
get
public Map<String,Map<String, get() throws TargomoClientException, com.fasterxml.jackson.core.JsonProcessingExceptionDouble>> - Returns:
- map of location id to a map of edge statistic id to statistic value
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- In case the returned response is not parsableTargomoClientException- In case of other errors
-