AgentContext

internal class AgentContext(remoteAddr: String)(source)

Represents a single connected agent on the proxy side.

Each agent connection creates an AgentContext that holds the agent's identity (ID, name, hostname), validity state, activity timestamps, and a queue of pending scrape requests. The proxy writes scrape requests into the queue and the gRPC streaming RPC drains them. When the agent disconnects or is evicted, the context is invalidated and all pending requests are drained and closed.

Parameters

remoteAddr

the remote address of the connected agent

See also

Constructors

Link copied to clipboard
constructor(remoteAddr: String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
internal val desc: String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun assignProperties(request: RegisterAgentRequest)
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun markActivityTime(isRequest: Boolean)
Link copied to clipboard
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
suspend fun writeScrapeRequest(scrapeRequest: ScrapeRequestWrapper)