-
Bug
-
Resolution: Done
-
Normal
-
None
We need to update the serializer for the tag rates to only allow one metric per cost type.
For example,
```
{
"metric":
,
"description": "",
"tag_rates": [
{
"tag_key": "app",
"tag_values": [
{
"unit": "USD",
"usage":
,
"value": 24000.0,
"default": true,
"tag_value": "smoking",
"description": ""
}
]
}
],
"cost_type": "Infrastructure"
},
{
"metric":
```
If the cost_type of the second "node_cost_per_month" is infrastructure then the cost model should be rejected; however, if it is supplementary, then it should be allowed.
- causes
-
COST-713 Update tag based rate to only allow one metric per cost type
- Closed