1 回答
- 最新
- 投票最多
- 评论最多
1
When you create a MonitorDimension of SERVICE, this is the "default" monitor that watches each service. You don't want to specify anything other than what is below.
Resources:
AnomalyServiceMonitor:
Type: 'AWS::CE::AnomalyMonitor'
Properties:
MonitorName: 'MonitorName'
MonitorType: 'DIMENSIONAL'
MonitorDimension: 'SERVICE'
In contrast, the other three types of monitors for Linked Accounts, Cost Categories, or Cost Allocation tags would be a CUSTOM type, not a DIMENSIONAL type. The MonitorDimension would not apply for these.
Resources:
CustomAnomalyMonitorWithLinkedAccount:
Type: 'AWS::CE::AnomalyMonitor'
Properties:
MonitorName: "MonitorName"
MonitorType: "CUSTOM"
MonitorSpecification: '
{
"Dimensions" : {
"Key" : "LINKED_ACCOUNT",
"Values" : [ "123456789012", "123456789013" ]
}
}'
These three require a MonitorSpecification to denote the tags, account numbers, Cost Categories, or whatever combination of dimensions you are trying to monitor. There are examples of each on the page you linked toward the bottom.
已回答 2 年前
相关内容
- AWS 官方已更新 1 年前
- AWS 官方已更新 2 年前
Thanks for the quick reply, setting just MonitorType: DIMENSIONAL and MonitorDimension: SERVICE worked.
But where in the documentation is the description what MonitorType: DIMENSIONAL means - how should I have known that was the right answer?