api

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 17, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProcessDetectType

type ProcessDetectType int8
const (
	Scanner ProcessDetectType
	Kubernetes
)

func (ProcessDetectType) Name

func (d ProcessDetectType) Name() string

type ProcessEntity

type ProcessEntity struct {
	Layer        string
	ServiceName  string
	InstanceName string
	ProcessName  string
	Labels       []string
}

ProcessEntity is related to backend entity concept

func (*ProcessEntity) SameWith

func (e *ProcessEntity) SameWith(other *ProcessEntity) bool

func (*ProcessEntity) String

func (e *ProcessEntity) String() string

type ProcessInterface

type ProcessInterface interface {
	// ID of process, it's provide by backend
	ID() string
	// Pid of process
	Pid() int32
	// DetectType of process, it decide how to find this process
	DetectType() ProcessDetectType
	// Entity of process in backend
	Entity() *ProcessEntity
	// ProfilingStat of process
	ProfilingStat() *profiling.Info
}

Jump to

Keyboard shortcuts

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