Query Index Object List

Last updated: 2020-06-05 21:48:20

    Note:

    This is a legacy API which has been hidden and will no longer be updated.

    1. API Description

    This API (DescribeObjects) is used to query the metric object list. After the data is reported, you can call this API to query the dimension information of the data you reported.

    Domain name: monitor.api.qcloud.com

    2. Input Parameters

    The following request parameter list only provides API request parameters. Common request parameters are also needed when this API is called. The Action field for this API is DescribeObjects.

    Parameter Name Required Type Description
    namespace Yes String Namespace. This can be queried by calling the API Query Namespace (DescribeNamespace)
    metricName Yes String Metric name. This can be queried by calling the API Query Metric (DescribeMetric)
    dimensionNames.n Yes Array Group of dimension names. This can be queried by calling the API Query Metric (DescribeMetric). Enter all the dimensions or part of the aggregated dimensions under the metric
    offset No Int Offset. Default is 0 (result is displayed from the first record)
    limit No Int The number of records displayed on each page. Default is 30. The record is displayed from offset, and the number of records displayed is limit

    3. Output Parameters

    Parameter Name Type Description
    code Int Error code, 0: Successful. Other values: Failed. For more information, please see Common Error Codes on the Error Codes page
    message String Error message
    data Array Specific information of object
    total Int Total number of objects

    "data" of the records contains dimension name and the corresponding dimension group list

    4. Example

    Input

    https://monitor.api.qcloud.com/v2/index.php?
    &<Common request parameters>
    &namespace=cvm
    &metricName=diskusage
    &dimensionNames.0=ip
    &dimensionNames.1=diskname
    

    Output

    {
        "code": 0,
        "message": "",
        "data": {
            "records": [
                {
                    "diskname": "sda",
                    "ip": "172.31.58.160"
                },
                {
                    "diskname": "sda",
                    "ip": "172.31.58.161"
                }
            ],
            "total": 2
        }
    }
    

    Was this page helpful?

    Was this page helpful?

    • Not at all
    • Not very helpful
    • Somewhat helpful
    • Very helpful
    • Extremely helpful
    Send Feedback
    Help