1. Overview
The service contains a collection of RESTful service calls to retrieve various information relevant to manufacturing execution.
Descriptions of these functions can be found in the section headers for each collection of relevant resources.
1.2. Tags
-
batch-data-controller : Batch Data Controller
-
historian-data-controller : Historian Data Controller
-
historians-tag-data-controller : Historians Tag Data Controller
-
kpi-data-controller : KPI Data Controller
-
process-order-data-controller : Process Order Data Controller
-
product-data-controller : Product Data Controller
-
site-name-controller : Site Name Controller
-
tag-data-controller : Tag Data Controller
-
variable-data-controller : Variable Data Controller
2. Resources
2.1. Batch-data-controller
Batch Data Controller
2.1.1. getBatchData
GET /mesdataservice/v1/batchdata
Parameters
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Query |
asset |
asset |
string |
|
Query |
bom |
bom |
integer (int64) |
|
Query |
departmentId |
departmentId |
integer (int64) |
|
Query |
endTime |
endTime |
string (date-time) |
|
Query |
isGoldenBatch |
isGoldenBatch |
boolean |
|
Query |
lineId |
lineId |
integer (int64) |
|
Query |
name |
name |
string |
|
Query |
pageNumber |
pageNumber |
integer (int64) |
|
Query |
pageSize |
pageSize |
integer (int64) |
|
Query |
product |
product |
string |
|
Query |
quantity |
quantity |
string |
|
Query |
sortCol |
sortCol |
string |
|
Query |
sortOrder |
sortOrder |
string |
|
Query |
startTime |
startTime |
string (date-time) |
|
Query |
status |
status |
string |
|
Query |
unitId |
unitId |
integer (int64) |
2.1.2. getAdjacentBatchData
GET /mesdataservice/v1/batchdata/adjacentbatchdata
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Query |
endTime |
endTime |
string (date-time) |
Query |
eventId |
eventId |
integer (int64) |
Query |
startTime |
startTime |
string (date-time) |
2.1.3. getbatchProductTraverse
GET /mesdataservice/v1/batchdata/batchproducttraverse
Parameters
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Query |
endTime |
endTime |
string (date-time) |
|
Query |
eventId |
eventId |
integer (int64) |
|
Query |
isIncremental |
isIncremental |
integer (int64) |
|
Query |
nextOrPrevious |
nextOrPrevious |
string |
|
Query |
startTime |
startTime |
string (date-time) |
2.1.4. getNextOrPreviousBatch
GET /mesdataservice/v1/batchdata/batchtraverse
Parameters
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Query |
endTime |
endTime |
string (date-time) |
|
Query |
eventId |
eventId |
integer (int64) |
|
Query |
isIncremental |
isIncremental |
integer (int64) |
|
Query |
nextOrPrevious |
nextOrPrevious |
string |
|
Query |
startTime |
startTime |
string (date-time) |
2.2. Historian-data-controller
Historian Data Controller
2.2.1. Gets the list of configured historian server details
GET /mesdataservice/v1/historians
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
< HistoriansInfo > array |
2.3. Historians-tag-data-controller
Historians Tag Data Controller
2.3.1. Gets Data points for the tag names specified from particular historian server based on the request parameters
GET /v1/historianTagsDataPoints
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Query |
calculationMode |
This parameter is only applied if the Sampling Mode is set to Calculated. It represents the type of calculation to use on the archive data. |
enum (Average, StandardDeviation, Total, Minimum, Maximum, Count, RawAverage, RawStandardDeviation, RawTotal, MinimumTime, MaximumTime, TimeGood, StateCount, StateTime, OPCAnd, OPCOr, FirstRawValue, FirstRawTime, LastRawValue, LastRawTime, TagStats) |
Query |
dataPointType |
Data point type end point which needs to be queried from Historian Service |
enum (raw, interpolated, currentvalue, calculated, sampled) |
Query |
direction |
Specifies the direction (Forward (0) or Backward (1) from the starting time) of data sampling from the archive. |
integer (int32) |
Query |
endTime |
End time in ISO 8601 format (yyyy-MM-dd’T’HH:mm:ss.SSSZ) |
string (date-time) |
Query |
historianServerName |
Historian Service host name as configured in the service |
string |
Query |
intervalMS |
Interval in milliseconds. |
integer (int32) |
Query |
sampleCount |
Count of archive values within each calculation interval. |
integer (int32) |
Query |
samplingMode |
The SamplingModeType parameter is the mode of sampling data from the archive. |
enum (CurrentValue, Interpolated, Trend, RawByTime, RawByNumber, Calculated, Lab, InterpolatedToRaw, TrendToRaw, LabToRaw, RawByFilterToggling) |
Query |
startTime |
Start time in ISO 8601 format (yyyy-MM-dd’T’HH:mm:ss.SSSZ) |
string (date-time) |
Query |
tagNames |
Historians tag name. Multiple tag names are separated by semicolons (;). Also supports wildcard character (*) in the name |
string |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
< HistorianTagData«TagDataPoint«int»» > array |
400 |
Bad Request, request parameters not valid. See message for details |
|
500 |
Internal Server error, error occurred while communicating to Historian. See message for details |
2.3.2. Gets Trend Data points for the tag names specified from particular historian server based on the request parameters
GET /v1/historianTagsTrendDataPoints
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Query |
calculationMode |
This parameter is only applied if the Sampling Mode is set to Calculated. It represents the type of calculation to use on the archive data. |
enum (Average, StandardDeviation, Total, Minimum, Maximum, Count, RawAverage, RawStandardDeviation, RawTotal, MinimumTime, MaximumTime, TimeGood, StateCount, StateTime, OPCAnd, OPCOr, FirstRawValue, FirstRawTime, LastRawValue, LastRawTime, TagStats) |
Query |
direction |
Specifies the direction (Forward (0) or Backward (1) from the starting time) of data sampling from the archive. |
integer (int32) |
Query |
endTime |
End time in ISO 8601 format (yyyy-MM-dd’T’HH:mm:ss.SSSZ) |
string (date-time) |
Query |
historianServerName |
Historian Service host name as configured in the service |
string |
Query |
intervalMS |
Interval in milliseconds. |
integer (int32) |
Query |
sampleCount |
Count of archive values within each calculation interval. |
integer (int32) |
Query |
samplingMode |
The SamplingModeType parameter is the mode of sampling data from the archive. |
enum (CurrentValue, Interpolated, Trend, RawByTime, RawByNumber, Calculated, Lab, InterpolatedToRaw, TrendToRaw, LabToRaw, RawByFilterToggling) |
Query |
startTime |
Start time in ISO 8601 format (yyyy-MM-dd’T’HH:mm:ss.SSSZ) |
string (date-time) |
Query |
tagNames |
Historians tag name. Multiple tag names are separated by semicolons (;). Also supports wildcard character (*) in the name |
string |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
OK |
|
400 |
Bad Request, request parameters not valid. See message for details |
|
500 |
Internal Server error, error occurred while communicating to Historian. See message for details |
2.4. Kpi-data-controller
KPI Data Controller
2.4.1. getKPI
GET /mesdataservice/v1/KPI
Parameters
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Query |
asset |
asset |
string |
|
Query |
interval |
interval |
string |
|
Query |
lineDescription |
lineDescription |
string |
|
Query |
lineId |
lineId |
integer (int64) |
|
Query |
name |
name |
string |
|
Query |
oEEType |
oEEType |
string |
|
Query |
pageNumber |
pageNumber |
integer (int64) |
|
Query |
pageSize |
pageSize |
integer (int64) |
|
Query |
sortCol |
sortCol |
string |
|
Query |
sortOrder |
sortOrder |
string |
|
Query |
unitId |
unitId |
integer (int64) |
2.4.2. getKPIData
GET /mesdataservice/v1/KPIData
Parameters
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Query |
endTime |
endTime |
string (date-time) |
|
Query |
inputId |
inputId |
integer (int64) |
|
Query |
isIncremental |
isIncremental |
integer (int64) |
|
Query |
kpiType |
kpiType |
string |
|
Query |
level |
level |
string |
|
Query |
startTime |
startTime |
string (date-time) |
2.5. Process-order-data-controller
Process Order Data Controller
2.5.1. getProcessOrderData
GET /mesdataservice/v1/processorder
Parameters
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Query |
asset |
asset |
string |
|
Query |
bom |
bom |
integer (int64) |
|
Query |
departmentId |
departmentId |
integer (int64) |
|
Query |
endTime |
endTime |
string (date-time) |
|
Query |
lineId |
lineId |
integer (int64) |
|
Query |
name |
name |
string |
|
Query |
pageNumber |
pageNumber |
integer (int64) |
|
Query |
pageSize |
pageSize |
integer (int64) |
|
Query |
product |
product |
string |
|
Query |
quantity |
quantity |
string |
|
Query |
sortCol |
sortCol |
string |
|
Query |
sortOrder |
sortOrder |
string |
|
Query |
startTime |
startTime |
string (date-time) |
|
Query |
status |
status |
string |
|
Query |
unitId |
unitId |
integer (int64) |
2.5.2. getProcessOrderVariableSpecificationLimit
GET /mesdataservice/v1/processorder/ProcessOrderVariableSpecificationLimit
Parameters
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Query |
endTime |
endTime |
string (date-time) |
|
Query |
isLive |
isLive |
boolean |
|
Query |
startTime |
startTime |
string (date-time) |
|
Query |
variable |
variable |
integer (int64) |
2.5.3. getAdjacentProcessOrderData
GET /mesdataservice/v1/processorder/adjacentprocessorderdata
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Query |
endTime |
endTime |
string (date-time) |
Query |
productionPlanStartId |
productionPlanStartId |
integer (int64) |
Query |
startTime |
startTime |
string (date-time) |
2.5.4. getProcressOrderProductData
GET /mesdataservice/v1/processorder/adjecentProcessOrderProduct
Parameters
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Query |
endTime |
endTime |
string (date-time) |
|
Query |
isIncremental |
isIncremental |
integer (int64) |
|
Query |
productionPlanStartId |
productionPlanStartId |
integer (int64) |
|
Query |
startTime |
startTime |
string (date-time) |
2.5.5. getProcessOrderProductTraverse
GET /mesdataservice/v1/processorder/processOrderProductTraverse
Parameters
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Query |
endTime |
endTime |
string (date-time) |
|
Query |
isIncremental |
isIncremental |
integer (int64) |
|
Query |
nextOrPrevious |
nextOrPrevious |
string |
|
Query |
productionPlanStartId |
productionPlanStartId |
integer (int64) |
|
Query |
startTime |
startTime |
string (date-time) |
2.5.6. getNextOrPreviousProcessOrder
GET /mesdataservice/v1/processorder/processordertraverse
Parameters
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Query |
endTime |
endTime |
string (date-time) |
|
Query |
isIncremental |
isIncremental |
integer (int64) |
|
Query |
nextOrPrevious |
nextOrPrevious |
string |
|
Query |
productionPlanStartId |
productionPlanStartId |
integer (int64) |
|
Query |
startTime |
startTime |
string (date-time) |
2.6. Product-data-controller
Product Data Controller
2.6.1. getProductData
GET /mesdataservice/v1/products
Parameters
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Query |
endTime |
endTime |
string (date-time) |
|
Query |
event |
event |
integer (int64) |
|
Query |
isIncremental |
isIncremental |
integer (int64) |
|
Query |
startTime |
startTime |
string (date-time) |
2.7. Site-name-controller
Site Name Controller
2.8. Tag-data-controller
Tag Data Controller
2.8.1. getTagsBasedOnCriteria
GET /mesdataservice/v1/tags
Parameters
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Query |
aliasName |
aliasName |
string |
|
Query |
asset |
asset |
string |
|
Query |
dataSource |
dataSource |
string |
|
Query |
dataType |
dataType |
string |
|
Query |
departmentId |
departmentId |
integer (int64) |
|
Query |
interval |
interval |
string |
|
Query |
lineId |
lineId |
integer (int64) |
|
Query |
pageNumber |
pageNumber |
integer (int64) |
|
Query |
pageSize |
pageSize |
integer (int64) |
|
Query |
sampleType |
sampleType |
string |
|
Query |
sortCol |
sortCol |
string |
|
Query |
sortOrder |
sortOrder |
string |
|
Query |
tagDescription |
tagDescription |
string |
|
Query |
tagName |
tagName |
string |
|
Query |
unitId |
unitId |
integer (int64) |
|
Query |
variableGroupId |
variableGroupId |
integer (int64) |
|
Query |
variables |
variables |
string |
2.9. Variable-data-controller
Variable Data Controller
2.9.1. getVariablesData
GET /mesdataservice/v1/variabledata
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Query |
endTime |
endTime |
string (date-time) |
Query |
startTime |
startTime |
string (date-time) |
Query |
variable |
variable |
integer (int64) |
2.9.2. getVariableSpecificationLimit
GET /mesdataservice/v1/variabledata/VariableSpecificationLimit
Parameters
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Query |
endTime |
endTime |
string (date-time) |
|
Query |
isLive |
isLive |
boolean |
|
Query |
startTime |
startTime |
string (date-time) |
|
Query |
variable |
variable |
integer (int64) |
2.9.3. getVariableBasedOnCriteria
GET /mesdataservice/v1/variabledata/variables
Parameters
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Query |
asset |
asset |
string |
|
Query |
departmentId |
departmentId |
integer (int64) |
|
Query |
interval |
interval |
string |
|
Query |
lineId |
lineId |
integer (int64) |
|
Query |
name |
name |
string |
|
Query |
pageNumber |
pageNumber |
integer (int64) |
|
Query |
pageSize |
pageSize |
integer (int64) |
|
Query |
sample |
sample |
string |
|
Query |
sortCol |
sortCol |
string |
|
Query |
sortOrder |
sortOrder |
string |
|
Query |
source |
source |
string |
|
Query |
tagIn |
tagIn |
string |
|
Query |
tagOut |
tagOut |
string |
|
Query |
type |
type |
string |
|
Query |
unitId |
unitId |
integer (int64) |
|
Query |
varGroupId |
varGroupId |
integer (int64) |
3. Definitions
3.1. DataSource
Name | Schema |
---|---|
clientId |
string |
clientSecret |
string |
port |
string |
serverName |
string |
source |
string |
uaaOrigin |
string |
uaaPort |
string |
3.3. HistorianTagData«List«TagDataPoint«boolean»»»
Encapsulates the Tag specific properties and data
Name | Description | Schema |
---|---|---|
dataType |
Data type of this tag |
string |
errorCode |
Error code if any as given from Historian service, 0 mean success |
integer (int32) |
tagDataPoints |
Data points for this tag |
< < TagDataPoint«boolean» > array > array |
tagName |
The name of the Historian Tag |
string |
3.4. HistorianTagData«TagDataPoint«int»»
Encapsulates the Tag specific properties and data
Name | Description | Schema |
---|---|---|
dataType |
Data type of this tag |
string |
errorCode |
Error code if any as given from Historian service, 0 mean success |
integer (int32) |
tagDataPoints |
Data points for this tag |
< TagDataPoint«int» > array |
tagName |
The name of the Historian Tag |
string |
3.5. HistoriansInfo
Name | Schema |
---|---|
alias |
string |
dataSource |
|
isDefault |
boolean |
serverName |
string |
3.7. TagDataPoint«boolean»
Data for a tag at a point of time as recieved from Historian Service
Name | Description | Schema |
---|---|---|
quality |
Quality of the value. This can be Bad(0), Uncertain(1), NA(2) or Good(3) |
boolean |
timeStamp |
Time when this data point is taken |
string (date-time) |
value |
Value of the Tag at a particular time |
object |
3.8. TagDataPoint«int»
Data for a tag at a point of time as recieved from Historian Service
Name | Description | Schema |
---|---|---|
quality |
Quality of the value. This can be Bad(0), Uncertain(1), NA(2) or Good(3) |
integer (int32) |
timeStamp |
Time when this data point is taken |
string (date-time) |
value |
Value of the Tag at a particular time |
object |
4. Security
4.1. oauth
Type : oauth2
Flow : accessCode
Token URL : http://localhost:0000/uaa/oauth/authorize
Token URL : http://localhost:0000/uaa/oauth/token
Name | Description |
---|---|
default |
Default oauth2 scope. |