Uses of Class
codes.grow.packages.betterstack.BetterStackConfig.Builder
Packages that use BetterStackConfig.Builder
-
Uses of BetterStackConfig.Builder in codes.grow.packages.betterstack
Methods in codes.grow.packages.betterstack that return BetterStackConfig.BuilderModifier and TypeMethodDescriptionstatic BetterStackConfig.BuilderBetterStackConfig.builder()Starts an empty builder (every field at its default).BetterStackConfig.Builder.connectTimeout(Duration d) Sets the connect timeout (default 10 s).BetterStackConfig.Builder.encoding(IngestEncoding encoding) Sets the ingest body encoding (defaultIngestEncoding.JSON).Fills every field that was not set explicitly from the environment:GROW_BETTER_STACK_LOGS_<NAME>first, then the vendor variables (BETTERSTACK_INGESTING_URL,BETTERSTACK_INGESTING_HOST,BETTERSTACK_SOURCE_TOKEN,BETTERSTACK_QUERY_URL,BETTERSTACK_QUERY_HOST,BETTERSTACK_QUERY_USERNAME,BETTERSTACK_QUERY_PASSWORD,BETTERSTACK_SOURCE_TABLE).Adds a header sent with every request to both hosts.Sets request hooks.Sets the logger (default silent).Sets an explicit proxy URL; environment proxies (HTTPS_PROXY) are never used.BetterStackConfig.Builder.queryPassword(Secret password) Sets the SQL connection password (HTTP Basic, query host only).BetterStackConfig.Builder.queryPassword(String password) Sets the SQL connection password.Sets the SQL query base URL (ClickHouse HTTP interface).BetterStackConfig.Builder.queryUsername(String username) Sets the SQL connection username.BetterStackConfig.Builder.requestTimeout(Duration d) Sets the per-attempt timeout (default 30 s).BetterStackConfig.Builder.retry(RetryPolicy retry) Sets the retry policy (defaultRetryPolicy.defaults()).BetterStackConfig.Builder.sourceTable(String sourceTable) Sets the default collection (t1234_myapp).BetterStackConfig.Builder.sourceToken(Secret token) Sets the source token (sent asAuthorization: Bearerto the ingesting host only).BetterStackConfig.Builder.sourceToken(String token) Sets the source token.BetterStackConfig.Builder.tls(TlsOptions tls) Sets the TLS options; environment TLS variables are then ignored.BetterStackConfig.toBuilder()Returns a builder pre-filled with this configuration.BetterStackConfig.Builder.totalTimeout(Duration d) Sets the total timeout per call including retries (default 120 s).Sets the ingest base URL: the source's ingesting host (s1234.eu-nbg-2.betterstackdata.combecomeshttps://…).BetterStackConfig.Builder.userAgentSuffix(String suffix) Sets the text appended to theUser-Agent.