mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-21 01:41:31 +00:00
Updated cost messaging for new db/container pane (#333)
* Adds information text further explaining estimated cost. * Minor tweak to cost messaging * Updated unit tests * Added text and link for capacity planner when choosing manual RUs
This commit is contained in:
@@ -211,11 +211,13 @@ export function getEstimatedSpendHtml(
|
||||
const pricePerRu = getPricePerRu(serverId) * getMultimasterMultiplier(regions, multimaster);
|
||||
|
||||
return (
|
||||
`Estimated cost (${currency}): <b>` +
|
||||
`Cost (${currency}): <b>` +
|
||||
`${currencySign}${calculateEstimateNumber(hourlyPrice)} hourly / ` +
|
||||
`${currencySign}${calculateEstimateNumber(dailyPrice)} daily / ` +
|
||||
`${currencySign}${calculateEstimateNumber(monthlyPrice)} monthly </b> ` +
|
||||
`(${regions} ${regions === 1 ? "region" : "regions"}, ${throughput}RU/s, ${currencySign}${pricePerRu}/RU)`
|
||||
`(${regions} ${regions === 1 ? "region" : "regions"}, ${throughput}RU/s, ${currencySign}${pricePerRu}/RU)` +
|
||||
`<p style='padding: 10px 0px 0px 0px;'>` +
|
||||
`<em>*This cost is an estimate and may vary based on the regions where your account is deployed and potential discounts applied to your account</em></p>`
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user