]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
report: place Upload() on io.systemd.Report.Uploader rather than io.systemd.Report...
authorLennart Poettering <lennart@amutable.com>
Sun, 14 Jun 2026 19:37:31 +0000 (21:37 +0200)
committerLennart Poettering <lennart@amutable.com>
Mon, 15 Jun 2026 18:53:36 +0000 (20:53 +0200)
We really want to use io.systemd.Report for the interface
provided by systemd-report itself, not by its backend. hence, rename the
interface that uploading plugins shall implement to
io.systemd.Report.Uploader.

Note that we ideally should have a varlink interface definition for that
interface. if we had, we'd have noticed that earlier.

man/systemd-report.xml
src/report/report-upload.c

index 560d9406240f0aaca58f63e2a10a4ed7c0c1f9cb..efbff555eea8aa1e4205287de28cd9e7be610f88 100644 (file)
@@ -89,7 +89,7 @@
         <literal>https://</literal> URL is specified with <option>--url=</option>, an HTTP upload will be
         performed to the specified location. Otherwise, any sockets under
         <filename>/run/systemd/metrics-upload/</filename> will be used to call
-        <function>io.systemd.Report.Upload()</function>.</para>
+        <function>io.systemd.Report.Uploader.Upload()</function>.</para>
 
         <para>Match expressions supported by <command>metrics</command> are supported here too.</para>
 
index aea12e62a533577d2359deb30132e11ed1af5c0b..02f15cba61091d19cac0295bfd009a5d4ce1c981 100644 (file)
@@ -249,7 +249,7 @@ static int upload_collected(Context *context, sd_json_variant *report) {
 
         ssize_t jobs = varlink_execute_directory(
                         REPORT_UPLOAD_DIR,
-                        "io.systemd.Report.Upload",
+                        "io.systemd.Report.Uploader.Upload",
                         params,
                         /* more= */ false,
                         arg_network_timeout_usec,