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"]
}
}
}