meson: add json file into meson
A later commit will delete the current .json file in favor of the new
one located in the data dir
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Change-Id: I236bffd1bfac40c588d6ff5ba9b977e0479e5b58
diff --git a/data/meson.build b/data/meson.build
new file mode 100644
index 0000000..bd6873e
--- /dev/null
+++ b/data/meson.build
@@ -0,0 +1,10 @@
+data = [
+ 'phosphor-target-monitor-default.json',
+]
+
+foreach d : data
+ install_data(
+ d,
+ install_dir: datadir
+ )
+endforeach
diff --git a/data/phosphor-target-monitor-default.json b/data/phosphor-target-monitor-default.json
new file mode 100644
index 0000000..22fe2c9
--- /dev/null
+++ b/data/phosphor-target-monitor-default.json
@@ -0,0 +1,29 @@
+{
+ "targets" : {
+ "multi-user.target" : {
+ "errorsToMonitor": ["default"],
+ "errorToLog": "xyz.openbmc_project.State.BMC.Error.MultiUserTargetFailure"},
+ "obmc-chassis-poweron@0.target" : {
+ "errorsToMonitor": ["default"],
+ "errorToLog": "xyz.openbmc_project.State.Chassis.Error.PowerOnFailure"},
+ "obmc-chassis-poweroff@0.target" : {
+ "errorsToMonitor": ["default"],
+ "errorToLog": "xyz.openbmc_project.State.Chassis.Error.PowerOffFailure"},
+ "obmc-host-start@0.target" : {
+ "errorsToMonitor": ["default"],
+ "errorToLog": "xyz.openbmc_project.State.Host.Error.HostStartFailure"},
+ "obmc-host-startmin@0.target" : {
+ "errorsToMonitor": ["default"],
+ "errorToLog": "xyz.openbmc_project.State.Host.Error.HostStartMinFailure"},
+ "obmc-host-shutdown@0.target" : {
+ "errorsToMonitor": ["default"],
+ "errorToLog": "xyz.openbmc_project.State.Host.Error.HostShutdownFailure"},
+ "obmc-host-stop@0.target" : {
+ "errorsToMonitor": ["default"],
+ "errorToLog": "xyz.openbmc_project.State.Host.Error.HostStopFailure"},
+ "obmc-host-reboot@0.target" : {
+ "errorsToMonitor": ["default"],
+ "errorToLog": "xyz.openbmc_project.State.Host.Error.HostRebootFailure"}
+ }
+}
+