Search in sources :

Example 1 with TelemetryRequest

use of com.adobe.target.delivery.v1.model.TelemetryRequest in project target-java-sdk by adobe.

the class TelemetryService method addTelemetry.

public void addTelemetry(TargetDeliveryRequest deliveryRequest, TimingTool timer, TargetDeliveryResponse targetDeliveryResponse, double parsingTime, long responseSize) {
    TelemetryEntry telemetryEntry = createTelemetryEntry(deliveryRequest, targetDeliveryResponse, timer.timeEnd(TIMING_EXECUTE_REQUEST));
    if (telemetryEntry == null) {
        return;
    }
    telemetryEntry.setParsing(parsingTime);
    TelemetryRequest telemetryRequest = new TelemetryRequest();
    telemetryRequest.setResponseSize(responseSize);
    telemetryEntry.setRequest(telemetryRequest);
    storedTelemetries.add(telemetryEntry);
}
Also used : TelemetryRequest(com.adobe.target.delivery.v1.model.TelemetryRequest) TelemetryEntry(com.adobe.target.delivery.v1.model.TelemetryEntry)

Aggregations

TelemetryEntry (com.adobe.target.delivery.v1.model.TelemetryEntry)1 TelemetryRequest (com.adobe.target.delivery.v1.model.TelemetryRequest)1