Documentation ¶
Index ¶
- type APIError
- type Command
- type CommandLineInput
- type CostAndUsage
- type CostAndUsageOutputType
- type CostAndUsageRequestType
- type CostAndUsageRequestWithResourcesType
- type CostAndUsageStdoutType
- type CostDataReader
- type DateInterval
- type Dimension
- type Error
- type Filter
- type FilterBySelections
- type ForecastCommandLineInput
- type ForecastPrintData
- type ForecastResults
- type ForecastStdoutType
- type GetCostAndUsageAPI
- type GetCostForecastAPI
- type GetCostForecastReport
- type GetCostForecastRequest
- type GetDimensionValuesRequest
- type InputType
- type Metrics
- type PresetError
- type PresetParams
- type PrintOptions
- type PrintWriterType
- type Service
- type SortBy
- type Table
- type Tag
- type Time
- type Total
- type UpsertResponse
- type VectorStoreInput
- type VectorStoreItem
- type VectorStoreItemMetadata
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandLineInput ¶
type CommandLineInput struct { GroupByDimension []string GroupByTag []string FilterByValues map[string]string IsFilterByTag bool TagFilterValue string IsFilterByDimension bool Start string End string ExcludeDiscounts bool Interval string PrintFormat string Metrics []string SortByDate bool OpenAIAPIKey string PineconeIndex string PineconeAPIKey string }
type CostAndUsage ¶
type CostAndUsageOutputType ¶
type CostAndUsageRequestType ¶
type CostAndUsageRequestType struct { Granularity string GroupBy []string GroupByTag []string Time Time IsFilterByTagEnabled bool IsFilterByDimensionEnabled bool TagFilterValue string DimensionFilter map[string]string ExcludeDiscounts bool Alias string Rates []string PrintFormat string Metrics []string SortByDate bool OpenAIAPIKey string PineconeIndex string PineconeAPIKey string }
func (CostAndUsageRequestType) Equals ¶
func (c CostAndUsageRequestType) Equals(c2 CostAndUsageRequestType) bool
type CostAndUsageStdoutType ¶
type CostDataReader ¶
type CostDataReader interface { ExtractGroupBySelections() ([]string, []string) ExtractFilterBySelection() (FilterBySelections, error) ExtractStartAndEndDates() (string, string, error) ExtractPrintPreferences() PrintOptions }
type DateInterval ¶
type FilterBySelections ¶
type ForecastPrintData ¶
type ForecastPrintData struct { Forecast *costexplorer.GetCostForecastOutput Filters []string }
type ForecastResults ¶
type ForecastResults struct { MeanValue string PredictionIntervalLowerBound string PredictionIntervalUpperBound string TimePeriod DateInterval }
type ForecastStdoutType ¶
type ForecastStdoutType struct { Forecast []ForecastResults FilteredBy string Total Total }
type GetCostAndUsageAPI ¶
type GetCostAndUsageAPI interface { GetCostAndUsage(ctx context.Context, optFns ...func(*costexplorer.Options)) (*costexplorer.GetCostAndUsageOutput, error) }
type GetCostForecastAPI ¶
type GetCostForecastAPI interface {
GetCostForecast(ctx context.Context, params *costexplorer.GetCostForecastInput, optFns ...func(*costexplorer.Options)) (*costexplorer.GetCostForecastOutput, error)
}
type GetCostForecastReport ¶
type GetCostForecastReport struct{}
type GetCostForecastRequest ¶
type PresetError ¶
type PresetError struct {
Msg string
}
func (PresetError) Error ¶
func (e PresetError) Error() string
type PresetParams ¶
type PrintOptions ¶
type PrintWriterType ¶
type PrintWriterType int
const ( Stdout PrintWriterType = iota CSV Chart OpenAPI Pinecone )
type UpsertResponse ¶
type UpsertResponse struct {
UpsertedCount int `json:"upsertedCount"`
}
type VectorStoreInput ¶
type VectorStoreInput struct {
Items []VectorStoreItem
}
type VectorStoreItem ¶
type VectorStoreItem struct { ID string EmbeddingText string EmbeddingVector []float32 Metadata VectorStoreItemMetadata }
Click to show internal directories.
Click to hide internal directories.