Querying a Log Stream Chart
Function
This API is used to query a log flow chart.
Calling Method
For details, see Calling APIs.
URI
GET /v2/{project_id}/groups/{log_group_id}/streams/{log_stream_id}/charts
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Project ID. For details about how to obtain a project ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID. |
log_group_id |
Yes |
String |
Log group ID. For details about how to obtain a log group ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID. |
log_stream_id |
Yes |
String |
Log stream ID. For details about how to obtain a log stream ID, see Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
offset |
No |
Integer |
Query cursor. Set the value to 0 in the first query. In subsequent queries, obtain the value from the response to the last request. |
limit |
No |
Integer |
Number of records on each page. The maximum value is 100. |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
X-Auth-Token |
Yes |
String |
User token obtained from IAM. For details about how to obtain a user token, see Obtaining a User Token. |
Content-Type |
Yes |
String |
Set this parameter to application/json;charset=UTF-8. |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
id |
String |
id |
sql |
String |
SQL statement. |
title |
String |
Chart name. |
type |
String |
Chart type. |
log_group_id |
String |
Log group ID. |
log_group_name |
String |
Log group name. |
log_stream_id |
String |
Log group ID. |
log_stream_name |
String |
Log stream name. |
config |
ChartConfig object |
Chart configuration details. |
Example Requests
Querying a log stream chart
GET https://{endpoint}/v2/{project_id}/groups/{log_group_id}/streams/{log_stream_id}/charts /v2/{project_id}/groups/{log_group_id}/streams/{log_stream_id}/charts
Example Responses
Status code: 200
The request is successful.
{ "id" : "string", "sql" : "string", "title" : "string", "type" : "table", "log_group_id" : "string", "log_group_name" : "string", "log_stream_id" : "string", "log_stream_name" : "string", "config" : { "canSort" : true, "canSearch" : true, "pageSize" : 0 } }
Status Codes
Status Code |
Description |
---|---|
200 |
The request is successful. |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot