通过指定条件查询指定实例的细分指标。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

请求头

该接口使用公共请求头,无特殊请求头。请参见公共请求参数文档。

请求语法

GET /v2/openapi/instances/[instanceId]/dashboard/details HTTP/1.1

请求参数

名称 类型 位置 是否必选 示例值 描述
instanceId String Path airec-cn-o400whm78004

实例ID。

startTime Long Query 1588521600

秒级时间戳

endTime Long Query 1588521600

秒级时间戳

sceneIds String Query test

场景id

metricType String Query xxx

查询指标,枚举选择

USER_ACTION_PV_COUNT 整体流量规模PV

USER_ACTION_UV_COUNT 整体流量规模UV

USER_ACTION_PV_RATIO 流量转化率

USER_ACTION_UV_RATIO 人均流量

USER_PV_STAY 人均停留 (内容型)

USER_UV_STAY 次均停留 (内容型)

traceIds String Query Alibaba

trace_Id

experimentIds String Query all

实验id列表,all(场景级别整体效果)。默认值为all。

返回数据

名称 类型 示例值 描述
code String InternalServerError

错误码

message String An internal server error occurred

错误详情

requestId String 8F81A922-6C81-46D6-B78C-CC35E16B1691

请求id

result Array of result

指定指标的详细信息

metricRes Struct

指标结果

detail Map xxx

详细信息

total Map xxx

统计

sceneId String test

场景id

traceId String Alibaba

trace_id

示例

请求示例

GET /openapi/instances/airec-cn-xxxxx/dashboard/details?startTime=1541001600000
&endTime=1541174400000&traceIds=alibaba&sceneIds=1&metricType=xxx

正常返回示例

XML格式

<RequestId>16B78383-2803-4964-9605-37B30C073B0E</RequestId>
<Result>
    <TraceId>alibaba</TraceId>
    <SceneId>scene_id1</SceneId>
    <MetricRes>
        <Total>
            <Vval>0</Vval>
            <Min>0</Min>
            <Avg>0</Avg>
            <Max>0</Max>
            <Last7dayCompare>0</Last7dayCompare>
            <StartTime>1588521600</StartTime>
            <EndTime>1588525200</EndTime>
            <LastDayCompare>0</LastDayCompare>
        </Total>
        <Detail>
            <Val>0</Val>
            <Last7dayCompare>0</Last7dayCompare>
            <StartTime>1588003200</StartTime>
            <EndTime>1588006800</EndTime>
            <LastDayCompare>0</LastDayCompare>
        </Detail>
        <Detail>
            <Val>0</Val>
            <Last7dayCompare>0</Last7dayCompare>
            <StartTime>1588089600</StartTime>
            <EndTime>1588093200</EndTime>
            <LastDayCompare>0</LastDayCompare>
        </Detail>
        <Detail>
            <Val>0</Val>
            <Last7dayCompare>0</Last7dayCompare>
            <StartTime>1588176000</StartTime>
            <EndTime>1588179600</EndTime>
            <LastDayCompare>0</LastDayCompare>
        </Detail>
        <Detail>
            <Val>0</Val>
            <Last7dayCompare>0</Last7dayCompare>
            <StartTime>1588262400</StartTime>
            <EndTime>1588266000</EndTime>
            <LastDayCompare>0</LastDayCompare>
        </Detail>
        <Detail>
            <Val>0</Val>
            <Last7dayCompare>0</Last7dayCompare>
            <StartTime>1588348800</StartTime>
            <EndTime>1588352400</EndTime>
            <LastDayCompare>0</LastDayCompare>
        </Detail>
        <Detail>
            <Val>0</Val>
            <Last7dayCompare>0</Last7dayCompare>
            <StartTime>1588435200</StartTime>
            <EndTime>1588438800</EndTime>
            <LastDayCompare>0</LastDayCompare>
        </Detail>
        <Detail>
            <Val>0</Val>
            <Last7dayCompare>0</Last7dayCompare>
            <StartTime>1588521600</StartTime>
            <EndTime>1588525200</EndTime>
            <LastDayCompare>0</LastDayCompare>
        </Detail>
    </MetricRes>
