Documentation
¶
Overview ¶
Package v1 provides routing and endpoints for the Custom Pod Autoscaler HTTP REST API version 1. Endpoints implemented as handlers, errors returned as valid JSON.
Index ¶
Constants ¶
View Source
const ( // RunType api marks the metric gathering/evaluation as running during an API request, which will use the results to scale RunType = "api" // RunTypeDryRun api marks the metric gathering/evaluation as running during an API request, // which will only view the results and not use it for scaling RunTypeDryRun = "api_dry_run" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct { Router chi.Router Config *config.Config Client resourceclient.Client Scaler scale.Scaler GetMetricer metric.GetMetricer GetEvaluationer evaluate.GetEvaluationer }
API is the Custom Pod Autoscaler REST API, exposing endpoints to retrieve metrics/evaluations
Click to show internal directories.
Click to hide internal directories.