GET, POST | /api/allocations/statistics/list | Gets allocation statistics for objects/categories. |
---|
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
TurbineIds | body | List<string> | No | |
ObjectIds | body | List<string> | No | |
Categories | body | List<string> | No | |
AllocationType | body | string | No | |
From | body | string | No | |
To | body | string | No | |
ResultsInKWh | body | bool? | No | |
GroupResults | body | bool? | No | |
GroupByObjects | body | bool? | No | |
GroupByCategories | body | bool? | No | |
IntervalSec | body | int? | No | |
IncludeNegativeProduction | body | bool? | No | |
IncludeNegativeLostProduction | body | bool? | No | |
ShowExcluded | body | bool? | No | |
ShowAvailable | body | bool? | No | |
Available | body | bool? | No | |
GroupByLabel | body | bool? | No | |
GroupByLabelAndCategories | body | bool? | No | |
GroupByAlarm | body | bool? | No | |
GroupByAsset | body | bool? | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
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/xml
Content-Type: application/xml
Content-Length: length
<AllocationStatisticsListGetRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Bazefield.Allocations.WebService">
<AllocationType>String</AllocationType>
<Available>false</Available>
<Categories xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>String</d2p1:string>
</Categories>
<From>String</From>
<GroupByAlarm>false</GroupByAlarm>
<GroupByAsset>false</GroupByAsset>
<GroupByCategories>false</GroupByCategories>
<GroupByLabel>false</GroupByLabel>
<GroupByLabelAndCategories>false</GroupByLabelAndCategories>
<GroupByObjects>false</GroupByObjects>
<GroupResults>false</GroupResults>
<IncludeNegativeLostProduction>false</IncludeNegativeLostProduction>
<IncludeNegativeProduction>false</IncludeNegativeProduction>
<IntervalSec>0</IntervalSec>
<ObjectIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>String</d2p1:string>
</ObjectIds>
<ResultsInKWh>false</ResultsInKWh>
<ShowAvailable>false</ShowAvailable>
<ShowExcluded>false</ShowExcluded>
<To>String</To>
<TurbineIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>String</d2p1:string>
</TurbineIds>
</AllocationStatisticsListGetRequest>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <ArrayOfAllocationStatistics xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Bazefield.Allocations.DataModel.Entities"> <AllocationStatistics> <AlarmCode>String</AlarmCode> <AssetCount>0</AssetCount> <AveragePrice>0</AveragePrice> <CategoryId>0</CategoryId> <ExcludedActualProd>0</ExcludedActualProd> <ExcludedActualProdCurrency>0</ExcludedActualProdCurrency> <ExcludedCount>0</ExcludedCount> <ExcludedDuration>0</ExcludedDuration> <ExcludedLostProd>0</ExcludedLostProd> <ExcludedLostProdCurrency>0</ExcludedLostProdCurrency> <ExcludedTheoreticalProd>0</ExcludedTheoreticalProd> <ExludedTheoreticalProdCurrency>0</ExludedTheoreticalProdCurrency> <ObjectId>String</ObjectId> <ObjectKey>String</ObjectKey> <PBA>0</PBA> <ReportedDuration>0</ReportedDuration> <TBA>0</TBA> <TimeStamp>0001-01-01T00:00:00</TimeStamp> <TotalActualProd>0</TotalActualProd> <TotalActualProdCurrency>0</TotalActualProdCurrency> <TotalCount>0</TotalCount> <TotalDuration>0</TotalDuration> <TotalLostProd>0</TotalLostProd> <TotalLostProdCurrency>0</TotalLostProdCurrency> <TotalPBA>0</TotalPBA> <TotalTBA>0</TotalTBA> <TotalTheoreticalProd>0</TotalTheoreticalProd> <TotalTheoreticalProdCurrency>0</TotalTheoreticalProdCurrency> <TotalUnavailableCount>0</TotalUnavailableCount> <TotalUnavailableDuration>0</TotalUnavailableDuration> <TurbineId>0</TurbineId> <UnavailableDuration>0</UnavailableDuration> <UnavailableLostProd>0</UnavailableLostProd> <UnavailableLostProdCurrency>0</UnavailableLostProdCurrency> <Unavailablecount>0</Unavailablecount> </AllocationStatistics> </ArrayOfAllocationStatistics>