Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AcronisClient ¶
type AcronisClient struct {
// contains filtered or unexported fields
}
func (*AcronisClient) GetApplication ¶
func (c *AcronisClient) GetApplication(appId string) (ApplicationResponse, error)
func (*AcronisClient) GetTenantID ¶
func (c *AcronisClient) GetTenantID() (string, error)
fetch tenant id
func (*AcronisClient) GetUsage ¶
func (c *AcronisClient) GetUsage(tenantId string) (UsageResponse, error)
fetch usage data
type ApplicationResponse ¶
type UsageItem ¶
type UsageItem struct { AbsoluteValue float64 `json:"absolute_value"` ApplicationID string `json:"application_id"` Edition interface{} `json:"edition"` InfraID string `json:"infra_id"` MeasurementUnit string `json:"measurement_unit"` Name string `json:"name"` RangeStart string `json:"range_start"` TenantID float64 `json:"tenant_id"` ItemType string `json:"type"` UsageName string `json:"usage_name"` Value float64 `json:"value"` // not relevant but there OfferingItem struct { Status int `json:"status"` Quota struct { Value interface{} `json:"value"` Overage interface{} `json:"overage"` Version int `json:"version"` } `json:"quota"` } `json:"offering_item,omitempty"` }
type UsageItems ¶
type UsageResponse ¶
type UsageResponse struct {
Items []UsageItems `json:"items"`
}
Click to show internal directories.
Click to hide internal directories.