Skip to content

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 join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dataflow cost metrics

3 participants