Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var VTAP_LICENSE_FUNCTIONS = []string{ strconv.Itoa(common.AGENT_LICENSE_FUNCTION_NET_NPB), strconv.Itoa(common.AGENT_LICENSE_FUNCTION_NET_NPMD), strconv.Itoa(common.AGENT_LICENSE_FUNCTION_NET_DPDK), strconv.Itoa(common.AGENT_LICENSE_FUNCTION_TRACE_NET), strconv.Itoa(common.AGENT_LICENSE_FUNCTION_TRACE_SYS), strconv.Itoa(common.AGENT_LICENSE_FUNCTION_TRACE_APP), strconv.Itoa(common.AGENT_LICENSE_FUNCTION_TRACE_IO), strconv.Itoa(common.AGENT_LICENSE_FUNCTION_TRACE_BIZ), strconv.Itoa(common.AGENT_LICENSE_FUNCTION_PROFILE_CPU), strconv.Itoa(common.AGENT_LICENSE_FUNCTION_PROFILE_RAM), strconv.Itoa(common.AGENT_LICENSE_FUNCTION_PROFILE_INT), strconv.Itoa(common.AGENT_LICENSE_FUNCTION_LEGACY_METRIC), strconv.Itoa(common.AGENT_LICENSE_FUNCTION_LEGACY_LOG), strconv.Itoa(common.AGENT_LICENSE_FUNCTION_LEGACY_PROBE), }
View Source
var VTAP_LICENSE_TYPE_DEFAULT = common.VTAP_LICENSE_TYPE_A
Functions ¶
func GetChecker ¶
func GetChecker() monitor.LicenseChecker
Types ¶
type Checker ¶
type Checker struct{}
func BuildChecker ¶
func BuildChecker() *Checker
func (*Checker) CheckAgent ¶
func (c *Checker) CheckAgent(agent *metadbmodel.VTap, function int) error
func (*Checker) Init ¶
func (c *Checker) Init(cfg config.ControllerConfig)
type VTapLicenseAllocation ¶
type VTapLicenseAllocation struct {
// contains filtered or unexported fields
}
func NewVTapLicenseAllocation ¶
func NewVTapLicenseAllocation(cfg config.MonitorConfig, ctx context.Context) *VTapLicenseAllocation
func (*VTapLicenseAllocation) Start ¶
func (v *VTapLicenseAllocation) Start(sCtx context.Context)
func (*VTapLicenseAllocation) Stop ¶
func (v *VTapLicenseAllocation) Stop()
Click to show internal directories.
Click to hide internal directories.