mirror of
https://github.com/bastienwirtz/homer.git
synced 2026-01-23 02:15:09 +00:00
Display round-trip time on the subtitle of the custom service ping (#800)
* Show rtt on subtitle of custom service ping * Display subtitle when showRtt is false and handle offline service RTT - Ensure the subtitle is still displayed even if `showRtt` is set to false. - When `showRtt` is true and the service is not online, display "N/A" instead of omitting the RTT value.
This commit is contained in:
parent
1febbadfba
commit
18360e223f
2 changed files with 24 additions and 2 deletions
|
|
@ -145,16 +145,17 @@ API key can be generated in Settings > Administration > Auth Tokens
|
|||
|
||||
## Ping
|
||||
|
||||
For Ping you need to set the type to Ping and provide a url. By default the HEAD method is used but it can be configured to use GET using the optional `method` property.
|
||||
For Ping you need to set the type to Ping and provide a url. By default the HEAD method is used but it can be configured to use GET using the optional `method` property. You can also choose to show the round trip time (RTT) by setting `showRtt` to true, default is false. The RTT will be displayed in the subtitle section.
|
||||
|
||||
```yaml
|
||||
- name: "Awesome app"
|
||||
type: Ping
|
||||
logo: "assets/tools/sample.png"
|
||||
subtitle: "Bookmark example"
|
||||
tag: "app"
|
||||
url: "https://www.reddit.com/r/selfhosted/"
|
||||
method: "head"
|
||||
subtitle: "Bookmark example"
|
||||
# showRtt: true
|
||||
```
|
||||
|
||||
## Prometheus
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue