@Configuration public class AgentExtConfigBean extends Object
Modifier and Type | Field and Description |
---|---|
String |
autoBackConsoleCron
自动备份控制台日志,防止日志文件过大,目前暂只支持linux 不停服备份 如果配置none 则不自动备份 默认10分钟扫描一次
|
String |
autoBackSize
当文件多大时自动备份
|
boolean |
whitelistDirectoryCheckStartsWith
白名单路径是否判断包含关系
|
Constructor and Description |
---|
AgentExtConfigBean() |
Modifier and Type | Method and Description |
---|---|
cn.hutool.http.HttpRequest |
createServerRequest(String openApi)
创建请求对象
|
String |
getAgentId() |
String |
getAgentUrl()
获取当前的url
|
static AgentExtConfigBean |
getInstance()
单例
|
int |
getLogSaveDays()
配置错误或者没有,默认是7天
|
String |
getServerToken() |
String |
getServerUrl() |
@Value(value="${whitelistDirectory.checkStartsWith:true}") public boolean whitelistDirectoryCheckStartsWith
@Value(value="${log.autoBackConsoleCron:0 0/10 * * * ?}") public String autoBackConsoleCron
@Value(value="${log.autoBackSize:50MB}") public String autoBackSize
FileSize
public String getAgentId()
public String getServerUrl()
public String getServerToken()
public String getAgentUrl()
public cn.hutool.http.HttpRequest createServerRequest(String openApi)
openApi
- urlServerOpenApi
public int getLogSaveDays()
public static AgentExtConfigBean getInstance()
Copyright © 2017–2019. All rights reserved.