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

Calculate time span for AzureConsumptionPeriod when using -DoAzureConsumptionPreviousMonth #250

Merged
merged 2 commits into from
Aug 28, 2024

Conversation

ReneRebsdorf
Copy link

This commits ensures the correct amount of days data is collected over is written in the generated reports. Before this commit, when using the DoAzureConsumptionPreviousMonth the AzureConsumptionPeriod param was no longer technically relevant, but was used in reports, e.g. it would read as the last X amount of days was collected based on the param value provided, while the actual amount of days depends on the length of the previous month. (between 28 - 31 days).

With this commit the correct amount of days is used throughout the reports, which lead to some other phrasing changes (e.g. it is not necessarily the 'last' X days the report is collected over).

Run identifier: A0BB373FB13C57D8EFFF319E87814FD7C2BBCB46F5D1FF016383F3CF00DB85DF56D77A4E1E58FE095FDFD71C01A571C0A5EFB6429C241E9AA17BBE875DDFCAB2

Rene Rebsdorf added 2 commits August 21, 2024 12:13
This commits ensures the correct amount of days data is collected over is written in the generated reports.
Before this commit, when using the DoAzureConsumptionPreviousMonth the AzureConsumptionPeriod param was no longer technically relevant, but was used in reports, e.g. it would read as the last X amount of days was collected based on the param value provided, while the actual amount of days depends on the length of the previous month. (between 28 - 31 days).

With this commit the correct amount of days is used throughout the reports, which lead to some other phrasing changes (e.g. it is not necessarily the 'last' X days the report is collected over).
@JulianHayward JulianHayward merged commit df21245 into JulianHayward:master Aug 28, 2024
4 checks passed
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.

2 participants