You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
✨ Optionally allow the widget to filter on StatPing Group and to display in a more compact view.
* Add widget option: `groupId`. StatPing services are filtered for the given group.
* Add widget options: `showChart` and `showInfo`. Initially hide the chart and info summary.
* Add buttons to show/hide chart and info sections.
* Update widget documentation.
**`hostname`** | `string` | Required | The URL to your StatPing instance, without a trailing slash
1353
+
**`groupId`** | `number` | Optional | If provided, only Services in the given group are displayed. Defaults to `0` in which case all services are displayed.
1354
+
**`showChart`** | `boolean`| Optional | If provided and `false` then charts are not displayed. Defaults to `true`.
1355
+
**`showInfo`** | `boolean`| Optional | If provided and `false` then information summaries are not displayed. Defaults to `true`.
1353
1356
1354
1357
##### Example
1355
1358
@@ -1358,6 +1361,18 @@ Displays the current and recent uptime of your running services, via a self-host
1358
1361
options:
1359
1362
hostname: http://192.168.130.1:8080
1360
1363
```
1364
+
or
1365
+
```yaml
1366
+
- type: stat-ping
1367
+
options:
1368
+
hostname: http://192.168.130.1:8080
1369
+
groupId: 3
1370
+
showChart: false
1371
+
showInfo: false
1372
+
```
1373
+
You can use multiple StatPing widgets with different `groupId`s.
1374
+
1375
+
Note, the Group Id is not directly visible in SttatPing UI, you can inspect the group select HTML element or the API response to find out.
0 commit comments