Queries information about monitored services in Cloud Monitor.

The information that can be obtained by this operation includes the service description, namespace, and tags.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes DescribeProjectMeta

The operation that you want to perform. Set the value to DescribeProjectMeta.

Labels String No [{"name":"product","value":"ECS"}]

The tags of the service. Tags are used to filter services. A tag is a special mark of a service.

You can filter services only by the tag whose name is product. Example: {"name":"product","value":"ECS"}.

Note We recommend that you do not use special tags of the Cloud Monitor console.
PageNumber Integer No 1

The number of the page to return. Default value: 1.

PageSize Integer No 30

The number of entries to return on each page. Default value: 30.

Note Alibaba Cloud does not limit the value of this parameter. If you need to view all desired entries on a small number of pages, set this parameter to a greater value.

Response parameters

Parameter Type Example Description
Code String 200

The HTTP status code.

Note The status code 200 indicates that the call was successful.
Message String The Request is not authorization.

The returned message.

PageNumber String 1

The page number of the returned page.

PageSize String 5

The number of entries returned per page.

RequestId String 4C2061B2-3B1B-43BF-A4A4-C53426F479C0

The ID of the request.

Resources Array

The details of the services.

Resource
Description String CDN

The description of the service.

Labels String [{"groupFlag":true}]

The tags of the service. Tags are used to filter services. A tag is a special mark of a service.

Tags are returned in the following format: [{"name":"Tag key","value":"Tag value"}, {"name":"Tag key","value":"Tag value"}]. The following tags are commonly used:

  • alertUnit: the unit of the metric value in alerts.

    The original metric value may be too large due to a small unit. In this case, you can use the alertUnit tag to specify an appropriate unit. This tag is used in Cloud Monitor.

  • minAlertPeriod: the minimum time interval to report a new alert. The interval is usually set to 1 minute.
  • metricCategory: the specification of the service. Example: kvstore_sharding.

    An Alibaba Cloud service may have different specifications, and they are defined in the same namespace. In this case, you can use this parameter to distinguish between service specifications.

  • is_alarm: specifies whether an alert rule can be set.

    We recommend that you do not use special tags of the Cloud Monitor console.

Namespace String acs_cdn

The namespace of the service. Format: acs_Service name abbreviation. For more information about namespaces, see Appendix 1: Metrics.

Success Boolean true

Indicates whether the call was successful. The value true indicates a success. The value false indicates a failure.

Total String 12

The total number of entries returned.

Examples

Sample requests

http(s)://[Endpoint]/?Action=DescribeProjectMeta
&<Common request parameters>

Sample success responses

XML format

<DescribeProjectMeta>
          <PageNumber>1</PageNumber>
          <PageSize>5</PageSize>
          <RequestId>4C2061B2-3B1B-43BF-A4A4-C53426F479C0</RequestId>
          <Success>true</Success>
          <Code>200</Code>
          <Total>12</Total>
          <Resources>
                <Resource>
                      <Description>AnalyticDB</Description>
                      <Labels>[{"name":"product","value":"ADS"},{"name":"productCategory","value":"ads"},{"name":"groupFlag","value":"true"}]</Labels>
                      <Namespace>acs_ads</Namespace>
                </Resource>
                <Resource>
                      <Description>Artificial Intelligence Recommendation</Description>
                      <Labels>[{"name":"product","value":"AIRec"},{"name":"productCategory","value":"airec"},{"name":"groupFlag","value":"true"}]</Labels>
                      <Namespace>acs_airec</Namespace>
                </Resource>
                <Resource>
                      <Description>API Gateway</Description>
                      <Labels>[{"name":"product","value":"APIGateway"},{"name":"productCategory","value":"apigateway"},{"name":"groupFlag","value":"true"}]</Labels>
                      <Namespace>acs_apigateway_dashboard</Namespace>
                </Resource>
                <Resource>
                      <Description>CDN</Description>
                      <Labels>[{"name":"product","value":"CDN"},{"name":"productCategory","value":"cdn"},{"name":"groupFlag","value":"true"}]</Labels>
                      <Namespace>acs_cdn</Namespace>
                </Resource>
                <Resource>
                      <Description>Cloud Enterprise Network</Description>
                      <Labels>[{"name":"product","value":"CEN"},{"name":"productCategory","value":"cen,cen_flow,cen_vbr"},{"name":"groupFlag","value":"true"}]</Labels>
                      <Namespace>acs_cen</Namespace>
                </Resource>
          </Resources>
</DescribeProjectMeta>

JSON format

{
  "PageNumber": 1,
  "PageSize": 5,
  "RequestId": "4C2061B2-3B1B-43BF-A4A4-C53426F479C0",
  "Success": true,
  "Code": 200,
  "Total": 12,
  "Resources": {
    "Resource": [
      {
        "Description": "AnalyticDB",
        "Labels": "[{\"name\":\"product\",\"value\":\"ADS\"},{\"name\":\"productCategory\",\"value\":\"ads\"},{\"name\":\"groupFlag\",\"value\":\"true\"}]",
        "Namespace": "acs_ads"
      },
      {
        "Description": "Artificial Intelligence Recommendation",
        "Labels": "[{\"name\":\"product\",\"value\":\"AIRec\"},{\"name\":\"productCategory\",\"value\":\"airec\"},{\"name\":\"groupFlag\",\"value\":\"true\"}]",
        "Namespace": "acs_airec"
      },
      {
        "Description": "API Gateway",
        "Labels": "[{\"name\":\"product\",\"value\":\"APIGateway\"},{\"name\":\"productCategory\",\"value\":\"apigateway\"},{\"name\":\"groupFlag\",\"value\":\"true\"}]",
        "Namespace": "acs_apigateway_dashboard"
      },
      {
        "Description": "CDN",
        "Labels": "[{\"name\":\"product\",\"value\":\"CDN\"},{\"name\":\"productCategory\",\"value\":\"cdn\"},{\"name\":\"groupFlag\",\"value\":\"true\"}]",
        "Namespace": "acs_cdn"
      },
      {
        "Description": "Cloud Enterprise Network",
        "Labels": "[{\"name\":\"product\",\"value\":\"CEN\"},{\"name\":\"productCategory\",\"value\":\"cen,cen_flow,cen_vbr\"},{\"name\":\"groupFlag\",\"value\":\"true\"}]",
        "Namespace": "acs_cen"
      }
    ]
  }
}

Error codes

For a list of error codes, visit the API Error Center.