BazeField Services

<back to all web services

AllocationStatisticsListGetRequest

Allocations API
Requires Authentication
The following routes are available for this service:
GET, POST/api/allocations/statistics/listGets allocation statistics for objects/categories.
AllocationStatisticsListGetRequest Parameters:
NameParameterData TypeRequiredDescription
TurbineIdsbodyList<string>No
ObjectIdsbodyList<string>No
CategoriesbodyList<string>No
AllocationTypebodystringNo
FrombodystringNo
TobodystringNo
ResultsInKWhbodybool?No
GroupResultsbodybool?No
GroupByObjectsbodybool?No
GroupByCategoriesbodybool?No
IntervalSecbodyint?No
IncludeNegativeProductionbodybool?No
IncludeNegativeLostProductionbodybool?No
ShowExcludedbodybool?No
ShowAvailablebodybool?No
Availablebodybool?No
GroupByLabelbodybool?No
GroupByLabelAndCategoriesbodybool?No
GroupByAlarmbodybool?No
GroupByAssetbodybool?No

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /api/allocations/statistics/list HTTP/1.1 
Host: mdn.bazefield.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"turbineIds":["String"],"objectIds":["String"],"categories":["String"],"allocationType":"String","from":"String","to":"String","resultsInKWh":false,"groupResults":false,"groupByObjects":false,"groupByCategories":false,"intervalSec":0,"includeNegativeProduction":false,"includeNegativeLostProduction":false,"showExcluded":false,"showAvailable":false,"available":false,"groupByLabel":false,"groupByLabelAndCategories":false,"groupByAlarm":false,"groupByAsset":false}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

[{"objectKey":"String","objectId":"String","turbineId":0,"categoryId":0,"alarmCode":"String","timeStamp":"0001-01-01T00:00:00.0000000","pba":0,"tba":0,"totalPBA":0,"totalTBA":0,"totalLostProd":0,"totalLostProdCurrency":0,"unavailableLostProd":0,"unavailableLostProdCurrency":0,"excludedLostProd":0,"excludedLostProdCurrency":0,"totalActualProd":0,"totalActualProdCurrency":0,"excludedActualProd":0,"excludedActualProdCurrency":0,"totalTheoreticalProd":0,"totalTheoreticalProdCurrency":0,"excludedTheoreticalProd":0,"exludedTheoreticalProdCurrency":0,"totalDuration":0,"reportedDuration":0,"unavailableDuration":0,"totalUnavailableDuration":0,"totalLossDuration":0,"excludedDuration":0,"totalCount":0,"excludedCount":0,"unavailablecount":0,"totalUnavailableCount":0,"totalLossCount":0,"averagePrice":0,"assetCount":0,"label":"String","parameter1":"String","vendorEventType":"String","description":"String"}]