<div dir="ltr">Hi Ed, <div><br></div><div>Thanks for your reply. </div><div><br></div><div>Alan and I were talking about what attribute we should use for "the time that an event occurred", "Created" or "EventTimestamp". Both attributes in the Redfish schema are optional, my understanding after reading the description was that "Created" is when the LogEntry gets created in the LogEntryCollection in the web server (BmcWeb); IIUC, in BmcWeb, new Log Entries are not created until they get queried; "EventTimestamp" on the other hand is when an event originally occurred. </div><div><br></div><div>The context is that we are implementing both the PULL model and PUSH model of Redfish POST codes and Host Serial Logs, and we care about when events occurred in both models.  In the PUSH model, the web server will send an array of "Event", in which there is an "EventTimestamp" attribute that we can use for each event. In the PULL model, we will query the LogEntryCollection in LogService, and currently, there is only "Created" but not "EventTimestamp" in BmcWeb. So we are sending this email to ask for comments.  <br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-im" style="color:rgb(80,0,80)">><br></span><span class="gmail-im" style="color:rgb(80,0,80)">> We think that using “EventTimestamp” will be more suitable than “Created” in LogServices.</span><span class="gmail-im" style="color:rgb(80,0,80)"><br></span>Why?  Can you give more details here on what you're trying to accomplish?</blockquote><div>We are talking about the following three options,</div><div><br></div><div>1. change all the current "Created" attributes in BmcWeb LogService to "EventTimestamp" </div><div>2. keep "Created" as is; add a new attribute "EventTimestamp"</div><div>3. keep everything as is; use "Created" to represent "the time that an event occurred"</div><div><br></div><div>We are fine with either of the three options. The email is to ask the upstream and look for opinions from people.  </div><div><br></div><div>Thanks,</div><div>Nan</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Apr 8, 2021 at 9:36 AM Ed Tanous <<a href="mailto:ed@tanous.net">ed@tanous.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Thu, Apr 8, 2021 at 7:01 AM Alan Kuo (郭振維) <<a href="mailto:Alan_Kuo@quantatw.com" target="_blank">Alan_Kuo@quantatw.com</a>> wrote:<br>
><br>
> Hi all,<br>
><br>
><br>
><br>
> In the current implementation of bmcweb LogServices, the time of the "Created" property is the time when the event is generated, which does not match the description of the redfish schema. The "Created" property means the date and time when the log entry was created.<br>
<br>
It should be noted, Created has been present since 1.0.0 of LogEntry,<br>
EventTimestamp was added in LogEntry v1.1.0.  Based on the<br>
descriptions, it's not clear to me what the intended difference is,<br>
seeing as how they're both of type Edm.DateTimeOffset.  Based on the<br>
description, the two would be identical on an OpenBMC system, the<br>
LogEntry is "Created" at the same time it occurs.<br>
<br>
><br>
> We think that using “EventTimestamp” will be more suitable than “Created” in LogServices.<br>
<br>
Why?  Can you give more details here on what you're trying to accomplish?<br>
<br>
><br>
><br>
><br>
> Could you give me some suggestion ? Or am I misunderstanding the definition of schema?<br>
<br>
This is probably a better question for the Redfish forum, unless<br>
there's documentation on what the intended difference between those<br>
two parameters are.<br>
<br>
><br>
><br>
><br>
> Here is an example:<br>
><br>
> {<br>
><br>
>       "@<a href="http://odata.id" rel="noreferrer" target="_blank">odata.id</a>": "/redfish/v1/Systems/system/LogServices/PostCodes/Entries/B5-83",<br>
><br>
>       "@odata.type": "#LogEntry.v1_4_0.LogEntry",<br>
><br>
>       "Created": "1970-01-01T00:01:43+00:00",    <=  It should be EventTimestamp<br>
><br>
>       "EntryType": "Event",<br>
><br>
>       "Id": "B5-83",<br>
><br>
>       "Message": "Boot Count: 1: TS Offset: 65.4769; POST Code: 0x01",<br>
><br>
>       "MessageArgs": [<br>
><br>
>         "1",<br>
><br>
>         "65.4769",<br>
><br>
>         "0x01"<br>
><br>
>       ],<br>
><br>
>       "MessageId": "OpenBMC.0.1.BIOSPOSTCode",<br>
><br>
>       "Name": "POST Code Log Entry",<br>
><br>
>       "Severity": "OK"<br>
><br>
> }<br>
><br>
><br>
><br>
> Thanks,<br>
><br>
> Alan<br>
><br>
><br>
><br>
> From: openbmc <openbmc-bounces+alan_kuo=<a href="mailto:quantatw.com@lists.ozlabs.org" target="_blank">quantatw.com@lists.ozlabs.org</a>> On Behalf Of Harvey Wu (吳崇維)<br>
> Sent: Monday, March 29, 2021 5:14 PM<br>
> To: <a href="mailto:openbmc@lists.ozlabs.org" target="_blank">openbmc@lists.ozlabs.org</a><br>
> Cc: Duke Du (杜祥嘉) <<a href="mailto:Duke.Du@quantatw.com" target="_blank">Duke.Du@quantatw.com</a>>; Fran Hsu (徐誌謙) <<a href="mailto:Fran.Hsu@quantatw.com" target="_blank">Fran.Hsu@quantatw.com</a>>; George Hung (洪忠敬) <<a href="mailto:George.Hung@quantatw.com" target="_blank">George.Hung@quantatw.com</a>><br>
> Subject: [phosphor-virtual-sensor] get sensor service fail<br>
><br>
><br>
><br>
> Hi All,<br>
><br>
><br>
><br>
>         In current phosphor-virtual-sensor, the function getService will return empty string only when catch error name = “xyz.openbmc_project.Common.Error.ResourceNotFound” (<a href="https://github.com/openbmc/phosphor-virtual-sensor/blob/master/dbusUtils.hpp#L37" rel="noreferrer" target="_blank">https://github.com/openbmc/phosphor-virtual-sensor/blob/master/dbusUtils.hpp#L37</a>).<br>
><br>
>         But in my system, when bus call didn’t get sensor service, the exception name will be “org.freedesktop.DBus.Error.FileNotFound”, and then service will be get failed.<br>
><br>
>         It seems need to modified the origin condition or add another elseif condition. Do I misunderstand something?<br>
><br>
><br>
><br>
><br>
><br>
> Thanks.<br>
><br>
><br>
><br>
> Harvey Wu<br>
><br>
> Email: <a href="mailto:Harvey.Wu@quantatw.com" target="_blank">Harvey.Wu@quantatw.com</a><br>
><br>
> Ext: 17408<br>
><br>
><br>
</blockquote></div>