Configuration Options Reference
The following options can be configured during initialization.
| Option | Description | Default | Type |
|---|---|---|---|
TenantId | Unique ID for customer identification | Required | String |
DomainName | Domain of the server receiving requests | Required | String |
ServerUrl | Detection server URL | Required | String |
ProtectionUrl | Block page (Captcha, Deny, etc.) URL | Required | String |
HttpRequestTimeout | HTTP request timeout (ms) to detection server | 1000 | int |
LogLevel | Log level (DEBUG, INFO, WARN, ERROR) | "ERROR" | String |
Option Details
TenantId
Unique ID for customer identification. You can check it in the BotManager console.
.TenantId("{tenant-id}") // Required
DomainName
Domain of the server receiving requests. Use the domain selected in the BotManager console.
.DomainName("{domain-name}") // Required
ServerUrl
Detection server URL. Default value is https://botmanager.stclab.com/api/v1/macro.
.ServerUrl("https://botmanager.stclab.com/api/v1/macro") // Required
ProtectionUrl
Block page (Captcha, Deny, etc.) URL. Default value is https://cdn-botmanager.stclab.com.
.ProtectionUrl("https://cdn-botmanager.stclab.com") // Required
HttpRequestTimeout
HTTP request timeout time (milliseconds) to the detection server. Default value is 1000ms.
.HttpRequestTimeout(1000) // Optional, default: 1000
It is recommended to increase the value in unstable network environments.
LogLevel
Sets the log level. Possible values: DEBUG, INFO, WARN, ERROR. Default value is ERROR.
.LogLevel("ERROR") // Optional, default: "ERROR"