Description
Queries the details of traffic metrics of a specified instance based on specified conditions.
Method
GET
URI
/openapi/instances/{instanceId}/dashboard/details/flows
Request parameters
Parameter | Type | Required | Description |
---|---|---|---|
startTime | Long | Yes | The beginning of the time range to query. The value of this parameter must be accurate to the second. |
endTime | Long | Yes | The end of the time range to query. The value of this parameter must be accurate to the second. |
traceIds | String | Yes | The trace ID. |
sceneIds | String | Yes | The ID of the scene. |
metricType | String | Yes | The metric type. |
Valid values: USER_ACTION_PV_COUNT (overall traffic scale), PVUSER_ACTION_UV_COUNT (overall traffic scale), UVUSER_ACTION_PV_RATIO (traffic conversion rate), USER_ACTION_UV_RATIO (traffic consumed per person), USER_PV_STAY (average stay time of each person), USER_UV_STAY (average stay time of each access). USER_PV_STAY and USER_UV_STAY are metrics of the content type.
Response parameters
Parameter | Type | Description |
---|---|---|
RequestId | String | The ID of the request. |
Result | List | Details about the metrics. |
Sample requests
GET /openapi/instances/airec-cn-xxxxx/dashboard/details/flows?startTime=1541001600000
&endTime=1541174400000&traceIds=alibaba,all&sceneIds=1,3&metricType=xxx
Sample responses
JSON
format
{
"RequestId": "16B78383-2803-4964-9605-37B30C073B0E",
"Result": [
{
"MetricType":"cart",
"MetricData":[
{
"TraceId":"alibaba",
"SceneId":"scene_id1",
"MetricRes":{
"Total":{
"Val":0,
"Min":0,
"Avg":0,
"Max":0,
"Last7dayCompare":0,
"StartTime":1588521600,
"EndTime":1588525200,
"LastDayCompare":0
},
"Detail":[
{
"Val":0,
"Last7dayCompare":0,
"StartTime":1585929600,
"EndTime":1585933200,
"LastDayCompare":0
},
{
"Val":0,
"Last7dayCompare":0,
"StartTime":1586016000,
"EndTime":1586019600,
"LastDayCompare":0
}
]
}
},
{
"TraceId":"alibaba",
"SceneId":"all",
"MetricRes":{
"Total":{
"Val":0,
"Min":0,
"Avg":0,
"Max":0,
"Last7dayCompare":0,
"StartTime":1588521600,
"EndTime":1588525200,
"LastDayCompare":0
},
"Detail":[
{
"Val":0,
"Last7dayCompare":0,
"StartTime":1588521600,
"EndTime":1588525200,
"LastDayCompare":0
}
]
}
}
]
}
]
}