Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNS = errorx.NewNamespace("error.api.metrics") ErrLoadPrometheusAddressFailed = ErrNS.NewType("load_prom_address_failed") ErrPrometheusNotFound = ErrNS.NewType("prom_not_found") ErrPrometheusQueryFailed = ErrNS.NewType("prom_query_failed") )
Functions ¶
func RegisterRouter ¶
func RegisterRouter(r *gin.RouterGroup, auth *user.AuthService, s *Service)
Types ¶
type PutCustomPromAddressRequest ¶
type PutCustomPromAddressRequest struct {
Addr string `json:"address"`
}
type PutCustomPromAddressResponse ¶
type PutCustomPromAddressResponse struct {
NormalizedAddr string `json:"normalized_address"`
}
type QueryRequest ¶
type QueryResponse ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(lc fx.Lifecycle, p ServiceParams) *Service
Click to show internal directories.
Click to hide internal directories.