$ aws cloudwatch list-metrics --namespace "AWS/Events"
{
"Metrics": [
... other metrics ...,
{
"Namespace": "AWS/Events",
"MetricName": "Events",
"Dimensions": [
{
"Name": "EventSourceName",
"Value": "aws.partner/opsgenie.com/<id>"
}
]
},
{
"Namespace": "AWS/Events",
"MetricName": "Invocations",
"Dimensions": [
{
"Name": "EventBusName",
"Value": "aws.partner/opsgenie.com/<id>"
},
{
"Name": "RuleName",
"Value": "opsgenie-to-some-target"
}
]
},
{
"Namespace": "AWS/Events",
"MetricName": "Invocations",
"Dimensions": [
{
"Name": "EventBusName",
"Value": "my-custom-bus"
},
{
"Name": "RuleName",
"Value": "custom-to-some-target"
}
]
},
{
"Namespace": "AWS/Events",
"MetricName": "Invocations",
"Dimensions": []
},
{
"Namespace": "AWS/Events",
"MetricName": "Invocations",
"Dimensions": [
{
"Name": "RuleName",
"Value": "default-to-some-target"
}
]
},
... other metrics ...,
]
}