Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler interface {
// ServiceThanosStorageSummary get Thanos object storage summary
// GET /v1/project/{project}/service/{service_name}/thanos/storage/summary
// https://api.aiven.io/doc/#tag/Service:_Thanos/operation/ServiceThanosStorageSummary
ServiceThanosStorageSummary(ctx context.Context, project string, serviceName string) (*ServiceThanosStorageSummaryOut, error)
}
type ServiceThanosStorageSummaryOut ¶
type ServiceThanosStorageSummaryOut struct {
CurrentCost string `json:"current_cost"`
ForecastedCost string `json:"forecasted_cost"`
ForecastedRate string `json:"forecasted_rate,omitempty"`
StorageUsageHistory StorageUsageHistoryOut `json:"storage_usage_history"`
TotalStorageUsage int `json:"total_storage_usage"`
}
type StorageUsageHistoryOut ¶
type StorageUsageHistoryOut struct {
Hourly []HourlyOut `json:"hourly"`
}
type ThanosHandler ¶
type ThanosHandler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler(doer doer) ThanosHandler
func (*ThanosHandler) ServiceThanosStorageSummary ¶
func (h *ThanosHandler) ServiceThanosStorageSummary(ctx context.Context, project string, serviceName string) (*ServiceThanosStorageSummaryOut, error)
Click to show internal directories.
Click to hide internal directories.