Skip to content
This repository was archived by the owner on Feb 20, 2026. It is now read-only.

Dataflow cost metrics#16

Open
gsipos wants to merge 4 commits intomasterfrom
dataflow-cost-metrics
Open

Dataflow cost metrics#16
gsipos wants to merge 4 commits intomasterfrom
dataflow-cost-metrics

Conversation

@gsipos
Copy link
Member

@gsipos gsipos commented Aug 8, 2018

closes #3


This change is Reviewable

@gsipos gsipos requested a review from fpeter8 August 8, 2018 11:26
Copy link
Collaborator

@fpeter8 fpeter8 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The cost does not always appear.
To reproduce:

currentMemory * prices.ramTime.amount +
currentVCPUs * cpuPrice.amount;

return cost.toFixed(2) + ' ' + prices.ramTime.currencyCode + '/ hr';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To be consistent with the table, I'd remove the / before the hr


public async getDataflowCostMetricsPrices(region: string): Promise<DataflowCostMetricPrices> {
const prices = await this.listDataflowPrices();
const regionalPrices = prices.filter(sku => sku.serviceRegions.includes(region));
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is a "global" string that you need to handle

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dataflow cost metrics

2 participants