• Cloud Eye

ces
  1. Help Center
  2. Cloud Eye
  3. API Reference
  4. API Description
  5. Metric Management
  6. Querying the Followed Metric List (Deprecated)

Querying the Followed Metric List (Deprecated)

Function

This API is used to query the followed metric list.

URI

GET /V1.0/{project_id}/favorite-metrics

  • Parameter description
    Table 1 Parameter description

    Parameter

    Description

    project_id

    Indicates the project ID.

  • Example
    /V1.0/{project_id}/favorite-metrics

Request

None

Response

  • Response parameters
    Table 2 Response parameters

    Parameter

    Type

    Description

    metrics

    JSON array

    Indicates the list of metric objects.

    namespace

    String

    Indicates the namespace, such as ECS Namespace. Its value must use the service.item format. service and item each can be a string of 3 to 32 characters and must start with a letter and contain only uppercase letters, lowercase letters, digits, and underscores (_).

    metric_name

    String

    Indicates the metric name, such as cpu_util in ECS Metrics.

    dimensions

    JSON array

    Indicates the list of the metric dimensions.

    dimension.name: indicates the object type, for example, ECS (instance_id).

    dimension.value: indicates the object ID, for example, ECS ID.

  • Example response
    {
        "metrics": [
            {
                "namespace": "SYS.ECS", 
                "metric_name": "cpu_util", 
                "dimensions": [
                    {
                        "name": "instance_id", 
                        "value": "acee1330-7f2e-47d5-9b83-774b7b8e5226"
                    }
    
                ]
            }
        ]
    }

Returned Values

  • Normal

    200

  • Abnormal

    Returned Value

    Description

    400 Bad Request

    Request error

    401 Unauthorized

    The authentication information is not provided or is incorrect.

    403 Forbidden

    You are forbidden to access the page requested.

    408 Request Timeout

    The request timed out.

    429 Too Many Requests

    Concurrent requests are excessive.

    500 Internal Server Error

    Failed to complete the request because of an internal service error.

    503 Service Unavailable

    The service is currently unavailable.

Error Code

For details, see Error Codes.