Add version annotation to API methods

This commit is contained in:
Ingo Oppermann
2022-10-13 20:54:52 +02:00
parent 3da25c0d91
commit f746e581ae
14 changed files with 442 additions and 48 deletions

View File

@@ -32,6 +32,7 @@ func NewMetrics(config MetricsConfig) *MetricsHandler {
// Describe the known metrics
// @Summary List all known metrics with their description and labels
// @Description List all known metrics with their description and labels
// @Tags v16.10.0
// @ID metrics-3-describe
// @Produce json
// @Success 200 {array} api.MetricsDescription
@@ -60,6 +61,7 @@ func (r *MetricsHandler) Describe(c echo.Context) error {
// Query the collected metrics
// @Summary Query the collected metrics
// @Description Query the collected metrics
// @Tags v16.7.2
// @ID metrics-3-metrics
// @Accept json
// @Produce json