</Result>
<Result>
    <TraceId>alibaba</TraceId>
    <SceneId>all</SceneId>
    <MetricRes>
        <Total>
            <Val>0</Val>
            <Min>0</Min>
            <Avg>0</Avg>
            <Max>0</Max>
            <Last7dayCompare>0</Last7dayCompare>
            <StartTime>1588521600</StartTime>
            <EndTime>1588525200</EndTime>
            <LastDayCompare>0</LastDayCompare>
        </Total>
        <Detail>
            <Val>0</Val>
            <Last7dayCompare>0</Last7dayCompare>
            <StartTime>1588003200</StartTime>
            <EndTime>1588006800</EndTime>
            <LastDayCompare>0</LastDayCompare>
        </Detail>
        <Detail>
            <Val>0</Val>
            <Last7dayCompare>0</Last7dayCompare>
            <StartTime>1588089600</StartTime>
            <EndTime>1588093200</EndTime>
            <LastDayCompare>0</LastDayCompare>
        </Detail>
        <Detail>
            <Val>0</Val>
            <Last7dayCompare>0</Last7dayCompare>
            <StartTime>1588176000</StartTime>
            <EndTime>1588179600</EndTime>
            <LastDayCompare>0</LastDayCompare>
        </Detail>
        <Detail>
            <Val>0</Val>
            <Last7dayCompare>0</Last7dayCompare>
            <StartTime>1588262400</StartTime>
            <EndTime>1588266000</EndTime>
            <LastDayCompare>0</LastDayCompare>
        </Detail>
        <Detail>
            <Val>0</Val>
            <Last7dayCompare>0</Last7dayCompare>
            <StartTime>1588348800</StartTime>
            <EndTime>1588352400</EndTime>
            <LastDayCompare>0</LastDayCompare>
        </Detail>
        <Detail>
            <Val>0</Val>
            <Last7dayCompare>0</Last7dayCompare>
            <StartTime>1588435200</StartTime>
            <EndTime>1588438800</EndTime>
            <LastDayCompare>0</LastDayCompare>
        </Detail>
        <Detail>
            <Val>0</Val>
            <Last7dayCompare>0</Last7dayCompare>
            <StartTime>1588521600</StartTime>
            <EndTime>1588525200</EndTime>
            <LastDayCompare>0</LastDayCompare>
        </Detail>
    </MetricRes>
</Result>

JSON格式

{
    "RequestId": "16B78383-2803-4964-9605-37B30C073B0E",
    "Result": [
        {
            "TraceId": "alibaba",
            "SceneId": "scene_id1",
            "MetricRes": {
                "Total": {
                    "Vval": 0,
                    "Min": 0,
                    "Avg": 0,
                    "Max": 0,
                    "Last7dayCompare": 0,
                    "StartTime": 1588521600,
                    "EndTime": 1588525200,
                    "LastDayCompare": 0
                },
                "Detail": [
                    {
                        "Val": 0,
                        "Last7dayCompare": 0,
                        "StartTime": 1588003200,
                        "EndTime": 1588006800,
                        "LastDayCompare": 0
                    },
                    {
                        "Val": 0,
                        "Last7dayCompare": 0,
                        "StartTime": 1588089600,
                        "EndTime": 1588093200,
                        "LastDayCompare": 0
                    },
                    {
                        "Val": 0,
                        "Last7dayCompare": 0,
                        "StartTime": 1588176000,
                        "EndTime": 1588179600,
                        "LastDayCompare": 0
                    },
                    {
                        "Val": 0,
                        "Last7dayCompare": 0,
                        "StartTime": 1588262400,
                        "EndTime": 1588266000,
                        "LastDayCompare": 0
                    },
                    {
                        "Val": 0,
                        "Last7dayCompare": 0,
                        "StartTime": 1588348800,
                        "EndTime": 1588352400,
                        "LastDayCompare": 0
                    },
                    {
                        "Val": 0,
                        "Last7dayCompare": 0,
                        "StartTime": 1588435200,
                        "EndTime": 1588438800,
                        "LastDayCompare": 0
                    },
                    {
                        "Val": 0,
                        "Last7dayCompare": 0,
                        "StartTime": 1588521600,
                        "EndTime": 1588525200,
                        "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": 1588003200,
                        "EndTime": 1588006800,
                        "LastDayCompare": 0
                    },
                    {
                        "Val": 0,
                        "Last7dayCompare": 0,
                        "StartTime": 1588089600,
                        "EndTime": 1588093200,
                        "LastDayCompare": 0
                    },
                    {
                        "Val": 0,
                        "Last7dayCompare": 0,
                        "StartTime": 1588176000,
                        "EndTime": 1588179600,
                        "LastDayCompare": 0
                    },
                    {
                        "Val": 0,
                        "Last7dayCompare": 0,
                        "StartTime": 1588262400,
                        "EndTime": 1588266000,
                        "LastDayCompare": 0
                    },
                    {
                        "Val": 0,
                        "Last7dayCompare": 0,
                        "StartTime": 1588348800,
                        "EndTime": 1588352400,
                        "LastDayCompare": 0
                    },
                    {
                        "Val": 0,
                        "Last7dayCompare": 0,
                        "StartTime": 1588435200,
                        "EndTime": 1588438800,
                        "LastDayCompare": 0
                    },
                    {
                        "Val": 0,
                        "Last7dayCompare": 0,
                        "StartTime": 1588521600,
                        "EndTime": 1588525200,
                        "LastDayCompare": 0
                    }
                ]
            }
        }
    ]
}

错误码

访问错误中心查看更多错误码。