Metron
constructor(username: String, password: String, cache: SQLiteCache? = null, timeout: Duration = Duration.ofSeconds(30), maxRetries: Int = 5)
Creates a new instance of the Metron
client.
Parameters
username
The username for authentication with the Metron API.
password
The password for authentication with the Metron API.
cache
An optional SQLiteCache instance for caching API responses. Defaults to null
(no caching).
timeout
The maximum duration for HTTP connections. Defaults to 30 seconds.
max Retries
The maximum number of retries for requests that fail due to rate-limiting. Defaults to 5.