Class SlardarMonitorProp
-
- All Implemented Interfaces:
@ConfigurationProperties(value = SlardarMonitorProp.Key) public class SlardarMonitorProp
Setting of app builtin simple monitoring, `-1` in the threshold value means ignore.
- Since:
2021-02-14
trydofor
-
-
Field Summary
Fields Modifier and Type Field Description public final static StringKeypublic final static StringKey$cronpublic Stringcronpublic final static StringKey$hookpublic final static StringKey$logpublic Map<String, LogMetric.Rule>logpublic final static StringKey$jvmpublic JvmMetric.Rulejvmpublic LogConfviewpublic final static StringKey$viewpublic StringdingNoticepublic final static StringKey$dingNotice
-
Constructor Summary
Constructors Constructor Description SlardarMonitorProp()
-
Method Summary
Modifier and Type Method Description StringgetCron()voidsetCron(String cron)Map<String, LogMetric.Rule>getLog()voidsetLog(Map<String, LogMetric.Rule> log)JvmMetric.RulegetJvm()voidsetJvm(JvmMetric.Rule jvm)LogConfgetView()alert file viewer voidsetView(LogConf view)alert file viewer StringgetDingNotice()use DingTalk bot by default with the key `monitor`. voidsetDingNotice(String dingNotice)use DingTalk bot by default with the key `monitor`. LinkedHashSet<String>genRuleKey()generate all log's rule keys booleanisHook()whether to send notice for the start and stop of its own jvm hook booleanequals(@Nullable() Object o)inthashCode()StringtoString()voidsetHook(boolean hook)whether to send notice for the start and stop of its own jvm hook -
-
Method Detail
-
getLog
Map<String, LogMetric.Rule> getLog()
-
setLog
void setLog(Map<String, LogMetric.Rule> log)
-
getJvm
JvmMetric.Rule getJvm()
-
setJvm
void setJvm(JvmMetric.Rule jvm)
-
getDingNotice
String getDingNotice()
use DingTalk bot by default with the key `monitor`. See wings-dingnotice-79.properties for details
-
setDingNotice
void setDingNotice(String dingNotice)
use DingTalk bot by default with the key `monitor`. See wings-dingnotice-79.properties for details
-
genRuleKey
LinkedHashSet<String> genRuleKey()
generate all log's rule keys
-
isHook
boolean isHook()
whether to send notice for the start and stop of its own jvm hook
-
hashCode
int hashCode()
-
setHook
void setHook(boolean hook)
whether to send notice for the start and stop of its own jvm hook
-
-
-
-