Domain name for API request: cwp.intl.tencentcloudapi.com.
This API is used to obtain the log histogram information.
A maximum of 20 requests can be initiated per second for this API.
The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.
Parameter Name | Required | Type | Description |
---|---|---|---|
Action | Yes | String | Common Params. The value used for this API: DescribeLogHistogram. |
Version | Yes | String | Common Params. The value used for this API: 2018-02-28. |
Region | No | String | Common Params. This parameter is not required. |
StartTime | Yes | Integer | Start time of logs to be queried, which is a Unix timestamp in milliseconds |
EndTime | Yes | Integer | End time of logs to be queried, which is a Unix timestamp in milliseconds |
QueryString | Yes | String | Query statement |
Interval | Yes | Integer | Time interval, in ms |
Parameter Name | Type | Description |
---|---|---|
Data | Array of LogHistogram | Result details of statistics within the period |
Period | Integer | Statistical period (unit: ms) |
TotalCount | Integer | Total number of logs that hit the keywords |
RequestId | String | The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. |
POST / HTTP/1.1
Host: cwp.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeLogHistogram
<Common request parameters>
{
"EndTime": "1660533600000",
"Interval": "500000",
"QueryString": "",
"StartTime": "1660532400000"
}
{
"Response": {
"Data": [
{
"Count": 49,
"TimeStamp": 1660532000000
},
{
"Count": 158,
"TimeStamp": 1660532500000
},
{
"Count": 136,
"TimeStamp": 1660533000000
},
{
"Count": 0,
"TimeStamp": 1660533500000
}
],
"Period": 500000,
"RequestId": "b8748ca2-de8e-4ccb-b369-99d7f65907cf",
"TotalCount": 343
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
There is no error code related to the API business logic. For other error codes, please see Common Error Codes.
Was this page helpful?