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);
}
Aggregations