https: //spc.minitab.com/api/app/spc/Station/?apikey={APIKEY}&action=streamData&args=[{JSON}]
[DataStreamingRequestDTO]의 속성:스테이션의 external_station_id 또는 sys_id을 제공합니다.
외부 스테이션 식별자, 보통 스테이션 이름이나 SAP Digital Manufacturing에서는 작업 스테이션입니다.
Sys_id 역에 가.
샘플링 플랜을 Sys_id. 단일 샘플링 계획의 경우 선택 사항; 여러 샘플링 계획이 방송국과 연관되어 있을 경우 필요합니다.
하위 군의 특성과 관찰값 목록.
[SubgroupWithObservationsRequestDTO] 속성 :
관찰 타임스탬프. 선택 사항으로, ISO 8601의 datetime은 제공되지 않으면 서버의 현재 날짜와 시간이 기본값으로 표시됩니다. 자세한 내용은 다음을 참조하십시오타임스탬프 데이터 요구사항.
서브그룹에 대한 디스크립터와 그 값들. 선택 사항입니다.
이 하위 그룹의 관측은 최소 1건의 관측이 필요합니다.
[DescriptorValueRequestDTO] 속성 : 기술자에 대한 external_descriptor_id 또는 sys_id을 제공하세요.
디스크립터 값이 필요합니다.
외부 기술자 식별자.
설명 sys_id
[ObservationRequestDTO] 의 속성 : 측정 external_measure_id 또는 sys_id을 제공하세요.
관측에 대한 외부 측정 식별자.
측정 sys_id 있어.
관찰 값이 요구됩니다.
관찰에 대한 기술자와 그 값들. 선택 사항입니다.
연속적인 측정값, 프로세스와 출력만이 스테이션 테이블에 직접 스트리밍될 수 있습니다.
[
{
"station_id": 14,
"subgroups": [
{
"observations": [
{
"observation": 3.5,
"measure_id": 7
}
]
}
]
}
][
{
"external_station_id": "Ribbon Manufacturing Station",
"subgroups": [
{
"observations": [
{
"observation": 3.5,
"external_measure_id": "Roll Width"
}
]
}
]
}
]
[
{
"external_station_id": "Ribbon Manufacturing Station",
"sampling_plan_id": 11,
"subgroups": [
{
"timestamp": "2024-12-11 19:55:18Z",
"descriptors": [
{
"external_descriptor_id": "Batch Number",
"descriptor_value": "4973"
}
],
"observations": [
{
"observation": 3.5,
"external_measure_id": "Roll Width",
"descriptors": [
{
"external_descriptor_id": "Roll Color",
"descriptor_value": "Blue"
}
]
}
]
}
]
}
]{
"success_count": 40,
"failure_count": 2
}{
"title": "DataStreamingRequestDto",
"description": "",
"type": "object",
"properties": {
"sampling_plan_id": {
"type": ["integer","null"],
"minimum": 1
},
"external_station_id": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"station_id": {
"type": "integer",
"minimum": 1
},
"subgroups": {
"type": "array",
"maxItems": 50,
"minItems": 1,
"items": {
"$ref": "#/$defs/SubgroupWithObservationsRequestDto"
}
}
},
"required": ["subgroups"],
"oneOf": [
{
"required": ["external_station_id"]
},
{
"required": ["station_id"]
}
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$defs": {
"DescriptorValueRequestDto": {
"title": "DescriptorValueRequestDto",
"description": "",
"type": "object",
"properties": {
"descriptor_value": {
"type": "string",
"minLength": 1,
"maxLength": 255,
"pattern": "^(?!\\s*$).+"
},
"external_descriptor_id": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"descriptor_id": {
"type": "integer",
"minimum": 1
}
},
"required": ["descriptor_value"],
"oneOf": [
{
"required": ["external_descriptor_id"]
},
{
"required": ["descriptor_id"]
}
]
},
"ObservationRequestDto": {
"title": "ObservationRequestDto",
"description": "",
"type": "object",
"properties": {
"external_measure_id": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"measure_id": {
"type": "integer",
"minimum": 1
},
"observation": {
"type": ["number", "null"],
"minimum": -10000000000,
"maximum": 10000000000
},
"descriptors": {
"type": ["array", "null"],
"maxItems": 100,
"items": {
"$ref": "#/$defs/DescriptorValueRequestDto"
}
}
},
"required": ["observation"],
"oneOf": [
{
"required": ["external_measure_id"]
},
{
"required": ["measure_id"]
}
]
},
"SubgroupWithObservationsRequestDto": {
"title": "SubgroupWithObservationsRequestDto",
"description": "",
"type": "object",
"properties": {
"timestamp": {
"type": ["string", "null"],
"pattern": "^(\\d{4}-\\d{2}-\\d{2}[T ]\\d{2}:\\d{2}:\\d{2}(?:Z|(?:[+-]\\d{2}:\\d{2})|)?)$",
"$comment": "Value must be a valid date-time with optional timezone.",
"examples": [
"\"2025-01-01T01:23:45\"",
"\"2025-01-01 01:23:45\"",
"\"2025-01-01T01:23:45Z\"",
"\"2025-01-01 01:23:45Z\"",
"\"2025-01-01T01:23:45-05:00\"",
"\"2025-01-01 01:23:45-05:00\""
]
},
"descriptors": {
"type": ["array", "null"],
"maxItems": 100,
"items": {
"$ref": "#/$defs/DescriptorValueRequestDto"
}
},
"observations": {
"type": "array",
"maxItems": 1000,
"minItems": 1,
"items": {
"$ref": "#/$defs/ObservationRequestDto"
}
}
},
"required": ["observations"]
}
}
}