blob: 0da55b5c053d1ff3a0e2be45f04e3f35a67cf3f3 [file] [log] [blame]
Matt Spinler93ae7e62019-05-29 11:13:48 -05001description: >
Patrick Williamsa1347412022-12-06 10:56:22 -06002 This interface contains a Create method, which can be implemented to allow
3 creation of xyz.openbmc_project.Logging.Entry objects directly over D-Bus,
4 without needing the errors defined in the *.Error/metadata.yaml files.
Matt Spinler93ae7e62019-05-29 11:13:48 -05005
6methods:
7 - name: Create
8 description: >
9 Create a xyz.openbmc_project.Logging.Entry object.
10 parameters:
Patrick Williams8da396c2022-03-14 14:21:02 -050011 - name: Message
12 type: string
13 description: >
14 The Message property of the event entry.
15 - name: Severity
16 type: enum[xyz.openbmc_project.Logging.Entry.Level]
17 description: >
18 The Severity property of the event entry.
19 - name: AdditionalData
20 type: dict[string, string]
21 description: >
Patrick Williamsa1347412022-12-06 10:56:22 -060022 The AdditionalData property of the event entry. e.g.:
Patrick Williams8da396c2022-03-14 14:21:02 -050023 {
24 "key1": "value1",
25 "key2": "value2"
26 }
27 ends up in AdditionaData like:
28 ["KEY1=value1", "KEY2=value2"]
Matt Spinler6e7634d2019-10-24 15:58:13 -050029
30 - name: CreateWithFFDCFiles
31 description: >
32 Create an xyz.openbmc_project.Logging.Entry object and pass in an
33 array of file descriptors for files that contain FFDC (first failure
34 data capture) data which may be used by event log extensions that
Patrick Williamsa1347412022-12-06 10:56:22 -060035 support storing it with their event logs. The other arguments are the
36 same as with Create(). The FFDC argument is ignored by the base
37 phosphor-logging event logs.
Matt Spinler6e7634d2019-10-24 15:58:13 -050038
39 When the method call is complete the descriptors must be closed and
40 the files can be deleted if desired.
41 parameters:
Patrick Williams8da396c2022-03-14 14:21:02 -050042 - name: Message
43 type: string
44 description: >
45 The Message property of the event entry.
46 - name: Severity
47 type: enum[xyz.openbmc_project.Logging.Entry.Level]
48 description: >
49 The Severity property of the event entry.
50 - name: AdditionalData
51 type: dict[string, string]
52 description: >
Patrick Williamsa1347412022-12-06 10:56:22 -060053 The AdditionalData property of the event entry. e.g.:
Patrick Williams8da396c2022-03-14 14:21:02 -050054 {
55 "key1": "value1",
56 "key2": "value2"
57 }
58 ends up in AdditionaData like:
59 ["KEY1=value1", "KEY2=value2"]
60 - name: FFDC
61 type: array[struct[enum[self.FFDCFormat], byte, byte, unixfd]]
62 description: >
Patrick Williamsa1347412022-12-06 10:56:22 -060063 File descriptors for any files containing FFDC, along with
64 metadata about the contents:
Matt Spinler6e7634d2019-10-24 15:58:13 -050065
Patrick Williams8da396c2022-03-14 14:21:02 -050066 FFDCFormat- The format type of the contained data.
67 subType - The format subtype, used for the 'Custom' type.
Patrick Williamsa1347412022-12-06 10:56:22 -060068 version - The version of the data format, used for the
69 'Custom'
Patrick Williams8da396c2022-03-14 14:21:02 -050070 type.
71 unixfd - The file descriptor to the data file.
Matt Spinler6e7634d2019-10-24 15:58:13 -050072
Patrick Williamsa1347412022-12-06 10:56:22 -060073 e.g.: [
74 {"xyz.openbmc_project.Logging.Create.FFDCFormat.JSON", 0, 0,
75 5},
76 {"xyz.openbmc_project.Logging.Create.FFDCFormat.Custom", 1, 2,
77 6} ]
Matt Spinler6e7634d2019-10-24 15:58:13 -050078
79enumerations:
80 - name: FFDCFormat
81 description: >
Patrick Williams8da396c2022-03-14 14:21:02 -050082 format types
Matt Spinler6e7634d2019-10-24 15:58:13 -050083 values:
Patrick Williams8da396c2022-03-14 14:21:02 -050084 - name: JSON
85 description: >
86 Valid fully formed JSON, e.g. {"foo":"bar"}
87 - name: CBOR
88 description: >
89 Valid CBOR (Concise Binary Object Representation)
90 - name: Text
91 description: >
92 ASCII text
93 - name: Custom
94 description: >
95 Something other than the above formats