mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-02-07 04:03:51 +00:00
fix: cleanup JSdocs
This commit is contained in:
parent
783e228406
commit
5cff54e52d
1 changed files with 8 additions and 0 deletions
|
@ -12,6 +12,7 @@ class SIPMonitorType extends MonitorType {
|
|||
* @param {Heartbeat} heartbeat Monitor heartbeat to update
|
||||
* @param {UptimeKumaServer} server Uptime Kuma server
|
||||
* @returns {Promise<void>}
|
||||
* @throws Will throw an error if the command execution encounters any error.
|
||||
*/
|
||||
async check(monitor, heartbeat, _server) {
|
||||
try {
|
||||
|
@ -25,6 +26,7 @@ class SIPMonitorType extends MonitorType {
|
|||
/**
|
||||
* Runs Sipsak options ping
|
||||
* @param {string} hostname SIP server address to send options.
|
||||
* @param {number} port SIP server port
|
||||
* @param {number} timeout timeout of options reply
|
||||
* @returns {Promise<string>} A Promise that resolves to the output of the Sipsak options ping
|
||||
* @throws Will throw an error if the command execution encounters any error.
|
||||
|
@ -41,6 +43,12 @@ class SIPMonitorType extends MonitorType {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param {string} res
|
||||
* @param {object} heartbeat
|
||||
* @returns {void}
|
||||
*/
|
||||
parseSipsakResponse(res, heartbeat){
|
||||
let lines = res.split("\n");
|
||||
for (let line of lines){
|
||||
|
|
Loading…
Add table
Reference in a new issue