Feature/performanceplatform api

I didn't feel that it needed to be a named type as it just exists in the context of that function. If it was used else where then I definitely would have done.