)]}'
{
  "commit": "1948c54cde9eae96f84df0f306ca3c39de30d265",
  "tree": "768a0661ae17184f90f75fba08512528382d538b",
  "parents": [
    "d0fe6af604ab5e8bbeb56f7e80bbd21195ba28dc"
  ],
  "author": {
    "name": "Michael Shen",
    "email": "gpgpgp@google.com",
    "time": "Tue Sep 12 08:22:00 2023 +0000"
  },
  "committer": {
    "name": "Michael Shen",
    "email": "gpgpgp@google.com",
    "time": "Sat Sep 23 07:22:32 2023 +0000"
  },
  "message": "dbus_handler: Add DBus interfaces to export boot info\n\nAdding DBus interfaces for adding/getting checkpoint and duration from\nDBus.\n\nTested:\n```\n\\# DBus interfaces are added\nbmc:~# busctl introspect \\\ncom.google.gbmc.boot_time_monitor \\\n/xyz/openbmc_project/time/boot/host0\nNAME                                     TYPE      SIGNATURE  RESULT/VALUE  FLAGS\n......\nxyz.openbmc_project.Time.Boot.Checkpoint interface -          -             -\n.GetCheckpointList                       method    -          a(sxx)        -\n.RebootComplete                          method    -          -             -\n.SetCheckpoint                           method    sxx        -             -\nxyz.openbmc_project.Time.Boot.Duration   interface -          -             -\n.GetAdditionalDurations                  method    -          a(sx)         -\n.SetDuration                             method    sx         -             -\nxyz.openbmc_project.Time.Boot.Statistic  interface -          -             -\n.IsRebooting                             property  b          true          emits-change\n\n\\# Try to call `SetCheckpoint`\nbmc:~# busctl call \\\ncom.google.gbmc.boot_time_monitor \\\n/xyz/openbmc_project/time/boot/host0 \\\nxyz.openbmc_project.Time.Boot.Checkpoint \\\nSetCheckpoint sxx \"checkpoint1\" 0 0\n\n\\# Check if it set correctly\nbmc:~# busctl --verbose call \\\ncom.google.gbmc.boot_time_monitor \\\n/xyz/openbmc_project/time/boot/host0 \\\nxyz.openbmc_project.Time.Boot.Checkpoint \\\nGetCheckpointList\nMESSAGE \"a(sxx)\" {\n        ARRAY \"(sxx)\" {\n                STRUCT \"sxx\" {\n                        STRING \"ShutDownEnd\";\n                        INT64 1693915751696;\n                        INT64 39660;\n                };\n                STRUCT \"sxx\" {\n                        STRING \"PowerOffEnd\";\n                        INT64 1693915885932;\n                        INT64 173900;\n                };\n                STRUCT \"sxx\" {\n                        STRING \"checkpoint1\";\n                        INT64 1693919548471;\n                        INT64 3740020;\n                };\n        };\n};\n```\n\nGoogle-Bug-Id: 296530445\nChange-Id: Iee6fd10190d275195959cace296e9b2795beb2d0\nSigned-off-by: Michael Shen \u003cgpgpgp@google.com\u003e\n",
  "tree_diff": [
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "847125ea364c1671eaa72fa9e14da25a0f157407",
      "new_mode": 33188,
      "new_path": "include/dbus_handler.hpp"
    },
    {
      "type": "modify",
      "old_id": "adf9c2cf1657378121ba01e258b2bf3025baff5d",
      "old_mode": 33188,
      "old_path": "include/host_monitor_app.hpp",
      "new_id": "7cd678cf85af314a8d03406f34d88195cb44cbd7",
      "new_mode": 33188,
      "new_path": "include/host_monitor_app.hpp"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "8dcf28174f16d38d7176b91ffe74fba5cfefabad",
      "new_mode": 33188,
      "new_path": "src/dbus_handler.cpp"
    },
    {
      "type": "modify",
      "old_id": "a434a1f1e6df7bfec2682c11a0bc2e7c6d8c192c",
      "old_mode": 33188,
      "old_path": "src/host_monitor_app.cpp",
      "new_id": "8918f895b244bad66528a38a894abf80759c1bf6",
      "new_mode": 33188,
      "new_path": "src/host_monitor_app.cpp"
    },
    {
      "type": "modify",
      "old_id": "9ee614d88be8f042f7f6d9651292a5c3ae5e2841",
      "old_mode": 33188,
      "old_path": "src/meson.build",
      "new_id": "d9983aee39492e44847e878445d266f1a01b5607",
      "new_mode": 33188,
      "new_path": "src/meson.build"
    }
  ]
}
