Skip to content

RequestFactory

Xavier F. Gouchet edited this page Sep 4, 2024 · 1 revision

fun interface RequestFactory

Factory used to build requests from the batches stored.

Types

RequestFactory.Companion

Functions

create

abstract fun create(context: DatadogContext, batchData: List<RawBatchEvent>, batchMetadata: ByteArray?): Request?

Creates a request for the given batch.

Parameters
context Datadog SDK context.
batchData Raw data of the batch.
batchMetadata Raw metadata of the batch.
Throws
Exception in case the request could not be created.
Clone this wiki locally