/api/open/unlocker_use_statPOSTApiKey:{your_api_key}| Parameter Name | Type | Required | Annotations | Example: |
|---|---|---|---|---|
| start_time | int64 | No | Start Timetamp (sec)) | 1712563200 |
| end_time | int64 | No | End time stamp (sec)) | 1712649599 |
| group_by | string | Yes | Grouping method, optional values: hour(or day(by day) | "day" |
{
"start_time": 1712563200,
"end_time": 1712649599,
"group_by": "day"
}{
"code": 200,
"data": [
{
"time_key": "2024-04-08",
"success_count": 1250,
"fail_count": 50,
"total_count": 1300,
"success_rate": 96.15,
"avg_response_time": 1250.5,
"total_amount": 650.25
},
{
"time_key": "2024-04-09",
"success_count": 1180,
"fail_count": 20,
"total_count": 1200,
"success_rate": 98.33,
"avg_response_time": 1180.3,
"total_amount": 600.0
}
],
"message": "Query successful",
"timestamp": 1712649600
}| Field Name | Type | Annotations |
|---|---|---|
| code | int | Response status code, 200 for success |
| data | array | Statistical arrays |
| message | string | Reply Message |
| timestamp | int64 | Response Timetamp |
data array elements field description| Field Name | Type | Annotations |
|---|---|---|
| time_key | string | The time key format is determined by the group_by parameter - hour: "2024-04-08 14:00:00" - day: "2024-04-08" |
| success_count | int64 | Number of successful requests |
| fail_count | int64 | Number of failed requests |
| total_count | int64 | Total number of requests |
| success_rate | float64 | Success rate (percentage, 2 decimal places)) |
| avg_response_time | float64 | Average response time (ms, 2 decimal places)) |
| total_amount | float64 | Consumption of total points (retain 4 decimal places)) |
{
"code": 401,
"data": null,
"message": "api_keyNot provided",
"timestamp": 1712649600
}{
"code": 400,
"data": {},
"message": "Key: 'UnlockerUseStatParam.GroupBy' Error:Field validation for 'GroupBy' failed on the 'oneof' tag",
"timestamp": 1712649600
}{
"code": 500,
"data": null,
"message": "Data query failed",
"timestamp": 1712649600
}start_time and end_time are not provided, all historical data will be returned.hour: Groups data by hour, suitable for viewing short-term trends in detail.day: Groups data by day, suitable for viewing long-term trends.