Class AsyncTimeseriesClient
- java.lang.Object
-
- com.chrt.api.resources.trackingintegrations.tive.timeseries.AsyncTimeseriesClient
-
public class AsyncTimeseriesClient extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected ClientOptionsclientOptions
-
Constructor Summary
Constructors Constructor Description AsyncTimeseriesClient(ClientOptions clientOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.concurrent.CompletableFuture<TiveTimeseriesRes>dataPointsV1(TimeseriesDataPointsV1Request request)Returns raw Tive data points for a shipment within the given time range.java.util.concurrent.CompletableFuture<TiveTimeseriesRes>dataPointsV1(TimeseriesDataPointsV1Request request, RequestOptions requestOptions)Returns raw Tive data points for a shipment within the given time range.java.util.concurrent.CompletableFuture<java.util.Optional<TiveDataPoint1>>lastSeenV1(TimeseriesLastSeenV1Request request)Returns the most recent Tive data point for a shipment.java.util.concurrent.CompletableFuture<java.util.Optional<TiveDataPoint1>>lastSeenV1(TimeseriesLastSeenV1Request request, RequestOptions requestOptions)Returns the most recent Tive data point for a shipment.java.util.concurrent.CompletableFuture<TiveTimeseriesSyncRes>syncV1(TimeseriesSyncV1Request request)Fetches new Tive tracker data points from the Tive API for a shipment and stores them in our timeseries collection.java.util.concurrent.CompletableFuture<TiveTimeseriesSyncRes>syncV1(TimeseriesSyncV1Request request, RequestOptions requestOptions)Fetches new Tive tracker data points from the Tive API for a shipment and stores them in our timeseries collection.AsyncRawTimeseriesClientwithRawResponse()Get responses with HTTP metadata like headers
-
-
-
Field Detail
-
clientOptions
protected final ClientOptions clientOptions
-
-
Constructor Detail
-
AsyncTimeseriesClient
public AsyncTimeseriesClient(ClientOptions clientOptions)
-
-
Method Detail
-
withRawResponse
public AsyncRawTimeseriesClient withRawResponse()
Get responses with HTTP metadata like headers
-
lastSeenV1
public java.util.concurrent.CompletableFuture<java.util.Optional<TiveDataPoint1>> lastSeenV1(TimeseriesLastSeenV1Request request)
Returns the most recent Tive data point for a shipment. Scoped to the caller's organization. | authz: min_org_role=operator | () -> (TiveDataPoint1 | None)
-
lastSeenV1
public java.util.concurrent.CompletableFuture<java.util.Optional<TiveDataPoint1>> lastSeenV1(TimeseriesLastSeenV1Request request, RequestOptions requestOptions)
Returns the most recent Tive data point for a shipment. Scoped to the caller's organization. | authz: min_org_role=operator | () -> (TiveDataPoint1 | None)
-
dataPointsV1
public java.util.concurrent.CompletableFuture<TiveTimeseriesRes> dataPointsV1(TimeseriesDataPointsV1Request request)
Returns raw Tive data points for a shipment within the given time range. Scoped to the caller's organization. | authz: min_org_role=operator | () -> (TiveTimeseriesRes)
-
dataPointsV1
public java.util.concurrent.CompletableFuture<TiveTimeseriesRes> dataPointsV1(TimeseriesDataPointsV1Request request, RequestOptions requestOptions)
Returns raw Tive data points for a shipment within the given time range. Scoped to the caller's organization. | authz: min_org_role=operator | () -> (TiveTimeseriesRes)
-
syncV1
public java.util.concurrent.CompletableFuture<TiveTimeseriesSyncRes> syncV1(TimeseriesSyncV1Request request)
Fetches new Tive tracker data points from the Tive API for a shipment and stores them in our timeseries collection. Uses a high-water-mark strategy with overlap dedup to prevent duplicate inserts. | authz: min_org_role=operator | () -> (TiveTimeseriesSyncRes)
-
syncV1
public java.util.concurrent.CompletableFuture<TiveTimeseriesSyncRes> syncV1(TimeseriesSyncV1Request request, RequestOptions requestOptions)
Fetches new Tive tracker data points from the Tive API for a shipment and stores them in our timeseries collection. Uses a high-water-mark strategy with overlap dedup to prevent duplicate inserts. | authz: min_org_role=operator | () -> (TiveTimeseriesSyncRes)
-
-