RackHD/on-http

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

Summary

Maintainability
Test Coverage
{
    "@odata.context" : "<%= basepath %>/$metadata#EventDestinationCollection.EventDestinationCollection",
    "@odata.id": "<%= url %>",
    "@odata.type": "#EventDestinationCollection.EventDestinationCollection",
    "Name": "Event Subscription Collection",
    "Members@odata.count": <%= subscriptions.length %>,
    "Members": [
        <% subscriptions.forEach(function(subscription, i, arr) { %>
            {
                "@odata.id": "<%= basepath %>/EventService/Subscriptions/<%=subscription.Id%>"
            }
            <%= ( arr.length > 0 && i < arr.length-1 ) ? ',': '' %>
        <% }); %>
    ]
    
}