com.github.fedorchuck.developers_notification.configuration
Class Config
java.lang.Object
com.github.fedorchuck.developers_notification.configuration.Config
public class Config
- extends java.lang.Object
Configuration class for this library.
This class is mapped with JSON:
{
"messenger": [
{
"name": "",
"token": "",
"channel": ""
}
],
"monitoring": {
"period": 10,
"unit": "seconds",
"max_ram": 90,
"max_disk": 90,
"disk_consumption_rate": 2
},
"project_name": "Where this library will be invoked",
"protection_from_spam": "true",
"show_whole_log_details": true,
"connect_timeout": 5000,
"user_agent": "Mozilla/5.0"
}
Author: Volodymyr Fedorchuk
- Since:
- 0.2.0
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Config
public Config()
getMessenger
public java.util.List<Messenger> getMessenger()
getMonitoring
public Monitoring getMonitoring()
getShowWholeLogDetails
public java.lang.Boolean getShowWholeLogDetails()
getConnectTimeout
public java.lang.Integer getConnectTimeout()
getUserAgent
public java.lang.String getUserAgent()
getProjectName
public java.lang.String getProjectName()
getProtectionFromSpam
public java.lang.Boolean getProtectionFromSpam()
getPublicToString
public java.lang.String getPublicToString()
- It create string with "public" fields
- Returns:
- string with "public" fields
- Since:
- 0.2.0
getPrivateToString
public java.lang.String getPrivateToString()
- It create string with "sensitive data"
- Returns:
- string with "sensitive data"
- Since:
- 0.3.0