mirror of
https://github.com/fleetdm/fleet
synced 2026-05-22 16:39:01 +00:00
Noticed this had the wrong table example. Updated mounts table schema example with an example from my PSU MacAdmins presentation.
9 lines
287 B
YAML
9 lines
287 B
YAML
name: mounts
|
|
examples: >-
|
|
Returns the drive free space in gigabytes and as percentage.
|
|
|
|
```
|
|
|
|
SELECT path, type, ROUND((blocks_available * blocks_size * 10e-10), 2) AS free_gb, ROUND ((blocks_available * 1.0 / blocks * 1.0) * 100, 2) AS free_pc FROM mounts WHERE path = '/';
|
|
|
|
```
|