BOCHU IoT Api
  1. Statistics Information
BOCHU IoT Api
  • 0. Introduction
  • a. Use our demo to quickly generate request headers
  • b. Manually create the request header
  • 1. Machine Quota
  • 2. API Quota & API Rate Limit
  • Global Error Code
  • Cutting Machine API
    • Machine Management
      • Machine List
      • Machine Detailed Information
      • Machine Status Change Records
    • Real-time Data
      • Machine Operating Status
      • Machine Current Alarm List
      • Machine Ongoing Processing Task
      • Real-time Status of the Cutting System
    • Historical Data
      • Paged Processing Records
    • Statistics Information
      • Summary of Statistical Data for a Period of Time
        POST
      • Daily Alarm Duration
        POST
      • Daily Piercing Count
        POST
      • Daily Idle Time
        POST
      • Daily Laser-On Time
        POST
      • Daily Gas-On Time
        POST
      • Daily Cutting Length
        POST
      • Daily Traveling Distance
        POST
      • Daily Processing Time v2
        POST
    • Task Management
      • Upload Cut Task
  • Welding Machine API
    • Machine Management
      • Machine List
      • Machine Detailed Information
      • Machine Status Change Records
    • Real-time Data
      • Machine Operating Status
    • Historical Data
      • Paged Welding Processing Records
    • Statistics Information
      • Summary of Welding Statistical Data for a Period of Time
      • Daily Flat-Weld Length
      • Daily Flat-Weld Time
      • Daily Vertical-Weld Length
      • Daily Vertical-Weld Time
      • Daily Weld Length
      • Daily Weld Time
      • Daily Weld-Pass Count
      • Daily Idle Time
      • Daily Processing Time
    • Task Management
      • Upload Weld Task
  1. Statistics Information

Daily Processing Time v2

POST
https://mcs-gateway.fscut.com/api/statistics/daily/cut_time
Function Description:
This function is used to retrieve daily processing time statistical data for a specified machine within a specified time range.
Returned Result:
① Daily processing time data, displayed on a daily basis.

Request

Header Params
zoneId
string 
optional
The query time-zone can be specified by header 'zoneId'. If 'zoneId' is not set, Asia/Shanghai will be used as default.
The time-zone ID must be from IANA Time Zone Database(TZDB). If 'zoneId' cannot be recognized, Asia/Shanghai will be used as default.
ref: https://docs.oracle.com/javase/8/docs/api/java/time/ZoneId.html
Example:
America/Chicago
Body Params application/json
cardId
string 
Control card ID
required
startDate
integer 
Start date of the query
required
Must be within the last three months, as statistics data beyond that period are not available.
endDate
integer 
End date of the query
required
Must be within the last three months, as statistics data beyond that period are not available.
Example
{
  "cardId": "123456789100",
  "startDate": 20230201,
  "endDate": 20230207
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://mcs-gateway.fscut.com/api/statistics/daily/cut_time' \
--header 'zoneId: America/Chicago' \
--header 'Content-Type: application/json' \
--data-raw '{
    "cardId": "123456789100",
    "startDate": 20230201,
    "endDate": 20230207
}'

Responses

🟢200成功
application/json
Body
status
integer 
Status code
required
0 for successful response, non-zero for error codes
msg
string 
Response message
required
Ok for successful response, or an error message for non-successful responses
data
object 
required
list
array [object {2}] 
required
Example
{
  "status": 0,
  "msg": "OK",
  "data": {
    "list": [
      {
        "statDate": 20230201,
        "cutTime": 15606
      },
      {
        "statDate": 20230202,
        "cutTime": 12826
      },
      {
        "statDate": 20230203,
        "cutTime": 16326
      },
      {
        "statDate": 20230204,
        "cutTime": 18407
      },
      {
        "statDate": 20230205,
        "cutTime": 27658
      },
      {
        "statDate": 20230206,
        "cutTime": 32179
      },
      {
        "statDate": 20230207,
        "cutTime": 27892
      }
    ]
  }
}
Modified at 2024-10-09 01:58:36
Previous
Daily Traveling Distance
Next
Upload Cut Task
Built with