BazeField Services

<back to all web services

GetAllocation

Allocations API
Requires Authentication
The following routes are available for this service:
GET/api/allocations/{Id}
GetAllocation Parameters:
NameParameterData TypeRequiredDescription
IdpathintNo
Allocation Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
TurbineIdformintNo
ObjectIdformstringNo
TurbineNameformstringNo
TurbineTitleformstringNo
SourceIdformintNo
SourceNameformstringNo
RootCauseformstringNo
TriggeredByAlarmformTriggerAlarmNo
CategoryformAllocationCategoryNo
CategoriesformList<AllocationCategory>No
StartformDateTimeNo
EndformDateTimeNo
Start_LocalformDateTimeOffsetNo
End_LocalformDateTimeOffsetNo
DurationformTimeSpanNo
IsUnclassifiedformboolNo
ManualOverrideLossformbool?No
ResponseTimeformDateTime?No
LostProductionformdouble?No
LostMoneyformdouble?No
FinishedformboolNo
ManualformboolNo
OverriddenformboolNo
ReallocatedformboolNo
PendingformboolNo
ChangeLogformstringNo
LastCommentformCommentNo
ExportedformstringNo
LabelsformList<Label>No
Suspectformbool?No
UncertainformboolNo
EventIdformint?No
HasEventformboolNo
HoldCategoryformboolNo
ApprovedformboolNo
TriggerAlarm Parameters:
NameParameterData TypeRequiredDescription
AlarmformAlarmNo
StartformDateTimeNo
EndformDateTime?No
LogIdformintNo
Alarm Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
CodeformintNo
AlarmCodeformAlarmCodeNo
NameformstringNo
BrakePrgformintNo
CanTriggerAllocationformboolNo
DescriptionformstringNo
RemarksformstringNo
ResetPrgformCharNo
IsOkAlarmformboolNo
MetaformDictionary<string, string>No
AlarmTypeformbyteNo
TypeformstringNo
AlarmCode Parameters:
NameParameterData TypeRequiredDescription
EventNumberformintNo
Parameter1formint?No
VendorEventTypeformstringNo
AllocationCategory Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
NameformstringNo
ColorformstringNo
UncategorizedformboolNo
AvailableformboolNo
TypeIdformintNo
GroupformstringNo
SortIndexformbyteNo
PriorityformintNo
EnabledformboolNo
PerformanceformbyteNo
ExcludedformintNo
ParentCategoryIdformint?No
ParentCategoryNameformstringNo
AttributesformDictionary<string, string>No
AllocationTypeformAllocationTypeNo
AllocationType Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
NameformstringNo
AcronymformstringNo
VersionformstringNo
DescriptionformstringNo
FactoryDefaultUrlformstringNo
SortOrderformintNo
LinkedTypeIdformint?No
SubTypeformbool?No
GroupNameformstringNo
DefaultVisibleformboolNo
DomainIdformint?No
DisabledformboolNo
Comment Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
TurbineIdformintNo
TurbineNameformstringNo
TimeStampformDateTimeNo
TextformstringNo
CreatedByformstringNo
CreatedByIdformdecimal?No
LastModifiedformDateTimeNo
TypeformCommentTypeNo
Externalformbool?No
Stickyformbool?No
AllocationIdformint?No
AlarmLogIdformint?No
AlarmIdformint?No
CommandIdformint?No
RelatedInfoformstringNo
ClearedformboolNo
LabelsformList<Label>No
ObjectIdformstringNo
RelatedStartformDateTime?No
RelatedEndformDateTime?No
CommentType Enum:
Turbine
Allocation
Alarm
Label Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
NameformstringNo
ColorformstringNo
TypeformLabelType?No
LabelType Enum:
NameValue
Allocation1
Other2

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

HTTP + CSV

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

GET /api/allocations/{Id} HTTP/1.1 
Host: mdn.bazefield.com 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"id":0,"turbineId":0,"objectId":"String","turbineName":"String","turbineTitle":"String","sourceId":0,"sourceName":"String","rootCause":"String","triggeredByAlarm":{"alarm":{"id":0,"code":0,"name":"String","brakePrg":0,"canTriggerAllocation":false,"description":"String","remarks":"String","resetPrg":"\u0000","isOkAlarm":false,"meta":{"String":"String"},"alarmType":0,"type":"Warning"},"start":"0001-01-01T00:00:00.0000000","end":"0001-01-01T00:00:00.0000000","logId":0},"category":{"id":0,"name":"String","color":"String","uncategorized":false,"available":false,"typeId":0,"group":"String","sortIndex":0,"priority":0,"enabled":false,"performance":0,"excluded":0,"parentCategoryId":0,"parentCategoryName":"String","attributes":{"String":"String"},"allocationType":{"id":0,"name":"String","acronym":"String","version":"String","description":"String","factoryDefaultUrl":"String","sortOrder":0,"linkedTypeId":0,"subType":false,"groupName":"String","defaultVisible":false,"domainId":0,"disabled":false}},"categories":[{"id":0,"name":"String","color":"String","uncategorized":false,"available":false,"typeId":0,"group":"String","sortIndex":0,"priority":0,"enabled":false,"performance":0,"excluded":0,"parentCategoryId":0,"parentCategoryName":"String","attributes":{"String":"String"},"allocationType":{"id":0,"name":"String","acronym":"String","version":"String","description":"String","factoryDefaultUrl":"String","sortOrder":0,"linkedTypeId":0,"subType":false,"groupName":"String","defaultVisible":false,"domainId":0,"disabled":false}}],"start":"0001-01-01T00:00:00.0000000","end":"0001-01-01T00:00:00.0000000","start_Local":"0001-01-01T00:00:00.0000000+00:00","end_Local":"0001-01-01T00:00:00.0000000+00:00","duration":"P739369DT14H20.5818405S","isUnclassified":false,"manualOverrideLoss":false,"responseTime":"0001-01-01T00:00:00.0000000","lostProduction":0,"lostMoney":0,"finished":false,"manual":false,"overridden":false,"reallocated":false,"pending":false,"changeLog":"String","lastComment":{"id":0,"turbineId":0,"turbineName":"String","timeStamp":"0001-01-01T00:00:00.0000000","text":"String","createdBy":"String","createdById":0,"lastModified":"0001-01-01T00:00:00.0000000","type":"Turbine","external":false,"sticky":false,"allocationId":0,"alarmLogId":0,"alarmId":0,"commandId":0,"relatedInfo":"String","cleared":false,"labels":[{"id":0,"name":"String","color":"String","type":"0"}],"objectId":"String","relatedStart":"0001-01-01T00:00:00.0000000","relatedEnd":"0001-01-01T00:00:00.0000000"},"exported":"String","labels":[{"id":0,"name":"String","color":"String","type":"0"}],"suspect":false,"uncertain":false,"eventId":0,"hasEvent":false,"holdCategory":false,"approved":false}