Package ai.whylabs.services.whylogs.core

Types

Link copied to clipboard
data class BufferedLogRequest(    val request: LogRequest,     val sessionTime: Instant,     val windowStartTime: Instant)
Link copied to clipboard
data class DebugActorOptions(    val maxErrors: Int,     val env: IEnvVars,     val profileStore: ProfileStore)
Link copied to clipboard
class DebugInfoManager
Link copied to clipboard
sealed class DebugInfoMessage
Link copied to clipboard
data class LogRequest(    val datasetId: String,     val timestamp: Long? = null,     val tags: Map<String, String>?,     val single: Map<String, Any>?,     val multiple: MultiLog?)
Link copied to clipboard
data class Message(    val attributes: Map<String, String>? = null,     val data: String,     val messageId: String,     val publishTime: String,     val orderingKey: String?)
Link copied to clipboard
data class MultiLog(val columns: List<String>, val data: List<List<Any>>)
Link copied to clipboard
data class ProfileEntry(    val profile: DatasetProfile,     val orgId: String,     val datasetId: String)

Container class that caches the dataset profiles and associated metadata for each request.

Link copied to clipboard
data class ProfileKey(    val orgId: String,     val datasetId: String,     val normalizedTags: List<Pair<String, String>>,     val sessionTime: Instant,     val windowStartTime: Instant)
Link copied to clipboard
class ProfileStore
Link copied to clipboard
data class PubSubEnvelope(val message: Message, val subscription: String)
Link copied to clipboard
class SongbirdClientManager(envVars: IEnvVars = EnvVars.instance)
Link copied to clipboard
class WhyLogsController(    envVars: IEnvVars = EnvVars.instance,     profileManager: WhyLogsProfileManager = WhyLogsProfileManager(envVars = envVars),     debugInfo: DebugInfoManager = DebugInfoManager.instance)
Link copied to clipboard
class WhyLogsProfileManager(    executorService: ScheduledExecutorService = Executors.newScheduledThreadPool(1),     currentTime: Instant = Instant.now(),     envVars: IEnvVars = EnvVars.instance,     writer: Writer = envVars.getProfileWriter(),     debugInfo: DebugInfoManager = DebugInfoManager.instance,     profileStore: ProfileStore = ProfileStore.instance,     writeOnStop: Boolean = true)
Link copied to clipboard
data class WriteProfilesResponse(val profilesWritten: Int, val profilePaths: List<String>)
Link copied to clipboard
data class WriteProfilesResult(val profilesWritten: Int, val profilePaths: List<String>)

Functions

Link copied to clipboard
fun DatasetProfile.merge(request: LogRequest, ignored: Set<String> = emptySet())
Link copied to clipboard
fun DatasetProfile.mergeNested(    nestedValue: Map<String, Any>,     ignored: Set<String>,     prefix: String = "")
Link copied to clipboard
fun randomAlphaNumericId(len: Int = 6): String

Properties

Link copied to clipboard
const val DatasetIdTag: String
Link copied to clipboard
const val OrgIdTag: String
Link copied to clipboard
const val SegmentTagPrefix: String