RackHD/on-http

View on GitHub
data/views/redfish-1.0/redfish.1.0.0.processorcollection.json

Summary

Maintainability
Test Coverage
{
    "@odata.context" : "<%= basepath %>/$metadata#ProcessorCollection.ProcessorCollection",
    "@odata.id": "<%= url %>",
    "@odata.type": "#ProcessorCollection.ProcessorCollection",
    "Oem" : {},
    "Name": "Processor Collection",
    "Members@odata.count": <%= dmi.data['Processor Information'].length %>,
    "Members": [
        <% dmi.data['Processor Information'].forEach(function(chassis, i, arr) { %>
            {
                "@odata.id": "<%= basepath %>/Systems/<%=identifier%>/Processors/<%=i%>"
            }
            <%= ( arr.length > 0 && i < arr.length-1 ) ? ',': '' %>
        <% }); %>
    ]
}