UNPKG

on-http-y1

Version:
45 lines (44 loc) 1.99 kB
{ "@odata.context" : "<%= basepath %>/$metadata#Systems/Links/Members/<%= identifier %>/LogServices/Members/<%=type%>/Entries", "@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.recordId %>", "@odata.type": "#LogEntry.1.0.0.LogEntry", "Oem": { "Dell":{ "Log Name": "<%= entry.logName %>", "Category": "<%= entry.category %>", "Severity": "<%= entry.severity %>", "Comment": "<%= entry.comment %>", "Agent": "<%= entry.agentId %>", "fqdd": "<%= entry.fqdd %>", "Raw Event Data": "<%= entry.rawEventData %>", "Sequence Number": "<%= entry.sequenceNumber %>" } }, "Id": "<%= entry.recordId %>", "Name": "<%= entry.elementName %>", "EntryType": "<%= type %>", "Created": "<%= entry.creationTimeStamp %>", "OemRecordFormat": "", "EntryCode": "<%= entry.instanceId %>", "Message": "<%= entry.message %>", "MessageId": "<%= entry.messageId %>", "MessageArgs": ["<%= entry.messageArguments %>"], "Links": { "Oem": {}, "OriginOfCondition": { "@odata.id": "<%= entry.origin || 'null' %>" } } } <%= ( arr.length > 0 && i < arr.length-1 ) ? ',': '' %> <% }); %> ] }