Documentation ¶
Index ¶
- func PossibleValuesForExternalCloudProviderType() []string
- func PossibleValuesForForecastOperatorType() []string
- func PossibleValuesForForecastTimeframe() []string
- func PossibleValuesForForecastType() []string
- func PossibleValuesForFunctionName() []string
- func PossibleValuesForFunctionType() []string
- func PossibleValuesForGranularityType() []string
- func ValidateExternalCloudProviderTypeID(input interface{}, key string) (warnings []string, errors []error)
- type ExternalCloudProviderType
- type ExternalCloudProviderTypeId
- func NewExternalCloudProviderTypeID(externalCloudProviderType ExternalCloudProviderType, ...) ExternalCloudProviderTypeId
- func ParseExternalCloudProviderTypeID(input string) (*ExternalCloudProviderTypeId, error)
- func ParseExternalCloudProviderTypeIDInsensitively(input string) (*ExternalCloudProviderTypeId, error)
- type ExternalCloudProviderUsageOperationOptions
- type ExternalCloudProviderUsageOperationResponse
- type ForecastAggregation
- type ForecastClient
- func (c ForecastClient) ExternalCloudProviderUsage(ctx context.Context, id ExternalCloudProviderTypeId, input ForecastDefinition, ...) (result ExternalCloudProviderUsageOperationResponse, err error)
- func (c ForecastClient) Usage(ctx context.Context, id commonids.ScopeId, input ForecastDefinition, ...) (result UsageOperationResponse, err error)
- type ForecastColumn
- type ForecastComparisonExpression
- type ForecastDataset
- type ForecastDatasetConfiguration
- type ForecastDefinition
- type ForecastFilter
- type ForecastOperatorType
- type ForecastProperties
- type ForecastResult
- type ForecastTimePeriod
- type ForecastTimeframe
- type ForecastType
- type FunctionName
- type FunctionType
- type GranularityType
- type UsageOperationOptions
- type UsageOperationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForExternalCloudProviderType ¶
func PossibleValuesForExternalCloudProviderType() []string
func PossibleValuesForForecastOperatorType ¶ added in v0.20220913.1094425
func PossibleValuesForForecastOperatorType() []string
func PossibleValuesForForecastTimeframe ¶ added in v0.20220913.1094425
func PossibleValuesForForecastTimeframe() []string
func PossibleValuesForForecastType ¶
func PossibleValuesForForecastType() []string
func PossibleValuesForFunctionName ¶ added in v0.20220913.1094425
func PossibleValuesForFunctionName() []string
func PossibleValuesForFunctionType ¶
func PossibleValuesForFunctionType() []string
func PossibleValuesForGranularityType ¶
func PossibleValuesForGranularityType() []string
func ValidateExternalCloudProviderTypeID ¶
func ValidateExternalCloudProviderTypeID(input interface{}, key string) (warnings []string, errors []error)
ValidateExternalCloudProviderTypeID checks that 'input' can be parsed as a External Cloud Provider Type ID
Types ¶
type ExternalCloudProviderType ¶
type ExternalCloudProviderType string
const ( ExternalCloudProviderTypeExternalBillingAccounts ExternalCloudProviderType = "externalBillingAccounts" ExternalCloudProviderTypeExternalSubscriptions ExternalCloudProviderType = "externalSubscriptions" )
type ExternalCloudProviderTypeId ¶
type ExternalCloudProviderTypeId struct { ExternalCloudProviderType ExternalCloudProviderType ExternalCloudProviderId string }
ExternalCloudProviderTypeId is a struct representing the Resource ID for a External Cloud Provider Type
func NewExternalCloudProviderTypeID ¶
func NewExternalCloudProviderTypeID(externalCloudProviderType ExternalCloudProviderType, externalCloudProviderId string) ExternalCloudProviderTypeId
NewExternalCloudProviderTypeID returns a new ExternalCloudProviderTypeId struct
func ParseExternalCloudProviderTypeID ¶
func ParseExternalCloudProviderTypeID(input string) (*ExternalCloudProviderTypeId, error)
ParseExternalCloudProviderTypeID parses 'input' into a ExternalCloudProviderTypeId
func ParseExternalCloudProviderTypeIDInsensitively ¶
func ParseExternalCloudProviderTypeIDInsensitively(input string) (*ExternalCloudProviderTypeId, error)
ParseExternalCloudProviderTypeIDInsensitively parses 'input' case-insensitively into a ExternalCloudProviderTypeId note: this method should only be used for API response data and not user input
func (ExternalCloudProviderTypeId) ID ¶
func (id ExternalCloudProviderTypeId) ID() string
ID returns the formatted External Cloud Provider Type ID
func (ExternalCloudProviderTypeId) Segments ¶
func (id ExternalCloudProviderTypeId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this External Cloud Provider Type ID
func (ExternalCloudProviderTypeId) String ¶
func (id ExternalCloudProviderTypeId) String() string
String returns a human-readable description of this External Cloud Provider Type ID
type ExternalCloudProviderUsageOperationOptions ¶
type ExternalCloudProviderUsageOperationOptions struct {
Filter *string
}
func DefaultExternalCloudProviderUsageOperationOptions ¶
func DefaultExternalCloudProviderUsageOperationOptions() ExternalCloudProviderUsageOperationOptions
type ExternalCloudProviderUsageOperationResponse ¶
type ExternalCloudProviderUsageOperationResponse struct { HttpResponse *http.Response Model *ForecastResult }
type ForecastAggregation ¶ added in v0.20220913.1094425
type ForecastAggregation struct { Function FunctionType `json:"function"` Name FunctionName `json:"name"` }
type ForecastClient ¶
func NewForecastClientWithBaseURI ¶
func NewForecastClientWithBaseURI(endpoint string) ForecastClient
func (ForecastClient) ExternalCloudProviderUsage ¶
func (c ForecastClient) ExternalCloudProviderUsage(ctx context.Context, id ExternalCloudProviderTypeId, input ForecastDefinition, options ExternalCloudProviderUsageOperationOptions) (result ExternalCloudProviderUsageOperationResponse, err error)
ExternalCloudProviderUsage ...
func (ForecastClient) Usage ¶
func (c ForecastClient) Usage(ctx context.Context, id commonids.ScopeId, input ForecastDefinition, options UsageOperationOptions) (result UsageOperationResponse, err error)
Usage ...
type ForecastColumn ¶ added in v0.20220913.1094425
type ForecastComparisonExpression ¶ added in v0.20220913.1094425
type ForecastComparisonExpression struct { Name string `json:"name"` Operator ForecastOperatorType `json:"operator"` Values []string `json:"values"` }
type ForecastDataset ¶
type ForecastDataset struct { Aggregation map[string]ForecastAggregation `json:"aggregation"` Configuration *ForecastDatasetConfiguration `json:"configuration,omitempty"` Filter *ForecastFilter `json:"filter,omitempty"` Granularity *GranularityType `json:"granularity,omitempty"` }
type ForecastDatasetConfiguration ¶ added in v0.20220913.1094425
type ForecastDatasetConfiguration struct {
Columns *[]string `json:"columns,omitempty"`
}
type ForecastDefinition ¶
type ForecastDefinition struct { Dataset ForecastDataset `json:"dataset"` IncludeActualCost *bool `json:"includeActualCost,omitempty"` IncludeFreshPartialCost *bool `json:"includeFreshPartialCost,omitempty"` TimePeriod *ForecastTimePeriod `json:"timePeriod,omitempty"` Timeframe ForecastTimeframe `json:"timeframe"` Type ForecastType `json:"type"` }
type ForecastFilter ¶ added in v0.20220913.1094425
type ForecastFilter struct { And *[]ForecastFilter `json:"and,omitempty"` Dimensions *ForecastComparisonExpression `json:"dimensions,omitempty"` Or *[]ForecastFilter `json:"or,omitempty"` Tags *ForecastComparisonExpression `json:"tags,omitempty"` }
type ForecastOperatorType ¶ added in v0.20220913.1094425
type ForecastOperatorType string
const (
ForecastOperatorTypeIn ForecastOperatorType = "In"
)
type ForecastProperties ¶ added in v0.20220913.1094425
type ForecastProperties struct { Columns *[]ForecastColumn `json:"columns,omitempty"` NextLink *string `json:"nextLink,omitempty"` Rows *[][]interface{} `json:"rows,omitempty"` }
type ForecastResult ¶ added in v0.20220913.1094425
type ForecastResult struct { ETag *string `json:"eTag,omitempty"` Id *string `json:"id,omitempty"` Location *string `json:"location,omitempty"` Name *string `json:"name,omitempty"` Properties *ForecastProperties `json:"properties,omitempty"` Sku *string `json:"sku,omitempty"` Tags *map[string]string `json:"tags,omitempty"` Type *string `json:"type,omitempty"` }
type ForecastTimePeriod ¶ added in v0.20220913.1094425
func (*ForecastTimePeriod) GetFromAsTime ¶ added in v0.20220913.1094425
func (o *ForecastTimePeriod) GetFromAsTime() (*time.Time, error)
func (*ForecastTimePeriod) GetToAsTime ¶ added in v0.20220913.1094425
func (o *ForecastTimePeriod) GetToAsTime() (*time.Time, error)
func (*ForecastTimePeriod) SetFromAsTime ¶ added in v0.20220913.1094425
func (o *ForecastTimePeriod) SetFromAsTime(input time.Time)
func (*ForecastTimePeriod) SetToAsTime ¶ added in v0.20220913.1094425
func (o *ForecastTimePeriod) SetToAsTime(input time.Time)
type ForecastTimeframe ¶ added in v0.20220913.1094425
type ForecastTimeframe string
const (
ForecastTimeframeCustom ForecastTimeframe = "Custom"
)
type ForecastType ¶
type ForecastType string
const ( ForecastTypeActualCost ForecastType = "ActualCost" ForecastTypeAmortizedCost ForecastType = "AmortizedCost" ForecastTypeUsage ForecastType = "Usage" )
type FunctionName ¶ added in v0.20220913.1094425
type FunctionName string
const ( FunctionNameCost FunctionName = "Cost" FunctionNameCostUSD FunctionName = "CostUSD" FunctionNamePreTaxCost FunctionName = "PreTaxCost" FunctionNamePreTaxCostUSD FunctionName = "PreTaxCostUSD" )
type GranularityType ¶
type GranularityType string
const (
GranularityTypeDaily GranularityType = "Daily"
)
type UsageOperationOptions ¶
type UsageOperationOptions struct {
Filter *string
}
func DefaultUsageOperationOptions ¶
func DefaultUsageOperationOptions() UsageOperationOptions
type UsageOperationResponse ¶
type UsageOperationResponse struct { HttpResponse *http.Response Model *ForecastResult }
Source Files ¶
- client.go
- constants.go
- id_externalcloudprovidertype.go
- method_externalcloudproviderusage_autorest.go
- method_usage_autorest.go
- model_forecastaggregation.go
- model_forecastcolumn.go
- model_forecastcomparisonexpression.go
- model_forecastdataset.go
- model_forecastdatasetconfiguration.go
- model_forecastdefinition.go
- model_forecastfilter.go
- model_forecastproperties.go
- model_forecastresult.go
- model_forecasttimeperiod.go
- version.go