# Get Resource Attribute List - QueryMetricDataSummary

## Overview

Get Resource Graph Attribute List






## Definition

### Public Parameters

| Parameter Name | Type | Description Information | Required |
|:---|:---|:---|:---|
| **Action**     | string  | Corresponding API command name, the current API is `QueryMetricDataSummary`.                      | **Yes** |
| **PublicKey**  | string  | The user's public key can be obtained from [Console](https://console.genesissai.com/uaccount/api_manage)                                             | **Yes** |
| **Signature**  | string  | User signature generated based on public key and API command, see [Signature Algorithm](/docs/api/summary/signature.md)  | **Yes** |

### Request Parameters

| Parameter Name | Type | Description Information | Required |
|:---|:---|:---|:---|
| **Region** | string | Region. See [List of Regions and Availability Zones](/docs/api/summary/regionlist) |**Yes**|
| **ProjectId** | string | Project ID. If not filled in, the default project is used, sub-accounts must be filled in. Please refer to the [GetProjectList interface](/docs/api/summary/get_project_list). |**Yes**|
| **ProductKey** | string | ProductKey， See[Product Introduce](https://docs.ucloud.cn/cloudwatch/metric/intro) |**Yes**|
| **Offset** | int | Number of Skips |**Yes**|
| **Limit** | int | Current Page Data Size |**Yes**|
| **Metrics.N** | string | Specify the list of metrics to query, if not specified, the default set of metrics will be used. |No|
| **ResourceIds.N** | string | Specify the list of resource IDs to query |No|

### Response Field

| Field Name | Type | Description Information | Required |
|:---|:---|:---|:---|
| **RetCode** | int | Return status code. If it is 0, it means successful return. If it is not 0, it means failure. |**Yes**|
| **Action** | string | Operation command name. |**Yes**|
| **Message** | string | Returns an error message, providing detailed description when `RetCode` is non-zero. |No|
| **TraceId** | string | trace ID |No|
| **TotalCount** | int | Total |No|
| **Data** | [*QueryMetricDataSummaryRespData*](#querymetricdatasummaryrespdata) | Data |No|

#### Data Model


#### QueryMetricDataSummaryRespData

| Field Name | Type | Description Information | Required |
|:---|:---|:---|:---|
| **Total** | int | Total |No|
| **List** | array[[*ResourceSummary*](#resourcesummary)] | Result Set |No|

#### ResourceSummary

| Field Name | Type | Description Information | Required |
|:---|:---|:---|:---|
| **Region** | string | Region |No|
| **Zone** | string | Availability Zone |No|
| **ProjectId** | int | Project ID |No|
| **ResourceExtendAttrList** | array[[*ResourceExtendAttrItem*](#resourceextendattritem)] | Resource extended attributes list |No|
| **LabelAttrList** | array[[*LabelAttrItem*](#labelattritem)] | Resource label attributes list |No|
| **CompanyId** | int | Company ID |No|
| **ResourceId** | string | Resource ID |No|
| **Name** | string | Resource Name |No|
| **RegionCN** | string | Region Chinese Name |No|
| **ZoneCN** | string | Availability Zone |No|
| **ProductKey** | string | Product Type |No|
| **OrganizationId** | int | Project ID |No|
| **Status** | int | Resource Status |No|
| **MonitorAttr** | array[[*ResourceMonitorItem*](#resourcemonitoritem)] | Current metric values of the resource |No|

#### ResourceExtendAttrItem

| Field Name | Type | Description Information | Required |
|:---|:---|:---|:---|
| **Key** | string | Key |No|
| **Value** | string | Value |No|

#### LabelAttrItem

| Field Name | Type | Description Information | Required |
|:---|:---|:---|:---|
| **Key** | string | Key |No|
| **Value** | string | Value |No|

#### ResourceMonitorItem

| Field Name | Type | Description Information | Required |
|:---|:---|:---|:---|
| **Metric** | string | Metric Name |No|
| **MetricValues** | array[[*MetricSingleSample*](#metricsinglesample)] | Metric Data Array |No|

#### MetricSingleSample

| Field Name | Type | Description Information | Required |
|:---|:---|:---|:---|
| **Metric** | string | Metric Name |No|
| **TagsList** | array[[*TagListItem*](#taglistitem)] | Metric tag list |No|
| **Value** | [*MetricSample*](#metricsample) | Single sample point object of the index |No|

#### TagListItem

| Field Name | Type | Description Information | Required |
|:---|:---|:---|:---|
| **Tag** | string | Tag name |No|
| **TagValue** | string | Tag value |No|

#### MetricSample

| Field Name | Type | Description Information | Required |
|:---|:---|:---|:---|
| **Timestamp** | int | timestamp |No|
| **Value** | float | Sample Value |No|

## Example

### Request Example
    
```
https://api.genesissai.com/?Action=QueryMetricDataSummary
&Region=cn-zj
&ProjectId=KgGPGwaL
&ProductKey=pHLgbEMJ
&Offset=4
&Limit=5
&Metrics.N=ukkGIzHz
&ResourceIds.N=sooZntcO
```

### Response Example
    
```json
{
  "Action": "QueryMetricDataSummaryResponse",
  "Data": {
    "List": [
      {
        "CompanyId": 0,
        "LabelAttrList": [],
        "MonitorAttr": [
          {
            "Metric": "DCBEKKCS",
            "MetricValues": [
              {
                "Metric": "JSXNSN",
                "TagsList": [
                  {
                    "Tag": "sadadas",
                    "TagValue": "dfadscdc"
                  },
                  {
                    "Tag": "adfeccfae",
                    "TagValue": "rtgtrce"
                  }
                ],
                "Value": {
                  "Timestamp": 1787307096,
                  "Value": 0
                }
              }
            ]
          }
        ],
        "Name": "asldejd",
        "OrganizationId": 0,
        "ProductKey": "oicndscn",
        "ProjectId": 0,
        "Region": "cn-guiyang1",
        "RegionCN": "西南（贵阳）",
        "ResourceExtendAttrList": [],
        "ResourceId": "SHCBBSj",
        "Status": 0,
        "Zone": "cn-guiyang1-01",
        "ZoneCN": "西南（贵阳）可用区A"
      }
    ],
    "Total": 1
  },
  "Message": "pQwRZNol",
  "RetCode": 0,
  "TotalCount": 1,
  "TraceId": "LjdXqSzW"
}
```





