Documentation ¶
Overview ¶
TODO: Describe package
TODO: Describe package
TODO: Describe function
TODO: Describe function
Index ¶
- func GetByClusterId() gin.HandlerFunc
- func GetByDatacenterId() gin.HandlerFunc
- func GetByWorkspaceId() gin.HandlerFunc
- func GetForClusters() gin.HandlerFunc
- func GetForClustersByWorkspaceId() gin.HandlerFunc
- func GetForDatacenters() gin.HandlerFunc
- func GetForWorkspaces() gin.HandlerFunc
- func GetForWorkspacesByDatacenterId() gin.HandlerFunc
- func GetTotal() gin.HandlerFunc
- func GetTotalByUser() gin.HandlerFunc
- func MetricsForClustersByProperty() gin.HandlerFunc
- func RegisterResourceMetricsReport() gin.HandlerFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetByClusterId ¶
func GetByClusterId() gin.HandlerFunc
TODO: Describe function
@Summary Get metrics for clusterid @Schemes @Description Get metrics for clusterid @Tags metrics @Accept application/json @Produce application/json @Success 200 {object} apicontracts.MetricItem @Failure 403 {string} Forbidden @Failure 401 {string} Unauthorized @Failure 500 {string} Failure message @Router /v1/metrics/cluster/{clusterId} [get] @Param clusterId path string true "clusterId" @Security ApiKey || AccessToken
func GetByDatacenterId ¶ added in v1.0.45
func GetByDatacenterId() gin.HandlerFunc
TODO: Describe function
@Summary Get metrics for datacenter name @Schemes @Description Get metrics for datacenter name @Tags metrics @Accept application/json @Produce application/json @Success 200 {object} apicontracts.MetricItem @Failure 403 {string} Forbidden @Failure 401 {string} Unauthorized @Failure 500 {string} Failure message @Router /v1/metrics/datacenter/{datacenterName} [get] @Param datacenterName path string true "datacenterName" @Security ApiKey || AccessToken
func GetByWorkspaceId ¶ added in v1.0.45
func GetByWorkspaceId() gin.HandlerFunc
TODO: Describe function
@Summary Get metrics for workspace name @Schemes @Description Get metrics for workspace name @Tags metrics @Accept application/json @Produce application/json @Success 200 {object} apicontracts.MetricItem @Failure 403 {string} Forbidden @Failure 401 {string} Unauthorized @Failure 500 {string} Failure message @Router /v1/metrics/workspace/{workspaceId} [get] @Param workspaceId path string true "workspaceId" @Security ApiKey || AccessToken
func GetForClusters ¶
func GetForClusters() gin.HandlerFunc
TODO: Describe function
@Summary Get metrics for clusters @Schemes @Description Get metrics for clusters @Tags metrics @Accept application/json @Produce application/json @Success 200 {object} apicontracts.MetricList @Failure 403 {string} Forbidden @Failure 401 {string} Unauthorized @Failure 500 {string} Failure message @Router /v1/metrics/clusters [get] @Security ApiKey || AccessToken
func GetForClustersByWorkspaceId ¶ added in v1.0.45
func GetForClustersByWorkspaceId() gin.HandlerFunc
TODO: Describe function
@Summary Get metrics for clusters by workspace @Schemes @Description Get metrics for clusters by workspace @Tags metrics @Accept application/json @Produce application/json @Success 200 {object} apicontracts.MetricList @Failure 403 {string} Forbidden @Failure 401 {string} Unauthorized @Failure 500 {string} Failure message @Param workspaceId path string true "workspaceId" @Router /v1/metrics/clusters/workspace/{workspaceId} [get] @Security ApiKey || AccessToken
func GetForDatacenters ¶
func GetForDatacenters() gin.HandlerFunc
TODO: Describe function
@Summary Get metrics for datacenters @Schemes @Description Get metrics for datacenters @Tags metrics @Accept application/json @Produce application/json @Success 200 {object} apicontracts.MetricList @Failure 403 {string} Forbidden @Failure 401 {string} Unauthorized @Failure 500 {string} Failure message @Router /v1/metrics/datacenters [get] @Security ApiKey || AccessToken
func GetForWorkspaces ¶
func GetForWorkspaces() gin.HandlerFunc
TODO: Describe function
@Summary Get metrics for workspaces @Schemes @Description Get metrics for workspaces @Tags metrics @Accept application/json @Produce application/json @Success 200 {object} apicontracts.PaginatedResult[apicontracts.Metric] @Failure 403 {string} Forbidden @Failure 401 {string} Unauthorized @Failure 500 {string} Failure message @Router /v1/metrics/workspaces/filter [post] @Param filter body apicontracts.Filter true "Filter" @Security ApiKey || AccessToken
func GetForWorkspacesByDatacenterId ¶ added in v1.0.45
func GetForWorkspacesByDatacenterId() gin.HandlerFunc
TODO: Describe function
@Summary Get metrics for workspaces by datacenter name @Schemes @Description Get metrics for workspaces by datacenter name @Tags metrics @Accept application/json @Produce application/json @Success 200 {object} apicontracts.MetricList @Failure 403 {string} Forbidden @Failure 401 {string} Unauthorized @Failure 500 {string} Failure message @Param datacenterId path string true "datacenterId" @Router /v1/metrics/workspaces/datacenter/{datacenterId}/filter [post] @Param filter body apicontracts.Filter true "Filter" @Security ApiKey || AccessToken
func GetTotal ¶
func GetTotal() gin.HandlerFunc
TODO: Describe function
@Summary Get metrics @Schemes @Description Get metrics @Tags metrics @Accept application/json @Produce application/json @Success 200 {object} apicontracts.MetricsTotal @Failure 403 {string} Forbidden @Failure 401 {string} Unauthorized @Failure 500 {string} Failure message @Router /v1/metrics/total [get] @Security ApiKey || AccessToken
func GetTotalByUser ¶
func GetTotalByUser() gin.HandlerFunc
TODO: Describe function
@Summary Get metrics by user @Schemes @Description Get metrics by user @Tags metrics @Accept application/json @Produce application/json @Success 200 {object} apicontracts.MetricsTotal @Failure 403 {string} Forbidden @Failure 401 {string} Unauthorized @Failure 500 {string} Failure message @Router /v1/metrics [get] @Security ApiKey || AccessToken
func MetricsForClustersByProperty ¶
func MetricsForClustersByProperty() gin.HandlerFunc
TODO: Describe function
@Summary Get metrics for clusters by a property @Schemes @Description Get metrics for clusters by a property @Tags metrics @Accept application/json @Produce application/json @Success 200 {object} apicontracts.MetricsCustom @Failure 403 {string} Forbidden @Failure 401 {string} Unauthorized @Failure 500 {string} Failure message @Router /v1/metrics/custom/cluster/{property} [get] @Param property path string true "property" @Security ApiKey || AccessToken
func RegisterResourceMetricsReport ¶
func RegisterResourceMetricsReport() gin.HandlerFunc
Registers metrics from ror-agent
@Summary Register metrics @Schemes @Description Register metrics @Tags metrics @Accept application/json @Produce application/json @Param metrics body apicontracts.MetricsReport true "MetricsReport" @Success 200 {object} apicontracts.MetricsTotal @Failure 403 {string} Forbidden @Failure 401 {string} Unauthorized @Failure 500 {string} Failure message @Router /v1/metrics [post] @Security ApiKey || AccessToken
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.