<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=big5">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:新細明體;
panose-1:2 2 5 0 0 0 0 0 0 0;}
@font-face
{font-family:Gulim;
panose-1:2 11 6 0 0 1 1 1 1 1;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"\@新細明體";
panose-1:2 1 6 1 0 1 1 1 1 1;}
@font-face
{font-family:"\@Gulim";
panose-1:2 11 6 0 0 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Gulim",sans-serif;
mso-fareast-language:KO;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Gulim",sans-serif;
mso-fareast-language:KO;}
span.gmail-im
{mso-style-name:gmail-im;}
span.EmailStyle19
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="ZH-TW" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Calibri",sans-serif;mso-fareast-language:ZH-TW">Change title.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Calibri",sans-serif;mso-fareast-language:ZH-TW"><o:p> </o:p></span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt">
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:ZH-TW">From:</span></b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:ZH-TW"> Nan Zhou
<nanzhou@google.com> <br>
<b>Sent:</b> Friday, April 9, 2021 1:11 AM<br>
<b>To:</b> Ed Tanous <ed@tanous.net><br>
<b>Cc:</b> Alan Kuo (</span><span style="font-size:11.0pt;mso-fareast-language:ZH-TW">郭振維</span><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:ZH-TW">) <Alan_Kuo@quantatw.com>; openbmc@lists.ozlabs.org; edtanous@google.com<br>
<b>Subject:</b> RE: about bmcweb logservice schema<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span lang="EN-US">Hi Ed,</span><span lang="EN-US" style="font-family:"Calibri",sans-serif"> </span><span lang="EN-US"><o:p></o:p></span></p>
<div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">Thanks for your reply.</span><span lang="EN-US" style="font-family:"Calibri",sans-serif"> </span><span lang="EN-US"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">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</span><span lang="EN-US" style="font-family:"Calibri",sans-serif"> </span><span lang="EN-US">was
that "Created" is when the LogEntry gets created in the LogEntryCollection in the web server (BmcWeb); IIUC, in BmcWeb, new Log Entries</span><span lang="EN-US" style="font-family:"Calibri",sans-serif"> </span><span lang="EN-US">are not created until they
get queried; "EventTimestamp" on the other hand is when an event originally occurred.</span><span lang="EN-US" style="font-family:"Calibri",sans-serif"> </span><span lang="EN-US"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">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.</span><span lang="EN-US" style="font-family:"Calibri",sans-serif"> </span><span lang="EN-US">
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.</span><span lang="EN-US" style="font-family:"Calibri",sans-serif"> </span><span lang="EN-US"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<p class="MsoNormal"><span class="gmail-im"><span lang="EN-US" style="color:#500050">></span></span><span lang="EN-US" style="color:#500050"><br>
<span class="gmail-im">> We think that using </span></span><span class="gmail-im"><span lang="EN-US" style="font-family:"Calibri",sans-serif;color:#500050">“</span><span lang="EN-US" style="color:#500050">EventTimestamp</span></span><span class="gmail-im"><span lang="EN-US" style="font-family:"Calibri",sans-serif;color:#500050">”</span><span lang="EN-US" style="color:#500050">
will be more suitable than </span></span><span class="gmail-im"><span lang="EN-US" style="font-family:"Calibri",sans-serif;color:#500050">“</span><span lang="EN-US" style="color:#500050">Created</span></span><span class="gmail-im"><span lang="EN-US" style="font-family:"Calibri",sans-serif;color:#500050">”</span><span lang="EN-US" style="color:#500050">
in LogServices.</span></span><span lang="EN-US" style="color:#500050"><br>
</span><span lang="EN-US">Why?</span><span lang="EN-US" style="font-family:"Calibri",sans-serif"> </span><span lang="EN-US"> Can you give more details here on what you're trying to accomplish?<o:p></o:p></span></p>
</blockquote>
<div>
<p class="MsoNormal"><span lang="EN-US">We are talking about the following three options,<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">1. change all the current "Created" attributes in BmcWeb LogService to "EventTimestamp"</span><span lang="EN-US" style="font-family:"Calibri",sans-serif"> </span><span lang="EN-US"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">2. keep "Created" as is; add a new attribute</span><span lang="EN-US" style="font-family:"Calibri",sans-serif"> </span><span lang="EN-US">"EventTimestamp"<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">3. keep everything as is; use "Created"</span><span lang="EN-US" style="font-family:"Calibri",sans-serif"> </span><span lang="EN-US">to represent</span><span lang="EN-US" style="font-family:"Calibri",sans-serif"> </span><span lang="EN-US">"the
time that an event occurred"<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">We are fine with either of the three options. The email is to ask the upstream and look for opinions from people.</span><span lang="EN-US" style="font-family:"Calibri",sans-serif"> </span><span lang="EN-US"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">Thanks,<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">Nan<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<div>
<div>
<p class="MsoNormal"><span lang="EN-US">On Thu, Apr 8, 2021 at 9:36 AM Ed Tanous <<a href="mailto:ed@tanous.net">ed@tanous.net</a>> wrote:<o:p></o:p></span></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<p class="MsoNormal"><span lang="EN-US">On Thu, Apr 8, 2021 at 7:01 AM Alan Kuo (</span><span lang="KO">郭振維</span><span lang="EN-US">) <<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.</span><span lang="EN-US" style="font-family:"Calibri",sans-serif"> </span><span lang="EN-US"> 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.</span><span lang="EN-US" style="font-family:"Calibri",sans-serif"> </span><span lang="EN-US"> 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 </span><span lang="EN-US" style="font-family:"Calibri",sans-serif">“</span><span lang="EN-US">EventTimestamp</span><span lang="EN-US" style="font-family:"Calibri",sans-serif">”</span><span lang="EN-US"> will be more suitable than
</span><span lang="EN-US" style="font-family:"Calibri",sans-serif">“</span><span lang="EN-US">Created</span><span lang="EN-US" style="font-family:"Calibri",sans-serif">”</span><span lang="EN-US"> in LogServices.<br>
<br>
Why?</span><span lang="EN-US" style="font-family:"Calibri",sans-serif"> </span><span lang="EN-US"> 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>
></span><span lang="EN-US" style="font-family:"Calibri",sans-serif"> </span><span lang="EN-US">
</span><span lang="EN-US" style="font-family:"Calibri",sans-serif"> </span><span lang="EN-US">
</span><span lang="EN-US" style="font-family:"Calibri",sans-serif"> </span><span lang="EN-US">
</span><span lang="EN-US" style="font-family:"Calibri",sans-serif"> </span><span lang="EN-US">"@<a href="https://apc01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fodata.id%2F&data=04%7C01%7CAlan_Kuo%40quantatw.com%7C372cc60b6c2e4a44e90b08d8fab16202%7C179b032707fc4973ac738de7313561b2%7C1%7C0%7C637534987068911223%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=GxeSWLKs1mZaKSIpwvGEQxX329Q4x7aV%2BEerubVyq%2Bg%3D&reserved=0" target="_blank">odata.id</a>":
"/redfish/v1/Systems/system/LogServices/PostCodes/Entries/B5-83",<br>
><br>
></span><span lang="EN-US" style="font-family:"Calibri",sans-serif"> </span><span lang="EN-US">
</span><span lang="EN-US" style="font-family:"Calibri",sans-serif"> </span><span lang="EN-US">
</span><span lang="EN-US" style="font-family:"Calibri",sans-serif"> </span><span lang="EN-US">
</span><span lang="EN-US" style="font-family:"Calibri",sans-serif"> </span><span lang="EN-US">"@odata.type": "#LogEntry.v1_4_0.LogEntry",<br>
><br>
></span><span lang="EN-US" style="font-family:"Calibri",sans-serif"> </span><span lang="EN-US">
</span><span lang="EN-US" style="font-family:"Calibri",sans-serif"> </span><span lang="EN-US">
</span><span lang="EN-US" style="font-family:"Calibri",sans-serif"> </span><span lang="EN-US">
</span><span lang="EN-US" style="font-family:"Calibri",sans-serif"> </span><span lang="EN-US">"Created": "1970-01-01T00:01:43+00:00",</span><span lang="EN-US" style="font-family:"Calibri",sans-serif"> </span><span lang="EN-US">
</span><span lang="EN-US" style="font-family:"Calibri",sans-serif"> </span><span lang="EN-US"> <=</span><span lang="EN-US" style="font-family:"Calibri",sans-serif"> </span><span lang="EN-US"> It should be EventTimestamp<br>
><br>
></span><span lang="EN-US" style="font-family:"Calibri",sans-serif"> </span><span lang="EN-US">
</span><span lang="EN-US" style="font-family:"Calibri",sans-serif"> </span><span lang="EN-US">
</span><span lang="EN-US" style="font-family:"Calibri",sans-serif"> </span><span lang="EN-US">
</span><span lang="EN-US" style="font-family:"Calibri",sans-serif"> </span><span lang="EN-US">"EntryType": "Event",<br>
><br>
></span><span lang="EN-US" style="font-family:"Calibri",sans-serif"> </span><span lang="EN-US">
</span><span lang="EN-US" style="font-family:"Calibri",sans-serif"> </span><span lang="EN-US">
</span><span lang="EN-US" style="font-family:"Calibri",sans-serif"> </span><span lang="EN-US">
</span><span lang="EN-US" style="font-family:"Calibri",sans-serif"> </span><span lang="EN-US">"Id": "B5-83",<br>
><br>
></span><span lang="EN-US" style="font-family:"Calibri",sans-serif"> </span><span lang="EN-US">
</span><span lang="EN-US" style="font-family:"Calibri",sans-serif"> </span><span lang="EN-US">
</span><span lang="EN-US" style="font-family:"Calibri",sans-serif"> </span><span lang="EN-US">
</span><span lang="EN-US" style="font-family:"Calibri",sans-serif"> </span><span lang="EN-US">"Message": "Boot Count: 1: TS Offset: 65.4769; POST Code: 0x01",<br>
><br>
></span><span lang="EN-US" style="font-family:"Calibri",sans-serif"> </span><span lang="EN-US">
</span><span lang="EN-US" style="font-family:"Calibri",sans-serif"> </span><span lang="EN-US">
</span><span lang="EN-US" style="font-family:"Calibri",sans-serif"> </span><span lang="EN-US">
</span><span lang="EN-US" style="font-family:"Calibri",sans-serif"> </span><span lang="EN-US">"MessageArgs": [<br>
><br>
></span><span lang="EN-US" style="font-family:"Calibri",sans-serif"> </span><span lang="EN-US">
</span><span lang="EN-US" style="font-family:"Calibri",sans-serif"> </span><span lang="EN-US">
</span><span lang="EN-US" style="font-family:"Calibri",sans-serif"> </span><span lang="EN-US">
</span><span lang="EN-US" style="font-family:"Calibri",sans-serif"> </span><span lang="EN-US">
</span><span lang="EN-US" style="font-family:"Calibri",sans-serif"> </span><span lang="EN-US">"1",<br>
><br>
></span><span lang="EN-US" style="font-family:"Calibri",sans-serif"> </span><span lang="EN-US">
</span><span lang="EN-US" style="font-family:"Calibri",sans-serif"> </span><span lang="EN-US">
</span><span lang="EN-US" style="font-family:"Calibri",sans-serif"> </span><span lang="EN-US">
</span><span lang="EN-US" style="font-family:"Calibri",sans-serif"> </span><span lang="EN-US">
</span><span lang="EN-US" style="font-family:"Calibri",sans-serif"> </span><span lang="EN-US">"65.4769",<br>
><br>
></span><span lang="EN-US" style="font-family:"Calibri",sans-serif"> </span><span lang="EN-US">
</span><span lang="EN-US" style="font-family:"Calibri",sans-serif"> </span><span lang="EN-US">
</span><span lang="EN-US" style="font-family:"Calibri",sans-serif"> </span><span lang="EN-US">
</span><span lang="EN-US" style="font-family:"Calibri",sans-serif"> </span><span lang="EN-US">
</span><span lang="EN-US" style="font-family:"Calibri",sans-serif"> </span><span lang="EN-US">"0x01"<br>
><br>
></span><span lang="EN-US" style="font-family:"Calibri",sans-serif"> </span><span lang="EN-US">
</span><span lang="EN-US" style="font-family:"Calibri",sans-serif"> </span><span lang="EN-US">
</span><span lang="EN-US" style="font-family:"Calibri",sans-serif"> </span><span lang="EN-US">
</span><span lang="EN-US" style="font-family:"Calibri",sans-serif"> </span><span lang="EN-US">],<br>
><br>
></span><span lang="EN-US" style="font-family:"Calibri",sans-serif"> </span><span lang="EN-US">
</span><span lang="EN-US" style="font-family:"Calibri",sans-serif"> </span><span lang="EN-US">
</span><span lang="EN-US" style="font-family:"Calibri",sans-serif"> </span><span lang="EN-US">
</span><span lang="EN-US" style="font-family:"Calibri",sans-serif"> </span><span lang="EN-US">"MessageId": "OpenBMC.0.1.BIOSPOSTCode",<br>
><br>
></span><span lang="EN-US" style="font-family:"Calibri",sans-serif"> </span><span lang="EN-US">
</span><span lang="EN-US" style="font-family:"Calibri",sans-serif"> </span><span lang="EN-US">
</span><span lang="EN-US" style="font-family:"Calibri",sans-serif"> </span><span lang="EN-US">
</span><span lang="EN-US" style="font-family:"Calibri",sans-serif"> </span><span lang="EN-US">"Name": "POST Code Log Entry",<br>
><br>
></span><span lang="EN-US" style="font-family:"Calibri",sans-serif"> </span><span lang="EN-US">
</span><span lang="EN-US" style="font-family:"Calibri",sans-serif"> </span><span lang="EN-US">
</span><span lang="EN-US" style="font-family:"Calibri",sans-serif"> </span><span lang="EN-US">
</span><span lang="EN-US" style="font-family:"Calibri",sans-serif"> </span><span lang="EN-US">"Severity": "OK"<br>
><br>
> }<br>
><br>
><br>
><br>
> Thanks,<br>
><br>
> Alan<o:p></o:p></span></p>
</blockquote>
</div>
</div>
</div>
</body>
</html>