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 .xml suffix or ?format=xml

HTTP + 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>