blob: 1bde9b7ed991d3601bfda04eb69101eb4f765580 [file] [log] [blame]
Adriana Kobylak8a0fd712016-11-14 16:05:52 -06001description: >
Patrick Williamsa1347412022-12-06 10:56:22 -06002 Implement to provide event/error entry attributes. This interface should be
3 instantiated for the phosphor::logging namespace. This interface is a
4 collection of objects, therefore it is required to implement
5 org.freedesktop.DBus.ObjectManager on the logging namespace root.
Patrick Williams84591a22024-01-17 11:43:14 -06006 Optionally, implement xyz.openbmc_project.Object.Delete to allow the
7 deletion of individual entries.
Adriana Kobylak8a0fd712016-11-14 16:05:52 -06008properties:
9 - name: Id
10 type: uint32
11 description: >
12 The error event entry id number.
Adriana Kobylak06e5b232017-01-22 14:36:55 -060013 - name: Timestamp
14 type: uint64
15 description: >
16 Commit timestamp of the error event entry in milliseconds since 1970.
Adriana Kobylak8a0fd712016-11-14 16:05:52 -060017 - name: Severity
18 type: enum[self.Level]
19 description: >
20 The severity of the error event entry.
21 - name: Message
22 type: string
23 description: >
24 The message description of the error event entry.
Vijay Lobo0ae40522021-05-11 18:51:45 -050025 - name: EventId
26 type: string
27 description: >
28 An implementation-dependent unique identifier for this event. This
29 property is different from Id in the sense that Id is a unique number
30 per event but EventId is an optional identifier that is associated
31 with the event. The content of this property is implementation
32 defined.
Adriana Kobylak8a0fd712016-11-14 16:05:52 -060033 - name: AdditionalData
Patrick Williams25b1bcb2024-12-11 14:38:45 -050034 type: dict[string, string]
Adriana Kobylak8a0fd712016-11-14 16:05:52 -060035 description: >
Patrick Williams25b1bcb2024-12-11 14:38:45 -050036 Additional information in the form of metadata field strings {VAR,val}
Patrick Williamsbfcb5d02024-11-22 11:05:16 -050037 - name: AdditionalData2
38 type: dict[string, string]
39 description: >
40 Additional information in the form of metadata field strings {VAR,val}
Vijay Lobo39bdb472021-05-13 07:47:54 -050041 - name: Resolution
42 type: string
43 description: >
44 Suggestion for error resolution of this event.
Deepak Kodihalli9bd626a2017-03-27 03:32:25 -050045 - name: Resolved
46 type: boolean
47 description: >
48 Error resolution status. Indicate if the problem being reported by
49 this error log has been resolved. This will start out 'false' by
50 default. Setting this to 'true' will NOT result in the error log being
51 deleted.
Arya K Padman6e9b38a2024-08-26 03:45:25 -050052 errors:
53 - xyz.openbmc_project.Common.Error.Unavailable
Vijay Lobo208b4e42021-05-06 14:56:35 -050054 - name: ServiceProviderNotify
Vijay F Lobo3c7b8582021-10-08 11:41:40 -050055 type: enum[self.Notify]
56 default: NotSupported
Vijay Lobo208b4e42021-05-06 14:56:35 -050057 description: >
Vijay F Lobo3c7b8582021-10-08 11:41:40 -050058 If this property value is set to 'Notify', the service provider must
59 be notified about the Entry. If the value is set to 'Inhibit' then
60 notification is not sent to the service provider. An event of this
61 type requires a service action to correct the event, such as replacing
62 the hardware part or updating code.
Matt Spinler05dd9682020-02-25 12:34:52 -060063 - name: UpdateTimestamp
64 type: uint64
65 description: >
66 The timestamp when any property was last modified, in milliseconds
Patrick Williamsa1347412022-12-06 10:56:22 -060067 since the epoch (1 Jan 1970 00:00:00 UTC). As only the Resolved
68 property has a reason to change, a value that doesn't match the
69 Timestamp property's value (which indicates when the log was created)
70 would indicate that Resolved was changed.
Adriana Kobylak8a0fd712016-11-14 16:05:52 -060071
72enumerations:
73 - name: Level
74 description: >
75 Possible severity levels for an error log entry.
76 values:
Patrick Williams8da396c2022-03-14 14:21:02 -050077 - name: Emergency
78 description: >
79 System is unusable.
80 - name: Alert
81 description: >
82 Should be corrected immediately.
83 - name: Critical
84 description: >
85 Critical condition.
86 - name: Error
87 description: >
88 Error condition.
89 - name: Warning
90 description: >
91 An error may occur if action is not taken.
92 - name: Notice
93 description: >
94 Unusual condition, but not an error.
95 - name: Informational
96 description: >
97 Normal operational message that does not require action.
98 - name: Debug
99 description: >
100 Information useful to developers for debugging the application.
Adriana Kobylak8a0fd712016-11-14 16:05:52 -0600101
Vijay F Lobo3c7b8582021-10-08 11:41:40 -0500102 - name: Notify
103 description: >
104 Possible ServiceProviderNotify values for an error log entry.
105 values:
106 - name: NotSupported
107 description: >
108 ServiceProviderNotify property is not supported.
109 - name: Notify
110 description: >
111 The service provider should be notified about the event log.
112 - name: Inhibit
113 description: >
114 The service provider should not be notified about the event log.
115
Adriana Kobylak66119c02021-02-04 13:23:58 -0600116methods:
Patrick Williams8da396c2022-03-14 14:21:02 -0500117 - name: GetEntry
118 description: >
Patrick Williamsa1347412022-12-06 10:56:22 -0600119 Returns the file descriptor to the raw Entry file, which is a binary
120 blob. The mode of the file descriptor is to be reaad-only.
Patrick Williams8da396c2022-03-14 14:21:02 -0500121 returns:
122 - name: fd
123 type: unixfd
124 description: >
125 The file descriptor to the Entry file.
Patrick Williams6c25fd02024-01-17 11:52:54 -0600126
127service_names:
128 - default: xyz.openbmc_project.Logging
129
130paths:
131 - namespace: /xyz/openbmc_project/logging
132 segments:
133 - name: Entry
134 value: entry