blob: 74a84afe1db50556738117473ef17442b1b44293 [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"]
Patrick Williams90cfce12024-09-27 14:32:07 -040029 returns:
30 - name: Entry
31 type: object_path
32 description: >
33 The resulting object_path of the newly created Entry
Matt Spinler6e7634d2019-10-24 15:58:13 -050034
35 - name: CreateWithFFDCFiles
36 description: >
37 Create an xyz.openbmc_project.Logging.Entry object and pass in an
38 array of file descriptors for files that contain FFDC (first failure
39 data capture) data which may be used by event log extensions that
Patrick Williamsa1347412022-12-06 10:56:22 -060040 support storing it with their event logs. The other arguments are the
41 same as with Create(). The FFDC argument is ignored by the base
42 phosphor-logging event logs.
Matt Spinler6e7634d2019-10-24 15:58:13 -050043
44 When the method call is complete the descriptors must be closed and
45 the files can be deleted if desired.
46 parameters:
Patrick Williams8da396c2022-03-14 14:21:02 -050047 - name: Message
48 type: string
49 description: >
50 The Message property of the event entry.
51 - name: Severity
52 type: enum[xyz.openbmc_project.Logging.Entry.Level]
53 description: >
54 The Severity property of the event entry.
55 - name: AdditionalData
56 type: dict[string, string]
57 description: >
Patrick Williamsa1347412022-12-06 10:56:22 -060058 The AdditionalData property of the event entry. e.g.:
Patrick Williams8da396c2022-03-14 14:21:02 -050059 {
60 "key1": "value1",
61 "key2": "value2"
62 }
63 ends up in AdditionaData like:
64 ["KEY1=value1", "KEY2=value2"]
65 - name: FFDC
66 type: array[struct[enum[self.FFDCFormat], byte, byte, unixfd]]
67 description: >
Patrick Williamsa1347412022-12-06 10:56:22 -060068 File descriptors for any files containing FFDC, along with
69 metadata about the contents:
Matt Spinler6e7634d2019-10-24 15:58:13 -050070
Patrick Williams8da396c2022-03-14 14:21:02 -050071 FFDCFormat- The format type of the contained data.
72 subType - The format subtype, used for the 'Custom' type.
Patrick Williamsa1347412022-12-06 10:56:22 -060073 version - The version of the data format, used for the
74 'Custom'
Patrick Williams8da396c2022-03-14 14:21:02 -050075 type.
76 unixfd - The file descriptor to the data file.
Matt Spinler6e7634d2019-10-24 15:58:13 -050077
Patrick Williamsa1347412022-12-06 10:56:22 -060078 e.g.: [
79 {"xyz.openbmc_project.Logging.Create.FFDCFormat.JSON", 0, 0,
80 5},
81 {"xyz.openbmc_project.Logging.Create.FFDCFormat.Custom", 1, 2,
82 6} ]
Matt Spinler6e7634d2019-10-24 15:58:13 -050083
84enumerations:
85 - name: FFDCFormat
86 description: >
Patrick Williams8da396c2022-03-14 14:21:02 -050087 format types
Matt Spinler6e7634d2019-10-24 15:58:13 -050088 values:
Patrick Williams8da396c2022-03-14 14:21:02 -050089 - name: JSON
90 description: >
91 Valid fully formed JSON, e.g. {"foo":"bar"}
92 - name: CBOR
93 description: >
94 Valid CBOR (Concise Binary Object Representation)
95 - name: Text
96 description: >
97 ASCII text
98 - name: Custom
99 description: >
100 Something other than the above formats
Patrick Williams6c25fd02024-01-17 11:52:54 -0600101
102service_names:
103 - default: xyz.openbmc_project.Logging
104
105paths:
106 - instance: /xyz/openbmc_project/logging