All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.com.algolia.search.endpoint.EndpointInsights.kt Maven / Gradle / Ivy

package com.algolia.search.endpoint

import com.algolia.search.model.insights.InsightsEvent
import com.algolia.search.transport.RequestOptions
import io.ktor.client.statement.HttpResponse

/**
 * [Documentation][https://www.algolia.com/doc/api-client/methods/insights/?language=kotlin]
 */
public interface EndpointInsights {

    /**
     * Send one [InsightsEvent].
     */
    public suspend fun sendEvent(event: InsightsEvent, requestOptions: RequestOptions? = null): HttpResponse

    /**
     * Send multiple [InsightsEvent].
     */
    public suspend fun sendEvents(events: List, requestOptions: RequestOptions? = null): HttpResponse
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy