Torch Log Service
Name | Type | Required | Example | Description |
Name | Type | Required | Example | Description |
TopicId | String | True | 4a******** | The ID of the topic. |
Query | String | True | error | The query statements. The maximum length of the statement is 4 KiB. |
StartTime | Long | True | 1346457600000 | The start time of the query, accurate to the millisecond. It is in Unix timestamp format, representing the number of milliseconds calculated from January 1, 1970, 00:00:00 UTC. If specified at the second level, the server will automatically convert the precision to milliseconds. |
EndTime | Long | True | 1630454400000 | The end time of the query, accurate to the millisecond. It's in Unix timestamp format, representing the number of milliseconds calculated from January 1, 1970, 00:00:00 UTC. If specified at the second level, the server will automatically convert the precision to milliseconds. |
Interval | Long | False | 4733280000 | The length of the sub-interval in the histogram. The unit is milliseconds. This value must be greater than 1. After specifying the time range of the query, you can also specify the duration represented by each sub-interval in the histogram through Interval. By default, the histogram is displayed through 60 sub-intervals, that is, by default, Interval = (EndTime-StartTime)/60, and it is rounded up. tip Up to 60 sub-intervals can be specified in the histogram, please plan the time range of the query and the size of the sub-interval reasonably. |
Name | Type | Example | Description |
Name | Type | Example | Description |
ResultStatus | String | complete | The status of the query.
|
Interval | Long | 9527 | The length of the sub-interval in the histogram. |
TotalCount | Long | 10000 | The total number of histogram data for this request, that is, the number of logs that meet the conditions within the corresponding time. |
Histogram | / | The result set of all sub-intervals. |
Name | Type | Example | Description |
Name | Type | Example | Description |
Time | Integer | 1346457600000 | The start time of the subinterval, in milliseconds. This is in UNIX timestamp format, representing the number of milliseconds calculated from January 1, 1970, 00:00:00 UTC. |
Count | Integer | 1000 | The number of corresponding search results in the sub-interval, that is, the number of log entries that meet the conditions during this period. |
HTTP status code | Error code | Error message | Description |
HTTP status code | Error code | Error message | Description |
400 | InvalidArgument | Invalid argument key %s, value %s, please check argument. | The parameter is invalid. |
400 | SqlSyntaxError | Sql syntax Error | SQL format or syntax error. |
404 | TopicNotExist | Topic does not exist. | The topic does not exist. |
500 | InternalServerError | We encountered an unexpected server error, please try again later. | Internal server error. |