public class ConfigInputDetail extends Object implements Serializable
| 构造器和说明 |
|---|
ConfigInputDetail() |
ConfigInputDetail(ConfigInputDetail inputDetail) |
ConfigInputDetail(String logPath,
String filePattern,
String logType,
String logBeginRegex,
String regex,
ArrayList<String> key,
String timeFormat,
boolean localStorage) |
public ConfigInputDetail(String logPath, String filePattern, String logType, String logBeginRegex, String regex, ArrayList<String> key, String timeFormat, boolean localStorage)
logPath - the log file dir pathfilePattern - the file name pattern, e.g "access.log" , "access.log.*"logType - the log data type , currently it only support
"common_reg_log", and "apsara_log"logBeginRegex - the regex used to check if one line match the start of a logregex - the regex used to parse the log data if log type is
"common_reg_log", leave to "" if log type is "apsara_log"key - the key lists for every captured value using the defined
regex, "time" must be one name in keytimeFormat - the time format to parse the "time" fieldlocalStorage - true if save the log data if failed to send to the sls serverpublic ConfigInputDetail()
public ConfigInputDetail(ConfigInputDetail inputDetail)
public net.sf.json.JSONObject ToJsonObject()
public String ToJsonString()
public void FromJsonObject(net.sf.json.JSONObject inputDetail)
throws LogException
LogExceptionpublic void FromJsonString(String inputDetailString) throws LogException
LogExceptionpublic String GetFilePattern()
public void SetFilePattern(String filePattern)
public void SetKey(net.sf.json.JSONArray key)
throws LogException
LogExceptionpublic boolean GetLocalStorage()
public void SetLocalStorage(boolean localStorage)
public String GetLogBeginRegex()
public void SetLogBeginRegex(String logBeginRegex)
public String GetLogPath()
public void SetLogPath(String logPath)
public String GetLogType()
public void SetLogType(String logType)
public String GetRegex()
public void SetRegex(String regex)
public String GetTimeFormat()
public void SetTimeFormat(String timeFormat)
public void SetFilterRegex(net.sf.json.JSONArray filterRegex)
throws LogException
LogExceptionpublic void SetFilterKey(net.sf.json.JSONArray filterKey)
throws LogException
LogExceptionpublic String GetTopicFormat()
public void SetTopicFormat(String topicFormat)
Copyright © 2016. All Rights Reserved.