Queries all metric values in the most recent governance check.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ram:ListRecentGovernanceMetrics |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
49846A91-C1C5-5C2B-BC64-8B0B7BADB4C0 |
| GenerateTime |
string |
The time when the report was generated. |
2025-02-10T02:11:23Z |
| GovernanceMetrics |
object |
||
| GovernanceMetric |
array<object> |
The metric values of all governance items. The value of the parameter is an array, and each row in the array contains the metric value of a governance item. |
|
|
object |
|||
| GovernanceItem |
string |
The name of the governance item. |
RecentAccountLoginTimes |
| MetricType |
string |
The type of the metric value. Valid values:
|
Number |
| MetricValue |
any |
The metric value. The type of the metric value is determined by |
5 |
Examples
Success response
JSON format
{
"RequestId": "49846A91-C1C5-5C2B-BC64-8B0B7BADB4C0",
"GenerateTime": "2025-02-10T02:11:23Z",
"GovernanceMetrics": {
"GovernanceMetric": [
{
"GovernanceItem": "RecentAccountLoginTimes",
"MetricType": "Number",
"MetricValue": "5"
}
]
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.