Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AutoscalerSlotsRecommendation ¶
type AutoscalerSlotsRecommendation struct { ProjectID string `json:"project_id"` RecommendedSlots int `json:"recommended_slots"` UpdatedOn time.Time `json:"updated_on"` }
AutoscalerSlotsRecommendation represents a recommendation for the number of slots to use for a project.
type Client ¶
It can be used for such use cases as autoscaling, health checks, breached quotas, and usage calculations for billing.
func NewClient ¶
NewClient creates a new metrics project client. It must be re-created after the provided access token expires. TODO: Move minting and refresh of the access token to the client.
func (*Client) AutoscalerSlotsRecommendations ¶
func (c *Client) AutoscalerSlotsRecommendations(ctx context.Context, limit, offset int) ([]AutoscalerSlotsRecommendation, error)
AutoscalerSlotsRecommendations invokes the "autoscaler-slots-recommendations" API endpoint to get a list of recommendations for the number of slots to use for projects.
Click to show internal directories.
Click to hide internal directories.