Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dataflow cost metrics #16

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Dataflow cost metrics #16

wants to merge 4 commits into from

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
2 participants