Versions in this module Expand all Collapse all v0 v0.1.1 Nov 28, 2023 v0.1.0 Mar 30, 2023 Changes in this version + type AggregationGranularity string + const AggregationGranularityDaily + const AggregationGranularityHourly + func PossibleAggregationGranularityValues() []AggregationGranularity + type ClientFactory struct + func NewClientFactory(subscriptionID string, credential azcore.TokenCredential, ...) (*ClientFactory, error) + func (c *ClientFactory) NewRateCardClient() *RateCardClient + func (c *ClientFactory) NewUsageAggregatesClient() *UsageAggregatesClient + type ErrorResponse struct + Code *string + Message *string + func (e *ErrorResponse) UnmarshalJSON(data []byte) error + func (e ErrorResponse) MarshalJSON() ([]byte, error) + type InfoField struct + Project *string + func (i *InfoField) UnmarshalJSON(data []byte) error + func (i InfoField) MarshalJSON() ([]byte, error) + type MeterInfo struct + EffectiveDate *time.Time + IncludedQuantity *float32 + MeterCategory *string + MeterID *string + MeterName *string + MeterRates map[string]*float32 + MeterRegion *string + MeterSubCategory *string + MeterTags []*string + Unit *string + func (m *MeterInfo) UnmarshalJSON(data []byte) error + func (m MeterInfo) MarshalJSON() ([]byte, error) + type MonetaryCommitment struct + EffectiveDate *time.Time + ExcludedMeterIDs []*string + Name *OfferTermInfo + TieredDiscount map[string]*float64 + func (m *MonetaryCommitment) GetOfferTermInfoAutoGenerated() *OfferTermInfoAutoGenerated + func (m *MonetaryCommitment) UnmarshalJSON(data []byte) error + func (m MonetaryCommitment) MarshalJSON() ([]byte, error) + type MonetaryCredit struct + Credit *float64 + EffectiveDate *time.Time + ExcludedMeterIDs []*string + Name *OfferTermInfo + func (m *MonetaryCredit) GetOfferTermInfoAutoGenerated() *OfferTermInfoAutoGenerated + func (m *MonetaryCredit) UnmarshalJSON(data []byte) error + func (m MonetaryCredit) MarshalJSON() ([]byte, error) + type OfferTermInfo string + const OfferTermInfoMonetaryCommitment + const OfferTermInfoMonetaryCredit + const OfferTermInfoRecurringCharge + func PossibleOfferTermInfoValues() []OfferTermInfo + type OfferTermInfoAutoGenerated struct + EffectiveDate *time.Time + Name *OfferTermInfo + func (o *OfferTermInfoAutoGenerated) GetOfferTermInfoAutoGenerated() *OfferTermInfoAutoGenerated + func (o *OfferTermInfoAutoGenerated) UnmarshalJSON(data []byte) error + func (o OfferTermInfoAutoGenerated) MarshalJSON() ([]byte, error) + type OfferTermInfoAutoGeneratedClassification interface + GetOfferTermInfoAutoGenerated func() *OfferTermInfoAutoGenerated + type RateCardClient struct + func NewRateCardClient(subscriptionID string, credential azcore.TokenCredential, ...) (*RateCardClient, error) + func (client *RateCardClient) Get(ctx context.Context, filter string, options *RateCardClientGetOptions) (RateCardClientGetResponse, error) + type RateCardClientGetOptions struct + type RateCardClientGetResponse struct + type RateCardQueryParameters struct + Currency *string + Locale *string + OfferDurableID *string + RegionInfo *string + func (r *RateCardQueryParameters) UnmarshalJSON(data []byte) error + func (r RateCardQueryParameters) MarshalJSON() ([]byte, error) + type RecurringCharge struct + EffectiveDate *time.Time + Name *OfferTermInfo + RecurringCharge *int32 + func (r *RecurringCharge) GetOfferTermInfoAutoGenerated() *OfferTermInfoAutoGenerated + func (r *RecurringCharge) UnmarshalJSON(data []byte) error + func (r RecurringCharge) MarshalJSON() ([]byte, error) + type ResourceRateCardInfo struct + Currency *string + IsTaxIncluded *bool + Locale *string + Meters []*MeterInfo + OfferTerms []OfferTermInfoAutoGeneratedClassification + func (r *ResourceRateCardInfo) UnmarshalJSON(data []byte) error + func (r ResourceRateCardInfo) MarshalJSON() ([]byte, error) + type UsageAggregatesClient struct + func NewUsageAggregatesClient(subscriptionID string, credential azcore.TokenCredential, ...) (*UsageAggregatesClient, error) + func (client *UsageAggregatesClient) NewListPager(reportedStartTime time.Time, reportedEndTime time.Time, ...) *runtime.Pager[UsageAggregatesClientListResponse] + type UsageAggregatesClientListOptions struct + AggregationGranularity *AggregationGranularity + ContinuationToken *string + ShowDetails *bool + type UsageAggregatesClientListResponse struct + type UsageAggregation struct + ID *string + Name *string + Properties *UsageSample + Type *string + func (u *UsageAggregation) UnmarshalJSON(data []byte) error + func (u UsageAggregation) MarshalJSON() ([]byte, error) + type UsageAggregationListResult struct + NextLink *string + Value []*UsageAggregation + func (u *UsageAggregationListResult) UnmarshalJSON(data []byte) error + func (u UsageAggregationListResult) MarshalJSON() ([]byte, error) + type UsageSample struct + InfoFields *InfoField + InstanceData *string + MeterCategory *string + MeterID *string + MeterName *string + MeterRegion *string + MeterSubCategory *string + Quantity *float32 + SubscriptionID *string + Unit *string + UsageEndTime *time.Time + UsageStartTime *time.Time + func (u *UsageSample) UnmarshalJSON(data []byte) error + func (u UsageSample) MarshalJSON() ([]byte, error)