MOP 可视化上报
AI-generatedSummary
Send vehicle state data from all input items to a specified visualization or dashboard service via HTTP POST requests, either combined in a single request or individually per item.
Inputs
- 上报 URL (required) — The HTTP endpoint URL to which the vehicle state data will be POSTed.
- 发送方式 (required) — Determines whether to send all items merged into a single POST request (recommended) or send each item as an individual POST.
- 附加事件名 — An event name string included in the request body under the 'event' field to assist backend routing; defaults to 'mopVehicle'.
- 请求超时(毫秒) — Timeout in milliseconds for the HTTP request; minimum 1000 ms, default is 15000 ms.
- 忽略 HTTP 状态错误 — If enabled, HTTP 4xx/5xx errors do not cause the node to throw; instead, error details are included in the output under 'mopVisual'.
Output shape
a list of items with JSON bodies
Each output item corresponds to an input item and includes the original JSON merged with a 'mopVisual' object containing the request mode ('singleRequest' or 'perItem'), a boolean 'ok' indicating success, and the HTTP response or error information.
Examples
Example 1: Single merged POST request
All input items' JSON vehicle data are combined into a single POST with fields 'event', 'runId', 'count', and an array 'vehicles'. The response is replicated into each output item under 'mopVisual'. Success is indicated if no error occurred and HTTP status errors are either handled or cause failure based on settings.
Example 2: Individual POST per item
Each input item's JSON vehicle data is sent in an independent POST request with fields 'event', 'runId', 'index', and 'vehicle'. Each output item includes that request's response in its 'mopVisual' field along with success status. HTTP errors behave similarly as in the merged mode.