| Adriana Kobylak | 8a0fd71 | 2016-11-14 16:05:52 -0600 | [diff] [blame] | 1 | description: > | 
|  | 2 | Implement to provide event/error entry attributes. | 
|  | 3 | This interface should be instantiated for the phosphor::logging namespace. | 
|  | 4 | This interface is a collection of objects, therefore it is required to | 
|  | 5 | implement org.freedesktop.DBus.ObjectManager on the logging namespace root. | 
|  | 6 | Optionally, implement org.openbmc.Object.Delete to allow the deletion of | 
|  | 7 | individual entries. | 
|  | 8 | properties: | 
|  | 9 | - name: Id | 
|  | 10 | type: uint32 | 
|  | 11 | description: > | 
|  | 12 | The error event entry id number. | 
| Adriana Kobylak | 06e5b23 | 2017-01-22 14:36:55 -0600 | [diff] [blame] | 13 | - name: Timestamp | 
|  | 14 | type: uint64 | 
|  | 15 | description: > | 
|  | 16 | Commit timestamp of the error event entry in milliseconds since 1970. | 
| Adriana Kobylak | 8a0fd71 | 2016-11-14 16:05:52 -0600 | [diff] [blame] | 17 | - 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 Lobo | 0ae4052 | 2021-05-11 18:51:45 -0500 | [diff] [blame] | 25 | - 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 Kobylak | 8a0fd71 | 2016-11-14 16:05:52 -0600 | [diff] [blame] | 33 | - name: AdditionalData | 
|  | 34 | type: array[string] | 
|  | 35 | description: > | 
|  | 36 | Additional information in the form of metadata field strings VAR=val | 
| Vijay Lobo | 39bdb47 | 2021-05-13 07:47:54 -0500 | [diff] [blame] | 37 | - name: Resolution | 
|  | 38 | type: string | 
|  | 39 | description: > | 
|  | 40 | Suggestion for error resolution of this event. | 
| Deepak Kodihalli | 9bd626a | 2017-03-27 03:32:25 -0500 | [diff] [blame] | 41 | - name: Resolved | 
|  | 42 | type: boolean | 
|  | 43 | description: > | 
|  | 44 | Error resolution status. Indicate if the problem being reported by | 
|  | 45 | this error log has been resolved. This will start out 'false' by | 
|  | 46 | default. Setting this to 'true' will NOT result in the error log being | 
|  | 47 | deleted. | 
| Vijay Lobo | 208b4e4 | 2021-05-06 14:56:35 -0500 | [diff] [blame] | 48 | - name: ServiceProviderNotify | 
| Vijay F Lobo | 3c7b858 | 2021-10-08 11:41:40 -0500 | [diff] [blame^] | 49 | type: enum[self.Notify] | 
|  | 50 | default: NotSupported | 
| Vijay Lobo | 208b4e4 | 2021-05-06 14:56:35 -0500 | [diff] [blame] | 51 | description: > | 
| Vijay F Lobo | 3c7b858 | 2021-10-08 11:41:40 -0500 | [diff] [blame^] | 52 | If this property value is set to 'Notify', the service provider must | 
|  | 53 | be notified about the Entry. If the value is set to 'Inhibit' then | 
|  | 54 | notification is not sent to the service provider. An event of this | 
|  | 55 | type requires a service action to correct the event, such as replacing | 
|  | 56 | the hardware part or updating code. | 
| Matt Spinler | 05dd968 | 2020-02-25 12:34:52 -0600 | [diff] [blame] | 57 | - name: UpdateTimestamp | 
|  | 58 | type: uint64 | 
|  | 59 | description: > | 
|  | 60 | The timestamp when any property was last modified, in milliseconds | 
|  | 61 | since the epoch (1 Jan 1970 00:00:00 UTC).  As only the | 
|  | 62 | Resolved property has a reason to change, a value that doesn't | 
|  | 63 | match the Timestamp property's value (which indicates when the | 
|  | 64 | log was created) would indicate that Resolved was changed. | 
| Adriana Kobylak | 8a0fd71 | 2016-11-14 16:05:52 -0600 | [diff] [blame] | 65 |  | 
|  | 66 | enumerations: | 
|  | 67 | - name: Level | 
|  | 68 | description: > | 
|  | 69 | Possible severity levels for an error log entry. | 
|  | 70 | values: | 
| Patrick Williams | 8da396c | 2022-03-14 14:21:02 -0500 | [diff] [blame] | 71 | - name: Emergency | 
|  | 72 | description: > | 
|  | 73 | System is unusable. | 
|  | 74 | - name: Alert | 
|  | 75 | description: > | 
|  | 76 | Should be corrected immediately. | 
|  | 77 | - name: Critical | 
|  | 78 | description: > | 
|  | 79 | Critical condition. | 
|  | 80 | - name: Error | 
|  | 81 | description: > | 
|  | 82 | Error condition. | 
|  | 83 | - name: Warning | 
|  | 84 | description: > | 
|  | 85 | An error may occur if action is not taken. | 
|  | 86 | - name: Notice | 
|  | 87 | description: > | 
|  | 88 | Unusual condition, but not an error. | 
|  | 89 | - name: Informational | 
|  | 90 | description: > | 
|  | 91 | Normal operational message that does not require action. | 
|  | 92 | - name: Debug | 
|  | 93 | description: > | 
|  | 94 | Information useful to developers for debugging the application. | 
| Adriana Kobylak | 8a0fd71 | 2016-11-14 16:05:52 -0600 | [diff] [blame] | 95 |  | 
| Vijay F Lobo | 3c7b858 | 2021-10-08 11:41:40 -0500 | [diff] [blame^] | 96 | - name: Notify | 
|  | 97 | description: > | 
|  | 98 | Possible ServiceProviderNotify values for an error log entry. | 
|  | 99 | values: | 
|  | 100 | - name: NotSupported | 
|  | 101 | description: > | 
|  | 102 | ServiceProviderNotify property is not supported. | 
|  | 103 | - name: Notify | 
|  | 104 | description: > | 
|  | 105 | The service provider should be notified about the event log. | 
|  | 106 | - name: Inhibit | 
|  | 107 | description: > | 
|  | 108 | The service provider should not be notified about the event log. | 
|  | 109 |  | 
| Adriana Kobylak | 66119c0 | 2021-02-04 13:23:58 -0600 | [diff] [blame] | 110 | methods: | 
| Patrick Williams | 8da396c | 2022-03-14 14:21:02 -0500 | [diff] [blame] | 111 | - name: GetEntry | 
|  | 112 | description: > | 
|  | 113 | Returns the file descriptor to the raw Entry file, which is a binary blob. | 
|  | 114 | The mode of the file descriptor is to be reaad-only. | 
|  | 115 | returns: | 
|  | 116 | - name: fd | 
|  | 117 | type: unixfd | 
|  | 118 | description: > | 
|  | 119 | The file descriptor to the Entry file. |