Repository navigation
Commit b936294
authored
fix(billing-cost-management-mcp-server): correct the ri-performance coverage metrics example and default (#4834)
The `metrics` arg doc told callers to send '["HoursCoverage", "CostCoverage"]'.
GetReservationCoverage rejects those names: "Selected metrics are not valid.
Valid metrics are Hour, Unit, Cost. Provided metrics are HoursCoverage,
CostCoverage". The doc also said omitting `metrics` returns all metrics, but
Cost Explorer then returns only the hours section (CoverageHours).
The doc now gives a working example ('["Hour", "Cost"]'), lists the valid
values, says Unit is EC2 only ("Metric Unit is not supported for <service>"
for the other reservable services), and says the default is Hour only.
Tests: a contract test checks the metrics arg doc, and the two tests that
sent CoverageHours/CoverageCost as request metrics now send Hour/Cost.1 parent 8abaec6 commit b936294
2 files changed
Lines changed: 18 additions & 3 deletions
File tree
- src/billing-cost-management-mcp-server
- awslabs/billing_cost_management_mcp_server/tools
- tests/tools
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
140 | | - | |
| 140 | + | |
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
482 | 482 | | |
483 | 483 | | |
484 | 484 | | |
485 | | - | |
| 485 | + | |
486 | 486 | | |
487 | 487 | | |
488 | 488 | | |
| |||
766 | 766 | | |
767 | 767 | | |
768 | 768 | | |
769 | | - | |
| 769 | + | |
770 | 770 | | |
771 | 771 | | |
772 | 772 | | |
| |||
1181 | 1181 | | |
1182 | 1182 | | |
1183 | 1183 | | |
| 1184 | + | |
| 1185 | + | |
| 1186 | + | |
| 1187 | + | |
| 1188 | + | |
| 1189 | + | |
| 1190 | + | |
| 1191 | + | |
| 1192 | + | |
| 1193 | + | |
| 1194 | + | |
| 1195 | + | |
| 1196 | + | |
| 1197 | + | |
| 1198 | + | |
1184 | 1199 | | |
1185 | 1200 | | |
1186 | 1201 | | |
| |||
0 commit comments