Class TimeseriesClient
- java.lang.Object
-
- com.chrt.api.resources.trackingintegrations.tive.timeseries.TimeseriesClient
-
public class TimeseriesClient extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected ClientOptionsclientOptions
-
Constructor Summary
Constructors Constructor Description TimeseriesClient(ClientOptions clientOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TiveTimeseriesResdataPointsV1(TimeseriesDataPointsV1Request request)Returns raw Tive data points for a shipment within the given time range.TiveTimeseriesResdataPointsV1(TimeseriesDataPointsV1Request request, RequestOptions requestOptions)Returns raw Tive data points for a shipment within the given time range.java.util.Optional<TiveDataPoint1>lastSeenV1(TimeseriesLastSeenV1Request request)Returns the most recent Tive data point for a shipment.java.util.Optional<TiveDataPoint1>lastSeenV1(TimeseriesLastSeenV1Request request, RequestOptions requestOptions)Returns the most recent Tive data point for a shipment.TiveTimeseriesSyncRessyncV1(TimeseriesSyncV1Request request)Fetches new Tive tracker data points from the Tive API for a shipment and stores them in our timeseries collection.TiveTimeseriesSyncRessyncV1(TimeseriesSyncV1Request request, RequestOptions requestOptions)Fetches new Tive tracker data points from the Tive API for a shipment and stores them in our timeseries collection.RawTimeseriesClientwithRawResponse()Get responses with HTTP metadata like headers
-
-
-
Field Detail
-
clientOptions
protected final ClientOptions clientOptions
-
-
Constructor Detail
-
TimeseriesClient
public TimeseriesClient(ClientOptions clientOptions)
-
-
Method Detail
-
withRawResponse
public RawTimeseriesClient withRawResponse()
Get responses with HTTP metadata like headers
-
lastSeenV1
public 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.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 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 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 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 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)
-
-