mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-23 14:54:05 +00:00
Update bean model backend
Updates appropriate values async when editing the SNMP monitor
This commit is contained in:
parent
9c8024c7fa
commit
9d28fcff1a
2 changed files with 10 additions and 0 deletions
|
@ -161,6 +161,10 @@ class Monitor extends BeanModel {
|
||||||
kafkaProducerMessage: this.kafkaProducerMessage,
|
kafkaProducerMessage: this.kafkaProducerMessage,
|
||||||
screenshot,
|
screenshot,
|
||||||
remote_browser: this.remote_browser,
|
remote_browser: this.remote_browser,
|
||||||
|
snmpOid: this.snmpOid,
|
||||||
|
snmpCondition: this.snmpCondition,
|
||||||
|
snmpControlValue: this.snmpControlValue,
|
||||||
|
snmpVersion: this.snmpVersion,
|
||||||
};
|
};
|
||||||
|
|
||||||
if (includeSensitiveData) {
|
if (includeSensitiveData) {
|
||||||
|
@ -190,6 +194,7 @@ class Monitor extends BeanModel {
|
||||||
tlsCert: this.tlsCert,
|
tlsCert: this.tlsCert,
|
||||||
tlsKey: this.tlsKey,
|
tlsKey: this.tlsKey,
|
||||||
kafkaProducerSaslOptions: JSON.parse(this.kafkaProducerSaslOptions),
|
kafkaProducerSaslOptions: JSON.parse(this.kafkaProducerSaslOptions),
|
||||||
|
snmpCommunityString: this.snmpCommunityString,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -830,6 +830,11 @@ let needSetup = false;
|
||||||
monitor.kafkaProducerAllowAutoTopicCreation;
|
monitor.kafkaProducerAllowAutoTopicCreation;
|
||||||
bean.gamedigGivenPortOnly = monitor.gamedigGivenPortOnly;
|
bean.gamedigGivenPortOnly = monitor.gamedigGivenPortOnly;
|
||||||
bean.remote_browser = monitor.remote_browser;
|
bean.remote_browser = monitor.remote_browser;
|
||||||
|
bean.snmpVersion = monitor.snmpVersion;
|
||||||
|
bean.snmpCommunityString = monitor.snmpCommunityString;
|
||||||
|
bean.snmpOid = monitor.snmpOid;
|
||||||
|
bean.snmpCondition = monitor.snmpCondition;
|
||||||
|
bean.snmpControlValue = monitor.snmpControlValue;
|
||||||
|
|
||||||
bean.validate();
|
bean.validate();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue