Obtaining the Trend Graph
Function
This API is used to obtain the trend graph.
URI
POST /v1/apm2/openapi/view/metric/trend
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
x-business-id |
Yes |
Long |
Application ID. |
X-Auth-Token |
Yes |
String |
User token obtained from IAM. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
view_config |
Yes |
TrendView object |
View configuration information. |
instance_id |
No |
Long |
Instance ID. |
monitor_item_id |
Yes |
Long |
Monitoring item ID. |
env_id |
Yes |
Long |
Environment ID. |
start_time |
Yes |
String |
Start time. |
end_time |
Yes |
String |
End time. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
view_type |
Yes |
String |
View type. Enumeration values:
|
collector_name |
Yes |
String |
Collector name. |
metric_set |
Yes |
String |
Name of the metric set corresponding to the view. |
title |
Yes |
String |
Title to be displayed. |
table_direction |
No |
String |
Direction of the table heading. Options: H (default): horizontal. V: vertical. Enumeration values:
|
group_by |
No |
String |
Group. |
filter |
No |
String |
Filter list model. |
field_item_list |
Yes |
Array of FieldItem objects |
Field list models to be displayed. |
span |
Yes |
Boolean |
Span. |
span_field |
Yes |
String |
Attribute of the span field. |
order_by |
No |
String |
Sorting order. |
latest |
No |
String |
Whether to display only the latest data. |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
line_list |
Array of FrontLine objects |
Trend graph data list. |
latest_data_Time |
Long |
Last date and time. |
Parameter |
Type |
Description |
---|---|---|
point_list |
Array of FrontPoint objects |
Data point set. |
title |
String |
Title. |
unit |
String |
Unit. |
precision |
Integer |
Percentage. |
data_type |
String |
Date. |
visible |
Boolean |
Visible or not. |
Example Requests
None
Example Responses
None
Status Codes
Status Code |
Description |
---|---|
200 |
OK: The request is successful. |
401 |
Unauthorized: No permissions. |
403 |
Forbidden: Access forbidden. |
404 |
Not Found: The requested resource is not found. |
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