# Get resource support monitoring metric information - DescribeResourceMetric

## Overview

Get resource support monitoring metric information






## Definition

### Public Parameters

| Parameter Name | Type | Description Information | Required |
|:---|:---|:---|:---|
| **Action**     | string  | Corresponding API command name, the current API is `DescribeResourceMetric`.                      | **Yes** |
| **PublicKey**  | string  | AccessKey ID, obtained from [Console](https://console.ckcloudai.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 |
|:---|:---|:---|:---|
| **ResourceType** | string | Resource Type supports the following types:<br />dbaudit: Database Audit;<br />docker: Container Service;<br />docker_node: Container Service Node;<br />eip: Elastic IP;<br />fortress: Bastion Host;<br />hybridcloud_lan: UHybrid Local Area Network;<br />hybridcloud_port: UHybrid Switch Port;<br />hybridcloud_port_sum: UHybrid Public Network Total Export;<br />mq: Message Queue;<br />natgw: NAT Gateway;<br />phost: Physical Cloud Host;<br />sharebandwidth: Shared Bandwidth;<br />uaiservice: AI Online Service;<br />ucdn: UCDN;<br />udb: UDB;<br />uddb: Distributed Database;<br />uddbac: UDDB Analysis Node;<br />uddbmd: Distributed Database Middleware;<br />uddbnode: Distributed Database Node;<br />udisk: UDisk;<br />udisk_rssd: RSSD UDisk;<br />udisk_ssd: SSD UDisk (Data Disk);<br />udisk_sys: Common UDisk (System Disk);<br />udpn: UDPN;<br />udset: UDSet Resource Pool;<br />udset_uhost: Resource Pool Host;<br />udw: UDW;<br />udw_node: UDW Node;<br />ues: ES Service;<br />ues_node: Elasticsearch Service Node;<br />ufile: US3;<br />ufs: UFS;<br />ugaa: Global Dynamic Acceleration;<br />ugc: General Computing;<br />uhadoop: UHadoop Cluster;<br />uhadoop_host: Managed Hadoop Cluster;<br />uhost: UHost;<br />ukafka: UKafka;<br />ukafka_host: Distributed Message Node;<br />ukv: Capacity KV Storage;<br />ulb: ULB;<br />ulb-server: Real Service Node;<br />ulb-vserver: Virtual Service Node;<br />umem: UMem;<br />umemcache: Standalone Memcache;<br />upath: Acceleration Line;<br />uredis: UMem;<br />utsdb: Time Series Database;<br />vpntunnel: VPN Tunnel;<br />vserver: Virtual Service Node;<br /><br />For monitoring items supported by each product, please check: https://docs.ucloud.cn/api/umon-api/get_metric |**Yes**|

### 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|
| **DataSet** | array[[*DescribeResourceMetricResponse*](#describeresourcemetricresponse)] | Metric Information Collection |**Yes**|

#### Data Model


#### DescribeResourceMetricResponse

| Field Name | Type | Description Information | Required |
|:---|:---|:---|:---|
| **Unit** | string | Unit:<br />bit Byte Kb KB Mb MB Gb GB Tb TB Pb PB Eb EB iops bps Bps Kbps KBps Mbps MBps Gbps GBps Tbps TBps pcs pcs/s times times/s thousand times/s ten thousand times/s % s ms us bool ‱ pcs/min pcs/core pcs/10s bytes/10s MB/s dbm min |**Yes**|
| **ConversionFactor** | int | Reserved Field |**Yes**|
| **Type** | string | Metric Type (temporarily meaningless) |**Yes**|
| **MetricGroup** | string | Monitoring Metrics Group |**Yes**|
| **SupportAlarm** | string | Supports alert: Yes\|No |**Yes**|
| **AlarmRange** | object | Valid range for setting alarm thresholds |**Yes**|
| **Frequency** | int | Alarm Frequency |**Yes**|
| **MetricId** | int | Monitoring Item ID |**Yes**|
| **CompareOption** | array[string] | Comparison Method: GE Greater than or Equal to \| LE Less than or Equal to |**Yes**|
| **MetricName** | string | Metric Name |No|

## Example

### Request Example
    
```
https://api.ckcloudai.com/?Action=DescribeResourceMetric
&ResourceType=uhost
```

### Response Example
    
```json
{
  "Action": "DescribeResourceMetricResponse",
  "DataSet": [
    {
      "AlarmRange": {
        "max": 100,
        "min": 50
      },
      "CompareOption": [
        "GE"
      ],
      "ConversionFactor": 0,
      "Frequency": 60,
      "MetricGroup": "",
      "MetricId": 8000,
      "MetricName": "CPUUtilization",
      "SupportAlarm": "Yes",
      "Type": "Number",
      "Unit": "%"
    }
  ],
  "RetCode": 0
}
```





