Documentation ¶
Overview ¶
conprof is short for continuous profiling
Index ¶
- Variables
- type Component
- type ComponentNum
- type ContinuousProfilingConfig
- type EstimateSizeRes
- type GetGroupProfileReq
- type GroupProfileDetail
- type GroupProfiles
- type NgMonitoringConfig
- type ProfileDetail
- type Service
- func (s *Service) ConprofComponents(c *gin.Context)
- func (s *Service) ConprofConfig(c *gin.Context)
- func (s *Service) ConprofDownload(c *gin.Context)
- func (s *Service) ConprofGroupProfileDetail(c *gin.Context)
- func (s *Service) ConprofGroupProfiles(c *gin.Context)
- func (s *Service) ConprofViewProfile(c *gin.Context)
- func (s *Service) EstimateSize(c *gin.Context)
- func (s *Service) GenConprofActionToken(c *gin.Context)
- func (s *Service) UpdateConprofConfig(c *gin.Context)
- type ServiceParams
- type Target
- type ViewSingleProfileReq
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type ComponentNum ¶
type EstimateSizeRes ¶
type GetGroupProfileReq ¶
type GroupProfileDetail ¶
type GroupProfileDetail struct { Ts int64 `json:"ts"` ProfileSecs int `json:"profile_duration_secs"` State string `json:"state"` TargetProfiles []ProfileDetail `json:"target_profiles"` }
type GroupProfiles ¶
type GroupProfiles struct { Ts int64 `json:"ts"` ProfileSecs int `json:"profile_duration_secs"` State string `json:"state"` CompNum ComponentNum `json:"component_num"` }
type NgMonitoringConfig ¶
type NgMonitoringConfig struct {
ContinuousProfiling ContinuousProfilingConfig `json:"continuous_profiling"`
}
type ProfileDetail ¶
type Service ¶
type Service struct { FeatureFlagConprof *featureflag.FeatureFlag // contains filtered or unexported fields }
func (*Service) ConprofComponents ¶
@Summary Get current scraping components @Success 200 {array} Component @Router /continuous_profiling/components [get] @Security JwtAuth @Failure 401 {object} rest.ErrorResponse @Failure 500 {object} rest.ErrorResponse
func (*Service) ConprofConfig ¶
@Summary Get Continuous Profiling Config @Success 200 {object} NgMonitoringConfig @Router /continuous_profiling/config [get] @Security JwtAuth @Failure 401 {object} rest.ErrorResponse @Failure 500 {object} rest.ErrorResponse
func (*Service) ConprofDownload ¶
@Summary Download Group Profile files @Router /continuous_profiling/download [get] @Param ts query number true "timestamp" @Security JwtAuth @Produce application/x-gzip @Failure 401 {object} rest.ErrorResponse @Failure 500 {object} rest.ErrorResponse
func (*Service) ConprofGroupProfileDetail ¶
@Summary Get Group Profile Detail @Router /continuous_profiling/group_profile/detail [get] @Param ts query number true "timestamp" @Security JwtAuth @Success 200 {object} GroupProfileDetail @Failure 401 {object} rest.ErrorResponse @Failure 500 {object} rest.ErrorResponse
func (*Service) ConprofGroupProfiles ¶
@Summary Get Group Profiles @Router /continuous_profiling/group_profiles [get] @Param q query GetGroupProfileReq true "Query" @Security JwtAuth @Success 200 {array} GroupProfiles @Failure 401 {object} rest.ErrorResponse @Failure 500 {object} rest.ErrorResponse
func (*Service) ConprofViewProfile ¶
@Summary View Single Profile files @Router /continuous_profiling/single_profile/view [get] @Param q query ViewSingleProfileReq true "Query" @Security JwtAuth @Produce html @Failure 401 {object} rest.ErrorResponse @Failure 500 {object} rest.ErrorResponse
func (*Service) EstimateSize ¶
@Summary Get Estimate Size @Router /continuous_profiling/estimate_size [get] @Security JwtAuth @Success 200 {object} EstimateSizeRes @Failure 401 {object} rest.ErrorResponse @Failure 500 {object} rest.ErrorResponse
func (*Service) GenConprofActionToken ¶
@Summary Get action token for download or view profile @Router /continuous_profiling/action_token [get] @Param q query string true "target query string" @Security JwtAuth @Success 200 {string} string @Failure 401 {object} rest.ErrorResponse @Failure 500 {object} rest.ErrorResponse
func (*Service) UpdateConprofConfig ¶
@Summary Update Continuous Profiling Config @Router /continuous_profiling/config [post] @Param request body NgMonitoringConfig true "Request body" @Security JwtAuth @Success 200 {string} string "ok" @Failure 401 {object} rest.ErrorResponse @Failure 500 {object} rest.ErrorResponse