monitoring

package
v0.1.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 19, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(service *Service) *Handler

func (*Handler) Healthz

func (h *Handler) Healthz(c *gin.Context)

Healthz handles health check endpoint

func (*Handler) Metrics

func (h *Handler) Metrics(c *gin.Context)

Metrics handles system metrics endpoint

func (*Handler) Status

func (h *Handler) Status(c *gin.Context)

Status handles system status endpoint

type HealthzRequest

type HealthzRequest struct{}

HealthzRequest health check request

type HealthzResponse

type HealthzResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

HealthzResponse health check response

type MetricsRequest

type MetricsRequest struct{}

MetricsRequest metrics request

type MetricsResponse

type MetricsResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

MetricsResponse metrics response

type Service

type Service struct {
	// contains filtered or unexported fields
}

func NewService

func NewService(svcCtx *svc.ServiceContext) *Service

func (*Service) Healthz

func (s *Service) Healthz(ctx context.Context, req *HealthzRequest) (*HealthzResponse, error)

Healthz returns health check status

func (*Service) Metrics

func (s *Service) Metrics(ctx context.Context, req *MetricsRequest) (*MetricsResponse, error)

Metrics returns system metrics

func (*Service) Status

func (s *Service) Status(ctx context.Context, req *StatusRequest) (*StatusResponse, error)

Status returns detailed system status

type StatusRequest

type StatusRequest struct{}

StatusRequest status request

type StatusResponse

type StatusResponse struct {
	Code    int                    `json:"code"`
	Message string                 `json:"message"`
	Data    map[string]interface{} `json:"data"`
}

StatusResponse status response

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL