BazeField Services

<back to all web services

ActiveAllocationsGetRequest

Allocations API
Requires Authentication
The following routes are available for this service:
GET, POST/api/objects/allocations/activeGets active allocations for objects.
ActiveAllocationsGetRequest Parameters:
NameParameterData TypeRequiredDescription
ObjectIdsbodyList<string>No
AllocationTypesbodyList<string>No
CategoriesbodyList<string>No
ActiveAllocationsGetResponse Parameters:
NameParameterData TypeRequiredDescription
ResultformDictionary<string, ObjectAllocations>No
ObjectAllocations Parameters:
NameParameterData TypeRequiredDescription
AllocationsformList<ObjectAllocation>No
ObjectAllocation Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
TurbineIdformintNo
ObjectIdformlong?No
SourceIdformint?No
TriggeredByAlarmformObjectAlarmLogEntryNo
CategoryformAllocationCategoryNo
CategoriesformDictionary<string, AllocationCategory>No
StartformDateTimeNo
EndformDateTime?No
LastModifiedformDateTimeNo
ResponseTimeformDateTime?No
LostProductionformdouble?No
LostMoneyformdouble?No
FinishedformboolNo
ManualformboolNo
OverriddenformboolNo
ReallocatedformboolNo
UncertainformboolNo
Suspectformbool?No
TriggerformstringNo
ObjectAlarmLogEntry Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
TurbineIdformint?No
ItemIdformint?No
StartTimeformDateTimeNo
StopTimeformDateTime?No
AckTimeformDateTime?No
UncertainStopTimeformDateTime?No
GuidformGuidNo
RealarmformboolNo
SourceIdformint?No
AlarmCodeformAlarmCodeNo
AlarmTypeformAlarmTypeNo
AlarmformAlarmNo
ModifiedDateformDateTimeNo
VendorLogIdformint?No
ObjectIdformlong?No
AlarmDescriptionformstringNo
AlarmCode Parameters:
NameParameterData TypeRequiredDescription
EventNumberformintNo
Parameter1formint?No
VendorEventTypeformstringNo
AlarmType Enum:
NameValue
Warning0
Alarm1
Status2
Auto4
ConfigPending8
Alarm Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
TypeformAlarmTypeNo
CodeformAlarmCodeNo
VendorAlarmIdformint?No
NameformstringNo
BrakePrgformintNo
DescriptionformstringNo
IsOkAlarmformboolNo
IsAvailableOnAckformbool?No
ClearByOKAlarmformboolNo
CanTriggerAllocationformboolNo
StatusIndicatorformstringNo
RemarksformstringNo
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

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

HTTP + JSV

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

POST /api/objects/allocations/active HTTP/1.1 
Host: mdn.bazefield.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	objectIds: 
	[
		String
	],
	allocationTypes: 
	[
		String
	],
	categories: 
	[
		String
	]
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	result: 
	{
		String: 
		{
			allocations: 
			[
				{
					id: 0,
					turbineId: 0,
					objectId: 0,
					sourceId: 0,
					triggeredByAlarm: 
					{
						id: 0,
						turbineId: 0,
						itemId: 0,
						startTime: 0001-01-01,
						stopTime: 0001-01-01,
						ackTime: 0001-01-01,
						uncertainStopTime: 0001-01-01,
						realarm: False,
						sourceId: 0,
						alarmType: Warning,
						alarm: 
						{
							id: 0,
							type: Warning,
							vendorAlarmId: 0,
							name: String,
							brakePrg: 0,
							description: String,
							isOkAlarm: False,
							isAvailableOnAck: False,
							clearByOKAlarm: False,
							canTriggerAllocation: False,
							statusIndicator: String,
							remarks: String
						},
						modifiedDate: 0001-01-01,
						vendorLogId: 0,
						objectId: 0,
						alarmDescription: String
					},
					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: 
					{
						String: 
						{
							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-01,
					end: 0001-01-01,
					lastModified: 0001-01-01,
					responseTime: 0001-01-01,
					lostProduction: 0,
					lostMoney: 0,
					finished: False,
					manual: False,
					overridden: False,
					reallocated: False,
					uncertain: False,
					suspect: False,
					trigger: String
				}
			]
		}
	}
}