|
| 1 | +{ |
| 2 | + "@odata.context" : "<%= basepath %>/$metadata#Systems/Links/Members/<%= identifier %>/LogServices/Members/<%=type%>/Entries", |
| 3 | + "@odata.id": "<%= url %>", |
| 4 | + "@odata.type": "#LogEntryCollection.LogEntryCollection", |
| 5 | + "Oem" : {}, |
| 6 | + "Name": "Log Service Entry Collection", |
| 7 | + "Members@odata.count": <%= logEntries.length %>, |
| 8 | + "Members": [ |
| 9 | + <% logEntries.forEach(function(entry, i, arr) { %> |
| 10 | + { |
| 11 | + "@odata.id": "<%= basepath %>/Systems/<%=identifier%>/LogServices/<%=type%>/Entries/<%= entry.recordId %>", |
| 12 | + "@odata.type": "#LogEntry.1.0.0.LogEntry", |
| 13 | + "Oem": { |
| 14 | + "Dell":{ |
| 15 | + "Log Name": "<%= entry.logName %>", |
| 16 | + "Category": "<%= entry.category %>", |
| 17 | + "Severity": "<%= entry.severity %>", |
| 18 | + "Comment": "<%= entry.comment %>", |
| 19 | + "Agent": "<%= entry.agentId %>", |
| 20 | + "fqdd": "<%= entry.fqdd %>", |
| 21 | + "Raw Event Data": "<%= entry.rawEventData %>", |
| 22 | + "Sequence Number": "<%= entry.sequenceNumber %>" |
| 23 | + } |
| 24 | + }, |
| 25 | + "Id": "<%= entry.recordId %>", |
| 26 | + "Name": "<%= entry.elementName %>", |
| 27 | + "EntryType": "<%= type %>", |
| 28 | + "Created": "<%= entry.creationTimeStamp %>", |
| 29 | + "OemRecordFormat": "", |
| 30 | + "EntryCode": "<%= entry.instanceId %>", |
| 31 | + "Message": "<%= entry.message %>", |
| 32 | + "MessageId": "<%= entry.messageId %>", |
| 33 | + "MessageArgs": ["<%= entry.messageArguments %>"], |
| 34 | + "Links": { |
| 35 | + "Oem": {}, |
| 36 | + "OriginOfCondition": { |
| 37 | + "@odata.id": "<%= entry.origin || 'null' %>" |
| 38 | + } |
| 39 | + } |
| 40 | + } |
| 41 | + <%= ( arr.length > 0 && i < arr.length-1 ) ? ',': '' %> |
| 42 | + <% }); %> |
| 43 | + ] |
| 44 | +} |
0 commit comments