Edit query body to aggregate by month
This commit is contained in:
parent
ec9da2d1c1
commit
5716e20b9e
@ -1060,7 +1060,7 @@ class AzureCloudProvider(CloudProviderInterface):
|
||||
"timeframe": "Custom",
|
||||
"timePeriod": {"from": payload.from_date, "to": payload.to_date,},
|
||||
"dataset": {
|
||||
"granularity": "Daily",
|
||||
"granularity": "Monthly",
|
||||
"aggregation": {"totalCost": {"name": "PreTaxCost", "function": "Sum"}},
|
||||
"grouping": [{"type": "Dimension", "name": "InvoiceId"}],
|
||||
},
|
||||
|
@ -463,7 +463,7 @@ class MockCloudProvider(CloudProviderInterface):
|
||||
**dict(
|
||||
columns=[
|
||||
{"name": "PreTaxCost", "type": "Number"},
|
||||
{"name": "UsageDate", "type": "Number"},
|
||||
{"name": "BillingMonth", "type": "Datetime"},
|
||||
{"name": "InvoiceId", "type": "String"},
|
||||
{"name": "Currency", "type": "String"},
|
||||
],
|
||||
|
Loading…
x
Reference in New Issue
Block a user