| { |
| select: { |
| total: "INSPECT:bootstrap/bar:root/data_stats/stats:total_bytes", |
| used: "INSPECT:bootstrap/bar:root/data_stats/stats:used_bytes", |
| foo_health: [ |
| "INSPECT:missing:root:not_found", |
| "INSPECT:not_found:root/fuchsia.inspect.Health:status", |
| ], |
| }, |
| eval: { |
| c1: "other::m == 1", // JSON5: Comments work, don't need so many quotes. |
| c2: "other::m > 1", |
| ratio: "used / (total + 0.0)", |
| small: "ratio > 0.001", |
| tiny: "ratio > 0.00000001", |
| not_healthy: "foo_health != 'OK'", |
| }, |
| act: { |
| act2: { |
| type: "Warning", |
| trigger: "c2", |
| print: "yes on A!", |
| }, |
| some_disk: { |
| type: "Warning", |
| trigger: "tiny", |
| print: "Used some of disk", |
| }, |
| more_disk: { |
| type: "Warning", |
| trigger: "small", |
| print: "Used more of the disk", |
| }, |
| unhealthy: { |
| type: "Warning", |
| trigger: "not_healthy", |
| print: "foo is not healthy", |
| }, |
| }, |
| test: { |
| trial1: { |
| yes: [ |
| "some_disk", |
| "more_disk", |
| ], |
| no: [], |
| values: { |
| total: 10, |
| used: 9, |
| }, |
| }, |
| trial2: { |
| yes: [ |
| "unhealthy", |
| ], |
| no: [], |
| values: { |
| foo_health: "UNHEALTHY", |
| }, |
| }, |
| }, |
| } |