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 Alarm Duration

POST
/statistics/daily/alarm_time
Staticstics Information
Function Description:
Query statistical data of daily alarm duration for a specific machine within a specified time range
The query time range extends up to yesterday
Return Result:
① Display daily alarm duration by day

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 
required
Control Card ID
startDate
integer 
required
Query Start Date(Must be within the last three months, statistical data for earlier time periods is not available for query.)
endDate
integer 
required
Query End Date(Must be within the last three months, statistical data for earlier time periods is not available for query.)
Example
{
  "cardId": "1234567890",
  "startDate": 20231101,
  "endDate": 20231110
}

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 '/statistics/daily/alarm_time' \
--header 'zoneId: America/Chicago' \
--header 'Content-Type: application/json' \
--data-raw '{
    "cardId": "1234567890",
    "startDate": 20231101,
    "endDate": 20231110
}'

Responses

🟢200OK
application/json
Body
status
integer 
required
msg
string 
required
data
object 
required
list
array [object {2}] 
required
Example
{
  "status": 0,
  "msg": "OK",
  "data": {
    "list": [
      {
        "statDate": 20231101,
        "alarmTime": 12345
      }
    ]
  }
}
Modified at 2024-10-09 01:54:44
Previous
Summary of Statistical Data for a Period of Time
Next
Daily Piercing Count
Built with