BazeField Services

<back to all web services

GetAllocationStatisticsChart

Allocations API
Requires Authentication
The following routes are available for this service:
GET/api/turbines/{TurbineIds}/allocations/{Type}/statisticsChart/from/{From}/to/{To}
GET/api/turbines/{TurbineIds}/allocations/{Type}/statistics/from/{From}/to/{To}
GET/api/turbines/allocations/{Type}/statisticsChart/from/{From}/to/{To}
GET,POST/api/turbines/allocations/{Type}/statistics/from/{From}/to/{To}
GET/api/turbines/allocations/statisticsChart
GET,POST/api/turbines/allocations/statistics
GetAllocationStatisticsChart Parameters:
NameParameterData TypeRequiredDescription
ChartTypebodystringNo
ChartBybodystringNo
Heightbodyint?No
Widthbodyint?No
FindTurbineAllocationStatistics Parameters:
NameParameterData TypeRequiredDescription
TurbineIdsformList<string>No
SourceIdsformList<string>No
CategoryIdsformList<string>No
TypeformstringNo
FromformstringNo
ToformstringNo
OrderByformstringNo
ThenByformstringNo
AllocationCategoriesFilterformList<string>No
Takeformint?No
ChartGroupformstringNo
IncludeAvailableformboolNo
IncludeExcludedformboolNo
InObjectTimeformbool?No
CompatibilityModeformbool?No
CompatibilityModeForDrillDownformbool?No
AllocationStatsReplyList Parameters:
NameParameterData TypeRequiredDescription
TotalAvailabilityformdoubleNo
ProductionAvailabilityformdouble?No
HasDeratedCategoriesformboolNo
TotalLostMoneyformdoubleNo
TotalLostProductionformdoubleNo
TotalUnavailableLostMoneyformdoubleNo
TotalUnavailableProductionformdoubleNo
TotalActualProductionformdoubleNo
TurnoverProductionformdoubleNo
TotalDurationformdoubleNo
TotalCountformdoubleNo
ReportedDurationformdoubleNo
AllocationStatsLostMoneyformdoubleNo
AllocationStatsLostProductionformdoubleNo
AllocationStatsDurationformdoubleNo
AllocationStatsTotalCountformdoubleNo
TotalAssetCountformintNo
AllocationStatsformList<AllocationStats>No
MTTRformdoubleNo
MTBFformdoubleNo
MostFrequentformAllocationStatsNo
LongestDurationformAllocationStatsNo
AssetTechnicalAvailabilityformList<TurbineAvailabilityStats>No
AssetContractualAvailabilityformList<TurbineAvailabilityStats>No
CombinedStatsForDrillDownformboolNo
CombinedStatsForTopDashboardsformboolNo
AllocationStats Parameters:
NameParameterData TypeRequiredDescription
CategoryIdformstringNo
CategoryformstringNo
CategoryGroupformstringNo
CategorySortIndexformbyteNo
DurationformdoubleNo
DurationPercentageformdoubleNo
ErrorRatePercentageformintNo
CountformintNo
TurbinesformintNo
FrequencyformdoubleNo
LostMoneyformdoubleNo
LostProductionformdoubleNo
MTBFformdoubleNo
MTTRformdoubleNo
DowntimePercentageformdoubleNo
AllocatedPercentageformdoubleNo
AvailableformboolNo
ExcludedformintNo
PerformanceformbyteNo
TurbineIdformint?No
TurbineAvailabilityStats Parameters:
NameParameterData TypeRequiredDescription
TurbineIdformintNo
TurbineNameformstringNo
AvailabilityformdoubleNo

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/turbines/allocations/{Type}/statistics/from/{From}/to/{To} HTTP/1.1 
Host: mdn.bazefield.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"chartType":"String","chartBy":"String","height":0,"width":0,"turbineIds":["String"],"sourceIds":["String"],"categoryIds":["String"],"type":"String","from":"String","to":"String","orderBy":"String","thenBy":"String","allocationCategoriesFilter":["String"],"take":0,"chartGroup":"String","includeAvailable":false,"includeExcluded":false,"inObjectTime":false,"compatibilityMode":false,"compatibilityModeForDrillDown":false}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"totalAvailability":0,"productionAvailability":0,"hasDeratedCategories":false,"totalLostMoney":0,"totalLostProduction":0,"totalUnavailableLostMoney":0,"totalUnavailableProduction":0,"totalActualProduction":0,"turnoverProduction":0,"totalDuration":0,"totalCount":0,"reportedDuration":0,"allocationStatsLostMoney":0,"allocationStatsLostProduction":0,"allocationStatsDuration":0,"allocationStatsTotalCount":0,"totalAssetCount":0,"allocationStats":[{"categoryId":"String","category":"String","categoryGroup":"String","categorySortIndex":0,"duration":0,"durationPercentage":0,"errorRatePercentage":0,"count":0,"turbines":0,"frequency":0,"lostMoney":0,"lostProduction":0,"mtbf":0,"mttr":0,"downtimePercentage":0,"allocatedPercentage":0,"available":false,"excluded":0,"performance":0,"turbineId":0}],"mttr":0,"mtbf":0,"mostFrequent":{"categoryId":"String","category":"String","categoryGroup":"String","categorySortIndex":0,"duration":0,"durationPercentage":0,"errorRatePercentage":0,"count":0,"turbines":0,"frequency":0,"lostMoney":0,"lostProduction":0,"mtbf":0,"mttr":0,"downtimePercentage":0,"allocatedPercentage":0,"available":false,"excluded":0,"performance":0,"turbineId":0},"longestDuration":{"categoryId":"String","category":"String","categoryGroup":"String","categorySortIndex":0,"duration":0,"durationPercentage":0,"errorRatePercentage":0,"count":0,"turbines":0,"frequency":0,"lostMoney":0,"lostProduction":0,"mtbf":0,"mttr":0,"downtimePercentage":0,"allocatedPercentage":0,"available":false,"excluded":0,"performance":0,"turbineId":0},"assetTechnicalAvailability":[{"turbineId":0,"turbineName":"String","availability":0}],"assetContractualAvailability":[{"turbineId":0,"turbineName":"String","availability":0}],"combinedStatsForDrillDown":false,"combinedStatsForTopDashboards":false}