1. Overview
The service contains a collection of RESTful service calls to retrieve and update Waste management domain related information in PA relevant to manufacturing execution.
Descriptions of these functions can be found in the section headers for each collection of relevant resources.
1.2. Tags
-
comments-controller : Comments Controller
-
monitoring-controller : Monitoring Controller
-
time-selection-controller : Time Selection Controller
-
user-settings-controller : User Settings Controller
-
waste-event-controller : Waste Event Controller
-
waste-events-viewer-controller : Waste Events Viewer Controller
2. Resources
2.1. Comments-controller
Comments Controller
2.1.1. Add a comment
POST /wasteEvents/comments
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Query |
commentType |
Parameter specifying the type of comment. |
enum (WasteCause, WasteAction) |
Query |
wasteEventId |
id of the entity to which comments are to be added, it can be wasteEventId. |
integer (int64) |
Body |
commentInfo |
commentInfo |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
Ok |
|
400 |
Bad Request |
No Content |
401 |
Unauthorized |
No Content |
500 |
Internal Server Error |
No Content |
503 |
Service Unavailable |
No Content |
2.1.2. Get the history of comments for the given root id
GET /wasteEvents/comments
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Query |
commentType |
Parameter specifying the type of comment. |
enum (WasteCause, WasteAction) |
Query |
wasteEventId |
id of the entity for which comments are required waste event id. |
integer (int64) |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
Ok |
< CommentInfo > array |
401 |
Unauthorized |
No Content |
500 |
Internal Server Error |
No Content |
503 |
Service Unavailable |
No Content |
2.1.3. Update a comment
PUT /wasteEvents/comments
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Query |
commentType |
Parameter specifying the type of comment. |
enum (WasteCause, WasteAction) |
Query |
wasteEventId |
WasteEventId of the entity of which comment is to be updated |
integer (int64) |
Body |
commentInfo |
commentInfo |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
Ok |
|
401 |
Unauthorized |
No Content |
422 |
Unprocessable Entity |
No Content |
500 |
Internal Server Error |
No Content |
503 |
Service Unavailable |
No Content |
2.1.4. Get the details of a comment
GET /wasteEvents/comments/{commentId}
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
commentId |
commentId |
integer (int64) |
Query |
commentType |
Parameter specifying the type of comment. |
enum (WasteCause, WasteAction) |
Query |
rootId |
id of the entity for which comment is required, it can be wasteEventId. |
integer (int64) |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
Ok |
|
401 |
Unauthorized |
No Content |
404 |
Not Found |
No Content |
500 |
Internal Server Error |
No Content |
503 |
Service Unavailable |
No Content |
2.1.5. Delete the waste event comment
DELETE /wasteEvents/comments/{commentId}
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
commentId |
commentId |
integer (int64) |
Query |
commentType |
Parameter specifying the type of comment. |
enum (WasteCause, WasteAction, NonProductiveDetail) |
Query |
rootId |
id of the entity Of whose comment is to be deleted, it can be waste event Id |
integer (int64) |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
Ok |
object |
400 |
Bad Request |
No Content |
401 |
Unauthorized |
No Content |
500 |
Internal Server Error |
No Content |
503 |
Service Unavailable |
No Content |
2.2. Monitoring-controller
Monitoring Controller
2.2.1. Fetches status for proficy message bridge
GET /monitoring-viewer/messageBridgeStatus
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
204 |
No Content, no service exists |
|
401 |
Unauthorized |
No Content |
500 |
Internal Server Error |
2.2.2. Fetches status for proficy message bridge
GET /monitoring-viewer/messagingStatus
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
204 |
No Content, no service exists |
|
401 |
Unauthorized |
No Content |
500 |
Internal Server Error |
2.3. Time-selection-controller
Time Selection Controller
2.3.1. Fetch the timerange based on the selected timeselection
GET /time-selection
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Query |
equipmentId |
Comma separated unit ids |
< string > array(multi) |
Query |
equipmentType |
Type of the equipment - 1 for Units and 2 for Lines. Based on equipmentType it will either return Unit based Kpi or Line based Kpi for the specified unitIds |
integer (int32) |
Query |
timeSelection |
Time selection values |
integer (int32) |
2.4. User-settings-controller
User Settings Controller
2.4.1. Create User settings for the logged in user
POST /v2/settings
Responses
HTTP Code | Description | Schema |
---|---|---|
201 |
Created |
|
204 |
No Content, Error retrieving created user settings |
|
400 |
Invalid data supplied |
|
401 |
User Unauthorized |
No Content |
404 |
App ID not found in privilege set |
|
409 |
Conflict, User Setting already exists. Use a PUT to update |
|
500 |
Internal Server Error |
2.4.2. Get User settings for the logged in User
GET /v2/settings
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Query |
appId |
appId |
integer (int32) |
Query |
viewName |
viewName |
string |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
400 |
Invalid data supplied |
|
401 |
User Unauthorized |
No Content |
404 |
Not found, no user setting found for the user |
|
500 |
Internal Server Error |
2.4.3. Update User settings for the logged in user
PUT /v2/settings
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
400 |
Invalid data supplied |
|
401 |
User Unauthorized |
No Content |
404 |
Not Found, There is no saved User settings for the logged in user |
|
500 |
Internal Server Error |
2.4.4. Delete User settings for the logged in user
DELETE /v2/settings
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Query |
appId |
appId |
integer (int32) |
Query |
viewName |
viewName |
string |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
object |
204 |
Success |
object |
400 |
Invalid data supplied |
|
401 |
User Unauthorized |
No Content |
404 |
Not Found, User Setting not found |
|
500 |
Internal Server Error |
2.4.5. Get Privilege Sets
GET /v2/settings/apps
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
< PrivilegeSet > array |
400 |
Invalid data supplied |
|
401 |
User Unauthorized |
No Content |
404 |
Not found, no user setting found for the user |
|
500 |
Internal Server Error |
2.5. Waste-event-controller
Waste Event Controller
2.5.1. Create Waste Event
POST /wasteEvents
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Query |
creationType |
creationType |
enum (TimeBasedWasteEvent, ProductionBasedWasteEvent) |
Body |
wasteEventForCreate |
wasteEventForCreate |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
400 |
Bad Request |
|
401 |
Unauthorized |
|
404 |
Not Found |
|
500 |
Internal Server error |
2.5.2. Copy Waste Event Reasons
POST /wasteEvents/copyReasons
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
< WasteEventResponse > array |
400 |
Bad Request |
|
401 |
Unauthorized |
|
404 |
Not Found |
|
500 |
Internal Server error |
2.5.3. Update waste event
PUT /wasteEvents/{id}
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
id |
id |
integer (int64) |
Body |
wasteEventForUpdate |
wasteEventForUpdate |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
400 |
Bad Request |
|
401 |
Unauthorized |
|
404 |
Not Found |
|
500 |
Internal Server error |
2.5.4. delete waste event
DELETE /wasteEvents/{id}
Responses
HTTP Code | Description | Schema |
---|---|---|
204 |
No Content |
|
400 |
Invalid data supplied. See message for details. |
No Content |
401 |
Unauthorized |
No Content |
403 |
Forbidden |
|
404 |
Not Found |
No Content |
422 |
Unprocessable Entity |
|
503 |
Service Unavailable |
2.6. Waste-events-viewer-controller
Waste Events Viewer Controller
2.6.1. Get all waste events
GET /wasteEventsViewer
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Query |
associatedProductionEventId |
To filter waste events for a Production Event |
integer (int64) |
Query |
endTime |
End time (incase of timeSelection = 7) in ISO 8601 format (yyyy-MM-dd’T’HH:mm:ss.SSSZ) |
string (date-time) |
Query |
includeProductionEventBased |
Whether to include production event based waste events. By default would include |
boolean |
Query |
page |
Results page you want to retrieve (0..N) |
integer (int32) |
Query |
size |
Number of records per page. |
integer (int32) |
Query |
startTime |
Start time (incase of timeSelection = 7) in ISO 8601 format (yyyy-MM-dd’T’HH:mm:ss.SSSZ) |
string (date-time) |
Query |
timeSelection |
timeSelection |
enum (currentDay, prevDay, currentWeek, prevWeek, nextWeek, nextDay, custom, currentShift, previousShift, nextShift) |
Query |
unitIds |
List of Unit Ids, Can also set comma seperated unit ids for this property |
string |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
object |
400 |
BadRequest |
No Content |
401 |
Unauthorized |
No Content |
403 |
Forbidden, Authenticated user is not known by MES |
No Content |
2.6.2. Fetches departments,lines and units information
GET /wasteEventsViewer/departments
Parameters
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Query |
expandLines |
Flag specifying whether lines information needs to be included under departments |
boolean |
|
Query |
expandUnits |
Flag specifying whether units information needs to be included under lines |
boolean |
|
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
< DepartmentInfo > array |
401 |
Unauthorized |
No Content |
403 |
Forbidden, Authenticated user is not known by the application |
No Content |
2.6.3. Get all Waste Event Faults
GET /wasteEventsViewer/faults
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Query |
sourceUnitId |
sourceUnitId to get WasteFault Details |
integer (int64) |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
< FaultInfo > array |
401 |
Unauthorized |
|
403 |
Forbidden |
|
404 |
Not Found |
|
503 |
Service Unavailable |
2.6.4. Get locations info
GET /wasteEventsViewer/locations
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
401 |
Unauthorized |
No Content |
403 |
Forbidden, Authenticated user is not known by the application |
No Content |
2.6.5. Get waste measurements
GET /wasteEventsViewer/measurements
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
< WasteMeasurementRecord > array |
400 |
Invalid data supplied. See message for details. |
No Content |
401 |
Unauthorized |
No Content |
403 |
Forbidden |
|
404 |
Not Found |
No Content |
422 |
Unprocessable Entity |
|
503 |
Service Unavailable |
2.6.6. Get permissions info
GET /wasteEventsViewer/permissions
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
401 |
Unauthorized |
No Content |
403 |
Forbidden, Authenticated user is not known by the application |
No Content |
2.6.7. Get ProductionEvents info
GET /wasteEventsViewer/productionEvents
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Query |
endTime |
End time in ISO-8601 format(YYYY-MM-DDThh:mm:ssZ), in case of custom time selection |
string (date-time) |
Query |
eventName |
Event Name |
string |
Query |
page |
Results page you want to retrieve (0..N) |
integer (int32) |
Query |
size |
Number of records per page. |
integer (int32) |
Query |
startTime |
Start time in ISO-8601 format(YYYY-MM-DDThh:mm:ssZ), in case of custom time selection |
string (date-time) |
Query |
timeSelection |
timeSelection |
enum (currentDay, prevDay, currentWeek, prevWeek, nextWeek, nextDay, custom, currentShift, previousShift, nextShift) |
Query |
unitIds |
List of Unit Ids, Can also set comma seperated unit ids for this property |
string |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
object |
400 |
Bad Request |
|
401 |
Unauthorized |
|
404 |
Not Found |
|
500 |
Internal Server error |
2.6.8. Get all Waste Event Types
GET /wasteEventsViewer/types
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
< WasteEventTypeRecord > array |
401 |
Unauthorized |
|
403 |
Forbidden |
|
404 |
Not Found |
|
503 |
Service Unavailable |
2.6.9. Get Waste Event Type
GET /wasteEventsViewer/types/{id}
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
id |
id to get WasteEventType Details |
integer (int64) |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
401 |
Unauthorized |
|
403 |
Forbidden |
|
404 |
Not Found |
|
503 |
Service Unavailable |
2.6.10. Fetches unit preferences for the given waste event state
GET /wasteEventsViewer/unit-preferences
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
401 |
Unauthorized |
No Content |
403 |
Forbidden, Authenticated user is not known by waste Application |
No Content |
404 |
Not Found |
No Content |
2.6.11. Fetches reasons and fault information for the given unit Id
GET /wasteEventsViewer/units/{unitId}/machineData
Parameters
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Path |
unitId |
Unit id for which reasons and faults information needs to be fetched |
integer (int64) |
|
Query |
expandFaults |
Flag to indicate whether faults information should be included in the response |
boolean |
|
Query |
expandReasons |
Flag to indicate whether reasons information should be included in the response |
boolean |
|
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
401 |
Unauthorized |
No Content |
403 |
Forbidden, Authenticated user is not known by the application |
No Content |
2.6.12. Get waste event by id
GET /wasteEventsViewer/{id}
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
400 |
Bad Request |
|
401 |
Unauthorized |
|
404 |
Not Found |
|
500 |
Internal Server error |
2.6.13. Get waste event History records
GET /wasteEventsViewer/{wasteId}/history
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
wasteId |
Waste Event id to get history records |
integer (int64) |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
400 |
Invalid data supplied. See message for details. |
No Content |
401 |
Unauthorized |
No Content |
403 |
Forbidden |
|
404 |
Not Found |
No Content |
422 |
Unprocessable Entity |
|
503 |
Service Unavailable |
3. Definitions
3.1. AssetInfo
Name | Description | Schema |
---|---|---|
assetId |
Id of the asset |
integer (int64) |
name |
Name of the asset |
string |
3.3. CollectionResource«ReasonHeaderInfo»
Name | Schema |
---|---|
collection |
|
content |
< ReasonHeaderInfo > array |
links |
< Link > array |
3.4. CollectionResource«ReasonInfo»
Name | Schema |
---|---|
collection |
|
content |
< ReasonInfo > array |
links |
< Link > array |
3.5. CommentInfo
Name | Description | Schema |
---|---|---|
commentId |
The Id of the comment record. |
integer (int64) |
commentText |
comment text |
string |
commentTime |
comment creation time |
string (date-time) |
threadId |
Id of the Thread the comment belongs to. |
integer (int64) |
user |
comment owner |
3.6. CopyReasonsForUpdate
Name | Schema |
---|---|
destinationWasteEvents |
< integer (int64) > array |
sourceWasteEvent |
integer (int64) |
3.7. DepartmentInfo
Name | Schema |
---|---|
assetId |
integer (int64) |
lines |
< Resource«LineInfo» > array |
name |
string |
type |
enum (Department, Line, Unit, Group, Variable, ProcessOrder) |
3.9. FaultInfo
Name | Description | Schema |
---|---|---|
faultId |
Fault Id |
integer (int64) |
name |
Fault Name |
string |
reason1 |
Reason1 Information |
|
reason2 |
Reason2 Information |
|
reason3 |
Reason3 Information |
|
reason4 |
Reason4 Information |
3.11. IdNameValue
Name | Description | Schema |
---|---|---|
id |
The unique ID of the entity |
integer (int64) |
name |
The name of the entity |
string |
3.12. LineInfo
Name | Schema |
---|---|
assetId |
integer (int64) |
name |
string |
type |
enum (Department, Line, Unit, Group, Variable, ProcessOrder) |
units |
< Resource«UnitInfo» > array |
3.13. Link
Name | Schema |
---|---|
deprecation |
string |
href |
string |
hreflang |
string |
media |
string |
rel |
string |
templated |
boolean |
title |
string |
type |
string |
3.14. LocationInfo
Name | Description | Schema |
---|---|---|
locations |
Locations for master unit |
< AssetInfo > array |
masterUnitId |
Master unit id |
integer (int64) |
masterUnitName |
Master unit name |
string |
3.15. PermissionsResponse
Name | Description | Schema |
---|---|---|
permissions |
permissions |
< string, boolean > map |
3.16. PrivilegeSet
Name | Schema |
---|---|
category |
string |
description |
string |
displayName |
string |
icon |
string |
id |
integer (int32) |
scope |
string |
3.17. ReasonHeaderInfo
Name | Description | Schema |
---|---|---|
levelName |
Reason level name |
string |
reasonLevel |
Reason level |
integer (int32) |
3.18. ReasonInfo
Name | Description | Schema |
---|---|---|
categoryId |
Downtime Category Id |
integer (int64) |
categoryName |
Downtime Category Name |
string |
children |
Child Reason Information |
< ReasonInfo > array |
commentRequired |
boolean |
|
nodeId |
Reason Node Id |
integer (int64) |
parentNodeId |
Reason Parent Node Id |
integer (int64) |
reasonId |
Reason Id |
integer (int64) |
reasonName |
Reason Name |
string |
treeId |
Reason Tree Id |
integer (int64) |
3.19. Resource«LineInfo»
Name | Schema |
---|---|
assetId |
integer (int64) |
links |
< Link > array |
name |
string |
type |
enum (Department, Line, Unit, Group, Variable, ProcessOrder) |
units |
< Resource«UnitInfo» > array |
3.20. Resource«ServiceHealthStatus»
Name | Description | Schema |
---|---|---|
isRunning |
The status of the service. Returns true if running, else false |
boolean |
links |
< Link > array |
|
reason |
Reason why the service is not running. Returned only when the service is down and if there is a reason for failure |
string |
3.21. Resource«TopNReasonInfo»
Name | Description | Schema |
---|---|---|
level1 |
Reason Information Level 1 |
|
level2 |
Reason Information Level 2 |
|
level3 |
Reason Information Level 3 |
|
level4 |
Reason Information Level 4 |
|
links |
< Link > array |
3.22. Resource«UnitInfo»
Name | Schema |
---|---|
assetId |
integer (int64) |
isSlave |
integer (int32) |
lineId |
integer (int64) |
lineName |
string |
links |
< Link > array |
name |
string |
type |
enum (Department, Line, Unit, Group, Variable, ProcessOrder) |
3.23. ServiceHealthStatus
Name | Description | Schema |
---|---|---|
isRunning |
The status of the service. Returns true if running, else false |
boolean |
reason |
Reason why the service is not running. Returned only when the service is down and if there is a reason for failure |
string |
3.24. TimeSelectionResource
Name | Description | Schema |
---|---|---|
endTime |
End time in ISO-8601 format |
string |
eventEpochEndTime |
The end time in epoch second format |
integer (int64) |
eventEpochStartTime |
The start time in epoch second format |
integer (int64) |
links |
< Link > array |
|
startTime |
Start time in ISO-8601 format |
string |
3.25. TopNReasonInfo
Name | Description | Schema |
---|---|---|
level1 |
Reason Information Level 1 |
|
level2 |
Reason Information Level 2 |
|
level3 |
Reason Information Level 3 |
|
level4 |
Reason Information Level 4 |
3.26. UnitInfo
Name | Schema |
---|---|
assetId |
integer (int64) |
isSlave |
integer (int32) |
lineId |
integer (int64) |
lineName |
string |
name |
string |
type |
enum (Department, Line, Unit, Group, Variable, ProcessOrder) |
3.27. UserSettingRequest
Name | Description | Schema |
---|---|---|
appId |
integer (int32) |
|
data |
The application specific settings, Eg:- 'App Name' : {'property1' : 'value' , 'property2' : 'value'} } |
object |
viewName |
string |
3.28. UserSettingResource
Name | Description | Schema |
---|---|---|
appId |
integer (int32) |
|
data |
object |
|
defaultSetting |
Example : |
boolean |
links |
< Link > array |
|
viewName |
string |
3.29. WasteEvent
WasteEvent Object
Name | Description | Schema |
---|---|---|
actionCommentId |
The comment thread Id for action |
integer (int64) |
actionLevel1Id |
The level 1 action taken on regard to this waste event record |
integer (int64) |
actionLevel2Id |
The level 2 action taken on regard to this waste event record |
integer (int64) |
actionLevel3Id |
The level 3 action taken on regard to this waste event record |
integer (int64) |
actionLevel4Id |
The level 4 action taken on regard to this waste event record |
integer (int64) |
amount |
Amount of waste generated during this waste event |
number (double) |
amountConversionDivisor |
Amount conversion factor. For displaying with wasteMeasurement label divide the amount with this value. |
number (double) |
associatedProductionEventId |
The Production Event id this waste event is associated to in case this is an Event based waste |
integer (int64) |
associatedProductionEventNum |
The Production Event Number this waste event is associated to in case this is an Event based waste |
string |
causeCommentId |
The comment thread Id for cause |
integer (int64) |
confirmed |
Based on whether reasons are filled or not depends on display options (can set for reasons only or for reasons and actions) |
boolean |
entryOn |
The time when this record was inserted in PA DB |
string (date-time) |
masterUnitId |
The master unit where this waste is produced |
integer (int64) |
productId |
Product which ended up as waste |
integer (int64) |
reasonLevel1Id |
The level 1 reason what caused this waste |
integer (int64) |
reasonLevel2Id |
The level 2 reason what caused this waste |
integer (int64) |
reasonLevel3Id |
The level 3 reason what caused this waste |
integer (int64) |
reasonLevel4Id |
The level 4 reason what caused this waste |
integer (int64) |
sourceUnitId |
The exact unit Id (slave or master) where this waste is produced |
integer (int64) |
timestamp |
The time(ISO 8601) when this waste is generated |
string (date-time) |
user |
User who raised this waste event |
string |
wasteEventFaultId |
Fault associated with this waste event |
integer (int64) |
wasteEventId |
The unique ID for this Waste Event |
integer (int64) |
wasteEventTypeId |
Waste Event Type which this waste event comes under |
integer (int64) |
wasteMeasurementId |
Waste Measurement used to measure the waste amount |
integer (int64) |
3.30. WasteEventCreatorMachineData
Name | Description | Schema |
---|---|---|
actionHeaders |
Reason Header Information |
|
actionOptions |
Reason Information |
|
earliestPossibleTime |
Earliest Possible Time |
string (date-time) |
faultOptions |
Fault Information |
< FaultInfo > array |
latestPossibleTime |
Latest Possible Time |
string (date-time) |
reasonHeaders |
Reason Header Information |
|
reasonOptions |
Reason Information |
|
top5Actions |
Top 5 Actions Information |
< Resource«TopNReasonInfo» > array |
top5Reasons |
Top 5 Reasons Information |
< Resource«TopNReasonInfo» > array |
3.31. WasteEventForCreate
Name | Schema |
---|---|
actionLevel1Id |
integer (int64) |
actionLevel2Id |
integer (int64) |
actionLevel3Id |
integer (int64) |
actionLevel4Id |
integer (int64) |
amount |
number (double) |
associatedProductionEventId |
integer (int64) |
causeCommentText |
string |
masterUnitId |
integer (int64) |
reasonLevel1Id |
integer (int64) |
reasonLevel2Id |
integer (int64) |
reasonLevel3Id |
integer (int64) |
reasonLevel4Id |
integer (int64) |
sourceUnitId |
integer (int64) |
timestamp |
string (date-time) |
wasteEventFaultId |
integer (int64) |
wasteEventTypeId |
integer (int64) |
wasteMeasurementId |
integer (int64) |
3.32. WasteEventForUpdate
Name | Schema |
---|---|
actionLevel1Id |
integer (int64) |
actionLevel2Id |
integer (int64) |
actionLevel3Id |
integer (int64) |
actionLevel4Id |
integer (int64) |
amount |
number (double) |
associatedProductionEventId |
integer (int64) |
causeComment |
integer (int64) |
masterUnitId |
integer (int64) |
reasonLevel1Id |
integer (int64) |
reasonLevel2Id |
integer (int64) |
reasonLevel3Id |
integer (int64) |
reasonLevel4Id |
integer (int64) |
sourceUnitId |
integer (int64) |
timestamp |
string (date-time) |
wasteEventFaultId |
integer (int64) |
wasteEventTypeId |
integer (int64) |
wasteMeasurementId |
integer (int64) |
3.33. WasteEventResponse
Name | Description | Schema |
---|---|---|
actionCommentId |
integer (int64) |
|
actionHeaders |
Action Header Information |
|
actionLevel1Id |
integer (int64) |
|
actionLevel1Name |
string |
|
actionLevel2Id |
integer (int64) |
|
actionLevel2Name |
string |
|
actionLevel3Id |
integer (int64) |
|
actionLevel3Name |
string |
|
actionLevel4Id |
integer (int64) |
|
actionLevel4Name |
string |
|
actionOptions |
Actions Information |
|
amount |
number (double) |
|
amountConversionDivisor |
number (double) |
|
asset |
Asset Information |
|
associatedProductionEventId |
integer (int64) |
|
associatedProductionEventNum |
string |
|
causeCommentId |
integer (int64) |
|
confirmed |
boolean |
|
department |
Department Information |
|
entryOn |
string (date-time) |
|
faultOptions |
Fault Information |
< FaultInfo > array |
line |
Line Information |
|
machineOptions |
Machine Information |
< AssetInfo > array |
masterUnitId |
integer (int64) |
|
masterUnitName |
string |
|
permissions |
Permission Information |
< string, boolean > map |
productId |
integer (int64) |
|
productName |
string |
|
reasonHeaders |
Reason Header Information |
|
reasonLevel1Id |
integer (int64) |
|
reasonLevel1Name |
string |
|
reasonLevel2Id |
integer (int64) |
|
reasonLevel2Name |
string |
|
reasonLevel3Id |
integer (int64) |
|
reasonLevel3Name |
string |
|
reasonLevel4Id |
integer (int64) |
|
reasonLevel4Name |
string |
|
reasonOptions |
Reason Information |
|
sourceUnitId |
integer (int64) |
|
sourceUnitName |
string |
|
timestamp |
string (date-time) |
|
top5Actions |
Top 5 Actions Information |
< Resource«TopNReasonInfo» > array |
top5Reasons |
Top N Reason Information |
< Resource«TopNReasonInfo» > array |
user |
string |
|
wasteEventFaultId |
integer (int64) |
|
wasteEventFaultName |
string |
|
wasteEventId |
integer (int64) |
|
wasteEventTypeId |
integer (int64) |
|
wasteEventTypeName |
string |
|
wasteMeasurement |
< WasteMeasurementRecord > array |
|
wasteMeasurementId |
integer (int64) |
|
wasteMeasurementName |
string |
3.34. WasteEventTypeRecord
Name | Schema |
---|---|
readOnly |
boolean |
wasteEventTypeId |
integer (int64) |
wasteEventTypeName |
string |
3.35. WasteMeasurementRecord
Name | Description | Schema |
---|---|---|
conversionFactor |
Constant used to convert waste amount |
number (double) |
conversionSpecVariableId |
Variable Id whose targetSpec(based on the product) would be used as conversion factor in case specified |
integer (int64) |
id |
The unique ID for this Waste Measurement |
integer (int64) |
masterUnitId |
Unit to which this measurement record belongs |
integer (int64) |
name |
Label of this Measurement |
string |
4. Security
4.1. oauth
Type : oauth2
Flow : accessCode
Token URL : https://Alpha2-pa/uaa/oauth/authorize
Token URL : https://Alpha2-pa/uaa/oauth/token
Name | Description |
---|---|
default |
Default oauth2 scope. |