-
Notifications
You must be signed in to change notification settings - Fork 18
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
Add table azure_consumption_usage Closes #668 #721
Conversation
func tableAzureConsuptionUsage(_ context.Context) *plugin.Table { | ||
return &plugin.Table{ | ||
Name: "azure_consumption_usage", | ||
Description: "Azure Consuption Usage", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Description: "Azure Consuption Usage", | |
Description: "Azure Consumption Usage", |
|
||
//// LIST FUNCTION | ||
|
||
func listConsuptionUsage(ctx context.Context, d *plugin.QueryData, _ *plugin.HydrateData) (interface{}, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rename the function name from listConsuptionUsage
to listConsumptionUsage
description: "Allows users to query Azure Cost Management usage details for the defined scope." | ||
--- | ||
|
||
# Table: azure_consumption_usage - Query Azure Container Groups using SQL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# Table: azure_consumption_usage - Query Azure Container Groups using SQL | |
# Table: azure_consumption_usage - Query Azure Consumption Usage SQL |
legacy_usage_detail ->> 'IsAzureCreditEligible' as is_azure_credit_eligible, | ||
legacy_usage_detail ->> 'ResourceID' as resource_id | ||
from | ||
azure_consumption_usage; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
azure_consumption_usage; | |
azure_consumption_usage |
from azure_consumption_usage | ||
where |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
from azure_consumption_usage | |
where | |
from | |
azure_consumption_usage | |
where |
Integration test logs
Logs
Example query results
Results