Use Up / down for ping
This commit is contained in:
parent
073d47344d
commit
cb716120d0
@ -384,14 +384,11 @@ If you have both set the per-service settings take precedence.
|
|||||||
|
|
||||||
You can choose from the following styles for docker or k8s status and ping: `dot` or `basic`
|
You can choose from the following styles for docker or k8s status and ping: `dot` or `basic`
|
||||||
|
|
||||||
The default is no value, and displays the ping response time in ms. `dot` shows a green dot for a successful ping or healthy status, and `basic` shows either ONLINE or OFFLINE to match the status style of Docker containers. For example:
|
- The default is no value, and displays the ping response time in ms and the docker / k8s container status
|
||||||
|
- `dot` shows a green dot for a successful ping or healthy status.
|
||||||
|
- `basic` shows either UP or DOWN for ping
|
||||||
|
|
||||||
```yaml
|
For example:
|
||||||
- Sonarr:
|
|
||||||
...
|
|
||||||
ping: http://sonarr.host/
|
|
||||||
statusStyle: dot
|
|
||||||
```
|
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
statusStyle: 'dot'
|
statusStyle: 'dot'
|
||||||
|
|||||||
@ -76,11 +76,15 @@
|
|||||||
"unhealthy": "Unhealthy",
|
"unhealthy": "Unhealthy",
|
||||||
"not_found": "Not Found",
|
"not_found": "Not Found",
|
||||||
"exited": "Exited",
|
"exited": "Exited",
|
||||||
"partial": "Partial"
|
"partial": "Partial",
|
||||||
|
"up": "Up",
|
||||||
|
"down": "Down"
|
||||||
},
|
},
|
||||||
"ping": {
|
"ping": {
|
||||||
"error": "Error",
|
"error": "Error",
|
||||||
"ping": "Ping"
|
"ping": "Ping",
|
||||||
|
"down": "Down",
|
||||||
|
"up": "Up"
|
||||||
},
|
},
|
||||||
"emby": {
|
"emby": {
|
||||||
"playing": "Playing",
|
"playing": "Playing",
|
||||||
|
|||||||
@ -25,7 +25,7 @@ export default function Ping({ group, service, style }) {
|
|||||||
statusTitle += ` ${data.status}`
|
statusTitle += ` ${data.status}`
|
||||||
|
|
||||||
if (style === "basic") {
|
if (style === "basic") {
|
||||||
statusText = t("docker.offline")
|
statusText = t("ping.down")
|
||||||
} else {
|
} else {
|
||||||
statusText = data.status
|
statusText = data.status
|
||||||
}
|
}
|
||||||
@ -35,7 +35,7 @@ export default function Ping({ group, service, style }) {
|
|||||||
colorClass = "text-emerald-500/80"
|
colorClass = "text-emerald-500/80"
|
||||||
|
|
||||||
if (style === "basic") {
|
if (style === "basic") {
|
||||||
statusText = t("docker.running")
|
statusText = t("ping.up")
|
||||||
} else {
|
} else {
|
||||||
statusText = ping
|
statusText = ping
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user