
# 查询已完成execution各Job监控数据
get_finished_execution_resource_usage(execution_id, show_datapoints=False)
#### 功能描述
获取已完成状态execution的监控数据，包括CPU和内存使用情况。
#### 输入参数
| 参数              | 是否必选 | 参数类型   | 参数描述          |
|:---|:---|:---|:---|
| execution_id    | 是    | String | execution ID  |
| show_datapoints | 否    | Bool   | 是否展示采集到的监控数据点 |
   
#### 返回值
表1response body字典树第1层key值 
| 参数       | 参数类型  | 描述                                                                 |
|:---|:---|:---|
| job-name | Array | 流程中各Job的名称，具体内容见[表2] |
   
 表2response body字典树各Job元素key值 
| 参数                   | 参数类型       | 描述                                                               |
|:---|:---|:---|
| metric               | Dictionary | 监控元信息，具体内容见[表3] |
| max_value_metric     | Dictionary | 各监控数据点最大值                                                        |
| min_value_metric     | Dictionary | 各监控数据点最小值                                                        |
| average_value_metric | Float      | 各监控数据点平均值                                                        |
| dataPoints           | Array      | 当show_datapoints置为True时，该字段展示所有监控数据点详情                           |
   
 表3监控元信息 
| 参数         | 参数类型   | 描述                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
|:---|:---|:---|
| namespace  | String | 默认值"PAAS.CONTAINER"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| metricName | String | 监控指标，当前支持： - memUsed：已使用内存量，单位为M  - cpuCoreLimit：CPU核数申请量，单位为Core  - cpuUsage：CPU使用量所占百分比  - memUsage：内存使用量所占百分比  - memCapacity：内存容量，单位为M  - cpuCoreUsed：已使用CPU核数，单位为Core   |
| dimensions | Array  | 监控维度说明，具体内容见[表4]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
   
 表4监控维度说明 
| 参数    | 参数类型   | 描述                                                                                                                                                                                                                                                                                                                                          |
|:---|:---|:---|
| name  | String | 监控维度项，默认为以下2项： - clusterId，集群ID，默认为"CCI-ClusterID"  - podID，CCI中Pod ID   |
| value | String | 监控维度值                                                                                                                                                                                                                                                                                                                                       |
   
表5监控数据结构体 
| 参数         | 参数类型   | 描述                                                             |
|:---|:---|:---|
| timestamps | Long   | 监控数据获取时刻时间戳                                                    |
| unit       | String | 监控数据单位                                                         |
| statistics | Array  | 监控数据详情，具体内容见[表6] |
   
 表6监控数据详情 
| 参数        | 参数类型   | 描述                               |
|:---|:---|:---|
| statistic | String | 统计学方法，支持 maximum，average，minimum |
| value     | Float  | 监控数据值                            |
   
