report: implement facts interface

This commit is contained in:
Yaping Li
2026-04-01 15:34:45 +02:00
committed by Zbigniew Jędrzejewski-Szmek
parent e11158af38
commit f60d5985e5
11 changed files with 636 additions and 13 deletions
+20
View File
@@ -35,3 +35,23 @@ varlinkctl info /run/systemd/report/io.systemd.Network
varlinkctl list-methods /run/systemd/report/io.systemd.Network
varlinkctl --more call /run/systemd/report/io.systemd.Network io.systemd.Metrics.List {}
varlinkctl --more call /run/systemd/report/io.systemd.Network io.systemd.Metrics.Describe {}
# Test facts verbs
"$REPORT" facts
"$REPORT" facts -j
"$REPORT" facts --no-legend
"$REPORT" describe-facts
"$REPORT" describe-facts -j
"$REPORT" describe-facts --no-legend
# Test facts with match filters
"$REPORT" facts io
"$REPORT" facts io.systemd piff
"$REPORT" facts piff
"$REPORT" describe-facts io
"$REPORT" describe-facts io.systemd piff
"$REPORT" describe-facts piff
# Test facts via direct Varlink call on existing socket
varlinkctl --more call /run/systemd/report/io.systemd.Manager io.systemd.Facts.List {}
varlinkctl --more call /run/systemd/report/io.systemd.Manager io.systemd.Facts.Describe {}