Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) PrintHistoricalCostByOrg ¶
type CostBreakdown ¶
type CostBreakdown map[string]CostByProduct
org_name/product_name/charge_type/month/cost
type CostByProduct ¶
type CostByProduct map[string]CostByChargeType
product_name/charge_type/month/cost
type Options ¶
type Options struct { APIKey string `env:"DD_API_KEY" required:"" help:"Datadog API key."` APPKey string `env:"DD_APP_KEY" required:"" help:"Datadog APP key."` View string `short:"v" enum:"summary,sub-org" default:"summary" help:"Cost breakdown view (summary, sub-org)."` Output string `short:"o" enum:"table,tsv,json" default:"table" help:"Formatting style for output (table, tsv, json)."` StartMonth time.Time `short:"s" help:"Cost beginning this month (default: half a year ago)."` EndMonth time.Time `short:"e" help:"Cost ending this month (default: this month)."` }
Click to show internal directories.
Click to hide internal directories.