data/views/redfish-1.0/redfish.1.0.0.logentrycollection.json
{
"@odata.context" : "<%= basepath %>/$metadata#LogEntryCollection.LogEntryCollection",
"@odata.id": "<%= url %>",
"@odata.type": "#LogEntryCollection.LogEntryCollection",
"Oem" : {},
"Name": "Log Service Entry Collection",
"Members@odata.count": <%= logEntries.length %>,
"Members": [
<% logEntries.forEach(function(entry, i, arr) { %>
{
"@odata.id": "<%= basepath %>/Systems/<%=identifier%>/LogServices/<%=type%>/Entries/<%= entry.logId %>",
"@odata.type": "#LogEntry.v1_0_0.LogEntry",
"Oem": {},
"Id": "<%= entry.logId %>",
"Name": "name",
"EntryType": "<%= type %>",
"Created": "<%= entry.timestamp %>",
"OemRecordFormat": "",
"EntryCode": "<%= entry.value %>",
"SensorType": "<%= entry.sensorType %>",
"SensorNumber": <%= entry.sensorNumber %>,
"Message": "<%= entry.event %>",
"MessageId": "",
"MessageArgs": [],
"Links": {
<% if (entry.origin) { %>
"OriginOfCondition": {
"@odata.id": "<%= entry.origin %>"
},
<% } %>
"Oem": {}
}
}
<%= ( arr.length > 0 && i < arr.length-1 ) ? ',': '' %>
<% }); %>
]
}