1. Overview
Core for Operator Log Application
1.1. License information
License : Copyright (c) 2020 GE. All Rights Reserved. GE Confidential: Restricted Internal Distribution
License URL : https://github.build.ge.com/plantapps/operator-log-service
Terms of service : null
2. Resources
2.1. Operator-log-controller
Operator Log Controller
2.1.1. Creates a new event
POST /v1/operatorLogEvents/events
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Body |
eventRecord |
Log EventRecord object to add a new event |
Responses
HTTP Code | Description | Schema |
---|---|---|
201 |
Created |
|
400 |
Bad Request |
|
401 |
Unauthorized |
No Content |
403 |
Forbidden |
|
422 |
Unprocessable Entity |
2.1.2. Fetches Events
GET /v1/operatorLogEvents/events
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Query |
assignTo |
assign to |
string |
Query |
endTime |
End time (incase of timeSelection = 7) in ISO 8601 format (yyyy-MM-dd’T’HH:mm:ss.SSSZ) |
string (date-time) |
Query |
eventType |
eventType |
enum (LogEntries, Incidents, HandOffs) |
Query |
line |
List of Line Id’s, Can also set comma seperated Line ids |
string |
Query |
startTime |
Start time (incase of timeSelection = 7) in ISO 8601 format (yyyy-MM-dd’T’HH:mm:ss.SSSZ) |
string (date-time) |
Query |
status |
status |
enum (Open, InProgress, Closed) |
Query |
timeSelection |
timeSelection |
enum (CurrentDay, PreviousDay, CurrentWeek, PreviousWeek, NextWeek, NextDay, Custom, CurrentShift, PreviousShift, NextShift) |
Query |
unit |
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 |
No Content |
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Requested Resource Not Found |
No Content |
500 |
Internal Server Error |
No Content |
2.1.3. Fetches Events
GET /v1/operatorLogEvents/id
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
object |
400 |
Bad request |
No Content |
401 |
Unauthorized |
No Content |
403 |
Forbidden |
No Content |
404 |
Requested Resource Not Found |
No Content |
500 |
Internal Server Error |
No Content |
2.1.4. fetches the timeselect
GET /v1/operatorLogEvents/timeSelection
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Query |
endTime |
End time (incase of timeSelection = 7) in ISO 8601 format (yyyy-MM-dd’T’HH:mm:ss.SSSZ) |
string (date-time) |
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, PreviousDay, CurrentWeek, PreviousWeek, NextWeek, NextDay, Custom, CurrentShift, PreviousShift, NextShift) |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
object |
204 |
No Content |
No Content |
400 |
Bad Request |
No Content |
401 |
Unauthorized |
No Content |
500 |
Internal Server Error |
No Content |
2.1.5. updating the status
PUT /v1/operatorLogEvents/updateStatus
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Body |
eventRecord |
Log EventRecord Object to update the status |
Responses
HTTP Code | Description | Schema |
---|---|---|
201 |
Created |
|
400 |
Bad Request |
|
401 |
Unauthorized |
No Content |
403 |
Forbidden |
|
422 |
Unprocessable Entity |
3. Definitions
3.1. BaseResponse
Name | Schema |
---|---|
data |
object |
links |
< Link > array |
message |
string |
statusCode |
integer (int32) |
3.4. IdNameValue
Name | Description | Schema |
---|---|---|
id |
The unique ID of the entity |
integer (int64) |
name |
The name of the entity |
string |
3.6. OperateLogEventUpdate
Name | Description | Schema |
---|---|---|
logDetailId |
Log DetailsId defines the logtypeID |
integer (int64) |
statusId |
status of the log event |
integer (int64) |
3.7. OperatorLogEvent
Name | Description | Schema |
---|---|---|
assignedTo |
assigned user of the log event |
|
cause1 |
The Level 1 Cause (Reason) of the Event record. |
|
cause2 |
The Level 2 Cause (Reason) of the Event record. |
|
cause3 |
The Level 3 Cause (Reason) of the Event record. |
|
cause4 |
The Level 4 Cause (Reason) of the Event record. |
|
comment |
comment id of the log event |
|
endTime |
The end time of the log event |
string (date-time) |
entryOn |
The entry on time of the log event |
string (date-time) |
line |
productionLineId of Log Event |
|
linkedEvents |
Linked events |
object |
logDetailId |
Unique identifier of this Log Event record |
integer (int64) |
logType |
Log Type defines the type of Log Event |
|
sourceProductionUnitId |
sourceProductionUnitId od Log Event |
integer (int64) |
startTime |
The start time of the log event starts |
string (date-time) |
statusId |
status of the log event |
|
summary |
summary of the log event |
string |
unit |
productionUnitId of Log Event |
|
user |
The user defines the log creator of Event Record. |
3.8. OperatorLogEventCreate
Name | Description | Schema |
---|---|---|
assignedTo |
assigned user of the log event |
integer (int64) |
lineId |
lineId |
integer (int64) |
linkedEvents |
Linked events |
object |
logType |
Log Type defines the type of Log Event |
integer (int64) |
statusId |
status of the log event |
integer (int64) |
summary |
summary of the log event |
string |
unitId |
productionUnitId of Log Event |
integer (int64) |
4. Security
4.1. access_token
Type : oauth2
Flow : accessCode
Token URL : https://hostname/uaa/oauth/authorize
Token URL : https://hostname/uaa/oauth/token
Name | Description |
---|---|
default |
Default oauth2 scope. |
4.2. resource_owner
Type : oauth2
Flow : password
Token URL : https://hostname/uaa/oauth/token
Name | Description |
---|---|
default |
Default oauth2 scope. |
4.3. implicit_grant
Type : oauth2
Flow : implicit
Token URL : https://hostname/uaa/oauth/authorize
Name | Description |
---|---|
default |
Default oauth2 scope. |
4.4. client_creds
Type : oauth2
Flow : application
Token URL : https://hostname/uaa/oauth/token
Name | Description |
---|---|
default |
Default oauth2 scope. |