Versions in this module Expand all Collapse all v0 v0.20241126.2320 Nov 26, 2024 v0.20241126.1723 Nov 26, 2024 Changes in this version + func PossibleValuesForExportType() []string + func PossibleValuesForExternalCloudProviderType() []string + func PossibleValuesForFunctionType() []string + func PossibleValuesForGranularityType() []string + func PossibleValuesForQueryColumnType() []string + func PossibleValuesForQueryOperatorType() []string + func PossibleValuesForTimeframeType() []string + func ValidateExternalCloudProviderTypeID(input interface{}, key string) (warnings []string, errors []error) + type ExportType string + const ExportTypeActualCost + const ExportTypeAmortizedCost + const ExportTypeUsage + func (s *ExportType) UnmarshalJSON(bytes []byte) error + type ExternalCloudProviderType string + const ExternalCloudProviderTypeExternalBillingAccounts + const ExternalCloudProviderTypeExternalSubscriptions + func (s *ExternalCloudProviderType) UnmarshalJSON(bytes []byte) error + type ExternalCloudProviderTypeId struct + ExternalCloudProviderId string + ExternalCloudProviderType ExternalCloudProviderType + func NewExternalCloudProviderTypeID(externalCloudProviderType ExternalCloudProviderType, ...) ExternalCloudProviderTypeId + func ParseExternalCloudProviderTypeID(input string) (*ExternalCloudProviderTypeId, error) + func ParseExternalCloudProviderTypeIDInsensitively(input string) (*ExternalCloudProviderTypeId, error) + func (id *ExternalCloudProviderTypeId) FromParseResult(input resourceids.ParseResult) error + func (id ExternalCloudProviderTypeId) ID() string + func (id ExternalCloudProviderTypeId) Segments() []resourceids.Segment + func (id ExternalCloudProviderTypeId) String() string + type FunctionType string + const FunctionTypeSum + func (s *FunctionType) UnmarshalJSON(bytes []byte) error + type GranularityType string + const GranularityTypeDaily + func (s *GranularityType) UnmarshalJSON(bytes []byte) error + type QueryAggregation struct + Function FunctionType + Name string + type QueryClient struct + Client *resourcemanager.Client + func NewQueryClientWithBaseURI(sdkApi sdkEnv.Api) (*QueryClient, error) + func (c QueryClient) Usage(ctx context.Context, id commonids.ScopeId, input QueryDefinition) (result UsageOperationResponse, err error) + func (c QueryClient) UsageByExternalCloudProviderType(ctx context.Context, id ExternalCloudProviderTypeId, input QueryDefinition) (result UsageByExternalCloudProviderTypeOperationResponse, err error) + type QueryColumn struct + Name *string + Type *string + type QueryColumnType string + const QueryColumnTypeDimension + const QueryColumnTypeTagKey + func (s *QueryColumnType) UnmarshalJSON(bytes []byte) error + type QueryComparisonExpression struct + Name string + Operator QueryOperatorType + Values []string + type QueryDataset struct + Aggregation *map[string]QueryAggregation + Configuration *QueryDatasetConfiguration + Filter *QueryFilter + Granularity *GranularityType + Grouping *[]QueryGrouping + type QueryDatasetConfiguration struct + Columns *[]string + type QueryDefinition struct + Dataset QueryDataset + TimePeriod *QueryTimePeriod + Timeframe TimeframeType + Type ExportType + type QueryFilter struct + And *[]QueryFilter + Dimensions *QueryComparisonExpression + Or *[]QueryFilter + Tags *QueryComparisonExpression + type QueryGrouping struct + Name string + Type QueryColumnType + type QueryOperatorType string + const QueryOperatorTypeIn + func (s *QueryOperatorType) UnmarshalJSON(bytes []byte) error + type QueryProperties struct + Columns *[]QueryColumn + NextLink *string + Rows *[][]interface{} + type QueryResult struct + ETag *string + Id *string + Location *string + Name *string + Properties *QueryProperties + Sku *string + Tags *map[string]string + Type *string + type QueryTimePeriod struct + From string + To string + func (o *QueryTimePeriod) GetFromAsTime() (*time.Time, error) + func (o *QueryTimePeriod) GetToAsTime() (*time.Time, error) + func (o *QueryTimePeriod) SetFromAsTime(input time.Time) + func (o *QueryTimePeriod) SetToAsTime(input time.Time) + type TimeframeType string + const TimeframeTypeBillingMonthToDate + const TimeframeTypeCustom + const TimeframeTypeMonthToDate + const TimeframeTypeTheLastBillingMonth + const TimeframeTypeTheLastMonth + const TimeframeTypeWeekToDate + func (s *TimeframeType) UnmarshalJSON(bytes []byte) error + type UsageByExternalCloudProviderTypeOperationResponse struct + HttpResponse *http.Response + Model *QueryResult + OData *odata.OData + type UsageOperationResponse struct + HttpResponse *http.Response + Model *QueryResult + OData *odata.OData