Versions in this module Expand all Collapse all v25 v25.1.0 Feb 6, 2019 v25.0.0 Jan 30, 2019 Changes in this version + const DefaultBaseURI + func UserAgent() string + func Version() string + type AggregationGranularity string + const Daily + const Hourly + func PossibleAggregationGranularityValues() []AggregationGranularity + type BaseClient struct + BaseURI string + SubscriptionID string + func New(subscriptionID string) BaseClient + func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient + type BasicOfferTermInfo interface + AsMonetaryCommitment func() (*MonetaryCommitment, bool) + AsMonetaryCredit func() (*MonetaryCredit, bool) + AsOfferTermInfo func() (*OfferTermInfo, bool) + AsRecurringCharge func() (*RecurringCharge, bool) + type ErrorResponse struct + Code *string + Message *string + type InfoField struct + Project *string + type MeterInfo struct + EffectiveDate *date.Time + IncludedQuantity *float64 + MeterCategory *string + MeterID *uuid.UUID + MeterName *string + MeterRates map[string]*float64 + MeterRegion *string + MeterSubCategory *string + MeterTags *[]string + Unit *string + func (mi MeterInfo) MarshalJSON() ([]byte, error) + type MonetaryCommitment struct + EffectiveDate *date.Time + ExcludedMeterIds *[]uuid.UUID + Name Name + TieredDiscount map[string]*decimal.Decimal + func (mc MonetaryCommitment) AsBasicOfferTermInfo() (BasicOfferTermInfo, bool) + func (mc MonetaryCommitment) AsMonetaryCommitment() (*MonetaryCommitment, bool) + func (mc MonetaryCommitment) AsMonetaryCredit() (*MonetaryCredit, bool) + func (mc MonetaryCommitment) AsOfferTermInfo() (*OfferTermInfo, bool) + func (mc MonetaryCommitment) AsRecurringCharge() (*RecurringCharge, bool) + func (mc MonetaryCommitment) MarshalJSON() ([]byte, error) + type MonetaryCredit struct + Credit *decimal.Decimal + EffectiveDate *date.Time + ExcludedMeterIds *[]uuid.UUID + Name Name + func (mc MonetaryCredit) AsBasicOfferTermInfo() (BasicOfferTermInfo, bool) + func (mc MonetaryCredit) AsMonetaryCommitment() (*MonetaryCommitment, bool) + func (mc MonetaryCredit) AsMonetaryCredit() (*MonetaryCredit, bool) + func (mc MonetaryCredit) AsOfferTermInfo() (*OfferTermInfo, bool) + func (mc MonetaryCredit) AsRecurringCharge() (*RecurringCharge, bool) + func (mc MonetaryCredit) MarshalJSON() ([]byte, error) + type Name string + const NameMonetaryCommitment + const NameMonetaryCredit + const NameOfferTermInfo + const NameRecurringCharge + func PossibleNameValues() []Name + type OfferTermInfo struct + EffectiveDate *date.Time + Name Name + func (oti OfferTermInfo) AsBasicOfferTermInfo() (BasicOfferTermInfo, bool) + func (oti OfferTermInfo) AsMonetaryCommitment() (*MonetaryCommitment, bool) + func (oti OfferTermInfo) AsMonetaryCredit() (*MonetaryCredit, bool) + func (oti OfferTermInfo) AsOfferTermInfo() (*OfferTermInfo, bool) + func (oti OfferTermInfo) AsRecurringCharge() (*RecurringCharge, bool) + func (oti OfferTermInfo) MarshalJSON() ([]byte, error) + type RateCardClient struct + func NewRateCardClient(subscriptionID string) RateCardClient + func NewRateCardClientWithBaseURI(baseURI string, subscriptionID string) RateCardClient + func (client RateCardClient) Get(ctx context.Context, filter string) (result ResourceRateCardInfo, err error) + func (client RateCardClient) GetPreparer(ctx context.Context, filter string) (*http.Request, error) + func (client RateCardClient) GetResponder(resp *http.Response) (result ResourceRateCardInfo, err error) + func (client RateCardClient) GetSender(req *http.Request) (*http.Response, error) + type RateCardQueryParameters struct + Currency *string + Locale *string + OfferDurableID *string + RegionInfo *string + type RecurringCharge struct + EffectiveDate *date.Time + Name Name + RecurringCharge *int32 + func (rc RecurringCharge) AsBasicOfferTermInfo() (BasicOfferTermInfo, bool) + func (rc RecurringCharge) AsMonetaryCommitment() (*MonetaryCommitment, bool) + func (rc RecurringCharge) AsMonetaryCredit() (*MonetaryCredit, bool) + func (rc RecurringCharge) AsOfferTermInfo() (*OfferTermInfo, bool) + func (rc RecurringCharge) AsRecurringCharge() (*RecurringCharge, bool) + func (rc RecurringCharge) MarshalJSON() ([]byte, error) + type ResourceRateCardInfo struct + Currency *string + IsTaxIncluded *bool + Locale *string + Meters *[]MeterInfo + OfferTerms *[]BasicOfferTermInfo + func (rrci *ResourceRateCardInfo) UnmarshalJSON(body []byte) error + type UsageAggregatesClient struct + func NewUsageAggregatesClient(subscriptionID string) UsageAggregatesClient + func NewUsageAggregatesClientWithBaseURI(baseURI string, subscriptionID string) UsageAggregatesClient + func (client UsageAggregatesClient) List(ctx context.Context, reportedStartTime date.Time, reportedEndTime date.Time, ...) (result UsageAggregationListResultPage, err error) + func (client UsageAggregatesClient) ListComplete(ctx context.Context, reportedStartTime date.Time, reportedEndTime date.Time, ...) (result UsageAggregationListResultIterator, err error) + func (client UsageAggregatesClient) ListPreparer(ctx context.Context, reportedStartTime date.Time, reportedEndTime date.Time, ...) (*http.Request, error) + func (client UsageAggregatesClient) ListResponder(resp *http.Response) (result UsageAggregationListResult, err error) + func (client UsageAggregatesClient) ListSender(req *http.Request) (*http.Response, error) + type UsageAggregation struct + ID *string + Name *string + Type *string + func (ua *UsageAggregation) UnmarshalJSON(body []byte) error + func (ua UsageAggregation) MarshalJSON() ([]byte, error) + type UsageAggregationListResult struct + NextLink *string + Value *[]UsageAggregation + func (ualr UsageAggregationListResult) IsEmpty() bool + type UsageAggregationListResultIterator struct + func NewUsageAggregationListResultIterator(page UsageAggregationListResultPage) UsageAggregationListResultIterator + func (iter *UsageAggregationListResultIterator) Next() error + func (iter *UsageAggregationListResultIterator) NextWithContext(ctx context.Context) (err error) + func (iter UsageAggregationListResultIterator) NotDone() bool + func (iter UsageAggregationListResultIterator) Response() UsageAggregationListResult + func (iter UsageAggregationListResultIterator) Value() UsageAggregation + type UsageAggregationListResultPage struct + func NewUsageAggregationListResultPage(...) UsageAggregationListResultPage + func (page *UsageAggregationListResultPage) Next() error + func (page *UsageAggregationListResultPage) NextWithContext(ctx context.Context) (err error) + func (page UsageAggregationListResultPage) NotDone() bool + func (page UsageAggregationListResultPage) Response() UsageAggregationListResult + func (page UsageAggregationListResultPage) Values() []UsageAggregation + type UsageSample struct + InfoFields *InfoField + InstanceData *string + MeterCategory *string + MeterID *string + MeterName *string + MeterRegion *string + MeterSubCategory *string + Quantity *float64 + SubscriptionID *uuid.UUID + Unit *string + UsageEndTime *date.Time + UsageStartTime *date.Time Other modules containing this package gopkg.in/azure/azure-sdk-for-go.v16 gopkg.in/azure/azure-sdk-for-go.v17 gopkg.in/azure/azure-sdk-for-go.v18 gopkg.in/azure/azure-sdk-for-go.v19 gopkg.in/azure/azure-sdk-for-go.v20 gopkg.in/azure/azure-sdk-for-go.v21 gopkg.in/azure/azure-sdk-for-go.v22 gopkg.in/azure/azure-sdk-for-go.v23 gopkg.in/azure/azure-sdk-for-go.v24 gopkg.in/azure/azure-sdk-for-go.v26 gopkg.in/azure/azure-sdk-for-go.v27 gopkg.in/azure/azure-sdk-for-go.v28 gopkg.in/azure/azure-sdk-for-go.v29 gopkg.in/azure/azure-sdk-for-go.v30 gopkg.in/azure/azure-sdk-for-go.v31 gopkg.in/azure/azure-sdk-for-go.v32 gopkg.in/azure/azure-sdk-for-go.v33 gopkg.in/azure/azure-sdk-for-go.v34 gopkg.in/azure/azure-sdk-for-go.v35 gopkg.in/azure/azure-sdk-for-go.v36 gopkg.in/azure/azure-sdk-for-go.v37 gopkg.in/azure/azure-sdk-for-go.v38 gopkg.in/azure/azure-sdk-for-go.v39 gopkg.in/azure/azure-sdk-for-go.v40 gopkg.in/azure/azure-sdk-for-go.v41 gopkg.in/azure/azure-sdk-for-go.v42 gopkg.in/azure/azure-sdk-for-go.v43 gopkg.in/azure/azure-sdk-for-go.v44 gopkg.in/azure/azure-sdk-for-go.v45 gopkg.in/azure/azure-sdk-for-go.v46 gopkg.in/azure/azure-sdk-for-go.v47 gopkg.in/azure/azure-sdk-for-go.v48 gopkg.in/azure/azure-sdk-for-go.v49