{"modulePath":"github.com/StackVista/stackstate-process-agent","version":"v0.99.35","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package model\n\n\tPackage model is a generated protocol buffer package.\n\n\tIt is generated from these files:\n\t\tagent.proto\n\n\tIt has these top-level messages:\n\t\tResCollector\n\t\tCollectorProc\n\t\tCollectorConnections\n\t\tCollectorRealTime\n\t\tCollectorReqStatus\n\t\tCollectorStatus\n\t\tProcess\n\t\tCommand\n\t\tProcessUser\n\t\tContainer\n\t\tProcessStat\n\t\tSystemInfo\n\t\tOSInfo\n\t\tConnection\n\t\tAddr\n\t\tMemoryStat\n\t\tCPUStat\n\t\tSingleCPUStat\n\t\tCPUInfo\n\t\tHost\n\t\tHostTags\n\nmessage.go is a stripped down version of the backend message processing with support for the same MessageVersion and MessageEncoding but with only a limited set of message types.\n\n## Constants\n\n```go\nconst (\n\tMessageV1 MessageVersion = 1\n\tMessageV2                = 2\n\tMessageV3                = 3\n)\n```\n\n```go\nconst (\n\tTypeCollectorProc        = 12\n\tTypeCollectorConnections = 22\n\tTypeResCollector         = 23\n\tTypeCollectorRealTime    = 27\n)\n```\n\n## Variables\n\n```go\nvar (\n\tErrInvalidLengthAgent = fmt.Errorf(\"proto: negative length found during unmarshaling\")\n\tErrIntOverflowAgent   = fmt.Errorf(\"proto: integer overflow\")\n)\n```\n\n```go\nvar ContainerHealth_name = map[int32]string{\n\t0: \"unknownHealth\",\n\t1: \"starting\",\n\t2: \"healthy\",\n\t3: \"unhealthy\",\n}\n```\n\n```go\nvar ContainerHealth_value = map[string]int32{\n\t\"unknownHealth\": 0,\n\t\"starting\":      1,\n\t\"healthy\":       2,\n\t\"unhealthy\":     3,\n}\n```\n\n```go\nvar ContainerState_name = map[int32]string{\n\t0: \"unknown\",\n\t1: \"created\",\n\t2: \"restarting\",\n\t3: \"running\",\n\t4: \"paused\",\n\t5: \"exited\",\n\t6: \"dead\",\n}\n```\n\n```go\nvar ContainerState_value = map[string]int32{\n\t\"unknown\":    0,\n\t\"created\":    1,\n\t\"restarting\": 2,\n\t\"running\":    3,\n\t\"paused\":     4,\n\t\"exited\":     5,\n\t\"dead\":       6,\n}\n```\n\n```go\nvar ProcessState_name = map[int32]string{\n\t0: \"U\",\n\t1: \"D\",\n\t2: \"R\",\n\t3: \"S\",\n\t4: \"T\",\n\t5: \"W\",\n\t6: \"X\",\n\t7: \"Z\",\n}\n```\n\n```go\nvar ProcessState_value = map[string]int32{\n\t\"U\": 0,\n\t\"D\": 1,\n\t\"R\": 2,\n\t\"S\": 3,\n\t\"T\": 4,\n\t\"W\": 5,\n\t\"X\": 6,\n\t\"Z\": 7,\n}\n```\n\n## Functions\n\n```go\nfunc EncodeMessage(m Message) ([]byte, error)\n```\nEncodeMessage encodes a message object into bytes with protobuf. A type header is added for ease of decoding.\n\n## Types\n\n```go\ntype Addr struct {\n\tHost *Host  `protobuf:\"bytes,1,opt,name=host\" json:\"host,omitempty\"`\n\tIp   string `protobuf:\"bytes,2,opt,name=ip,proto3\" json:\"ip,omitempty\"`\n\tPort int32  `protobuf:\"varint,3,opt,name=port,proto3\" json:\"port,omitempty\"`\n}\n```\n\n```go\nfunc (*Addr) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *Addr) GetHost() *Host\n```\n\n```go\nfunc (m *Addr) Marshal() (data []byte, err error)\n```\n\n```go\nfunc (m *Addr) MarshalTo(data []byte) (int, error)\n```\n\n```go\nfunc (*Addr) ProtoMessage()\n```\n\n```go\nfunc (m *Addr) Reset()\n```\n\n```go\nfunc (m *Addr) Size() (n int)\n```\n\n```go\nfunc (m *Addr) String() string\n```\n\n```go\nfunc (m *Addr) Unmarshal(data []byte) error\n```\n\n```go\ntype CPUInfo struct {\n\tNumber     int32  `protobuf:\"varint,1,opt,name=number,proto3\" json:\"number,omitempty\"`\n\tVendor     string `protobuf:\"bytes,2,opt,name=vendor,proto3\" json:\"vendor,omitempty\"`\n\tFamily     string `protobuf:\"bytes,3,opt,name=family,proto3\" json:\"family,omitempty\"`\n\tModel      string `protobuf:\"bytes,4,opt,name=model,proto3\" json:\"model,omitempty\"`\n\tPhysicalId string `protobuf:\"bytes,5,opt,name=physicalId,proto3\" json:\"physicalId,omitempty\"`\n\tCoreId     string `protobuf:\"bytes,6,opt,name=coreId,proto3\" json:\"coreId,omitempty\"`\n\tCores      int32  `protobuf:\"varint,7,opt,name=cores,proto3\" json:\"cores,omitempty\"`\n\tMhz        int64  `protobuf:\"varint,8,opt,name=mhz,proto3\" json:\"mhz,omitempty\"`\n\tCacheSize  int32  `protobuf:\"varint,9,opt,name=cacheSize,proto3\" json:\"cacheSize,omitempty\"`\n}\n```\n\n```go\nfunc (*CPUInfo) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *CPUInfo) Marshal() (data []byte, err error)\n```\n\n```go\nfunc (m *CPUInfo) MarshalTo(data []byte) (int, error)\n```\n\n```go\nfunc (*CPUInfo) ProtoMessage()\n```\n\n```go\nfunc (m *CPUInfo) Reset()\n```\n\n```go\nfunc (m *CPUInfo) Size() (n int)\n```\n\n```go\nfunc (m *CPUInfo) String() string\n```\n\n```go\nfunc (m *CPUInfo) Unmarshal(data []byte) error\n```\n\n```go\ntype CPUStat struct {\n\tLastCpu    string           `protobuf:\"bytes,1,opt,name=lastCpu,proto3\" json:\"lastCpu,omitempty\"`\n\tTotalPct   float32          `protobuf:\"fixed32,2,opt,name=totalPct,proto3\" json:\"totalPct,omitempty\"`\n\tUserPct    float32          `protobuf:\"fixed32,3,opt,name=userPct,proto3\" json:\"userPct,omitempty\"`\n\tSystemPct  float32          `protobuf:\"fixed32,4,opt,name=systemPct,proto3\" json:\"systemPct,omitempty\"`\n\tNumThreads int32            `protobuf:\"varint,5,opt,name=numThreads,proto3\" json:\"numThreads,omitempty\"`\n\tCpus       []*SingleCPUStat `protobuf:\"bytes,6,rep,name=cpus\" json:\"cpus,omitempty\"`\n\tNice       int32            `protobuf:\"varint,7,opt,name=nice,proto3\" json:\"nice,omitempty\"`\n\tUserTime   int64            `protobuf:\"varint,8,opt,name=userTime,proto3\" json:\"userTime,omitempty\"`\n\tSystemTime int64            `protobuf:\"varint,9,opt,name=systemTime,proto3\" json:\"systemTime,omitempty\"`\n}\n```\n\n```go\nfunc (*CPUStat) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *CPUStat) GetCpus() []*SingleCPUStat\n```\n\n```go\nfunc (m *CPUStat) Marshal() (data []byte, err error)\n```\n\n```go\nfunc (m *CPUStat) MarshalTo(data []byte) (int, error)\n```\n\n```go\nfunc (*CPUStat) ProtoMessage()\n```\n\n```go\nfunc (m *CPUStat) Reset()\n```\n\n```go\nfunc (m *CPUStat) Size() (n int)\n```\n\n```go\nfunc (m *CPUStat) String() string\n```\n\n```go\nfunc (m *CPUStat) Unmarshal(data []byte) error\n```\n\n```go\ntype CollectorConnections struct {\n\tHostName    string        `protobuf:\"bytes,2,opt,name=hostName,proto3\" json:\"hostName,omitempty\"`\n\tConnections []*Connection `protobuf:\"bytes,3,rep,name=connections\" json:\"connections,omitempty\"`\n\tHost        *Host         `protobuf:\"bytes,4,opt,name=host\" json:\"host,omitempty\"`\n}\n```\n\n```go\nfunc (*CollectorConnections) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *CollectorConnections) GetConnections() []*Connection\n```\n\n```go\nfunc (m *CollectorConnections) GetHost() *Host\n```\n\n```go\nfunc (m *CollectorConnections) Marshal() (data []byte, err error)\n```\n\n```go\nfunc (m *CollectorConnections) MarshalTo(data []byte) (int, error)\n```\n\n```go\nfunc (*CollectorConnections) ProtoMessage()\n```\n\n```go\nfunc (m *CollectorConnections) Reset()\n```\n\n```go\nfunc (m *CollectorConnections) Size() (n int)\n```\n\n```go\nfunc (m *CollectorConnections) String() string\n```\n\n```go\nfunc (m *CollectorConnections) Unmarshal(data []byte) error\n```\n\n```go\ntype CollectorProc struct {\n\tHostName  string      `protobuf:\"bytes,2,opt,name=hostName,proto3\" json:\"hostName,omitempty\"`\n\tProcesses []*Process  `protobuf:\"bytes,3,rep,name=processes\" json:\"processes,omitempty\"`\n\tHost      *Host       `protobuf:\"bytes,4,opt,name=host\" json:\"host,omitempty\"`\n\tInfo      *SystemInfo `protobuf:\"bytes,5,opt,name=info\" json:\"info,omitempty\"`\n\tGroupId   int32       `protobuf:\"varint,6,opt,name=groupId,proto3\" json:\"groupId,omitempty\"`\n\tGroupSize int32       `protobuf:\"varint,7,opt,name=groupSize,proto3\" json:\"groupSize,omitempty\"`\n\t// Optional metadata fields\n\tKubernetes *datadog_agentpayload.KubeMetadataPayload `protobuf:\"bytes,8,opt,name=kubernetes\" json:\"kubernetes,omitempty\"`\n}\n```\n\n```go\nfunc (*CollectorProc) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *CollectorProc) GetHost() *Host\n```\n\n```go\nfunc (m *CollectorProc) GetInfo() *SystemInfo\n```\n\n```go\nfunc (m *CollectorProc) GetKubernetes() *datadog_agentpayload.KubeMetadataPayload\n```\n\n```go\nfunc (m *CollectorProc) GetProcesses() []*Process\n```\n\n```go\nfunc (m *CollectorProc) Marshal() (data []byte, err error)\n```\n\n```go\nfunc (m *CollectorProc) MarshalTo(data []byte) (int, error)\n```\n\n```go\nfunc (*CollectorProc) ProtoMessage()\n```\n\n```go\nfunc (m *CollectorProc) Reset()\n```\n\n```go\nfunc (m *CollectorProc) Size() (n int)\n```\n\n```go\nfunc (m *CollectorProc) String() string\n```\n\n```go\nfunc (m *CollectorProc) Unmarshal(data []byte) error\n```\n\n```go\ntype CollectorRealTime struct {\n\tHostName string         `protobuf:\"bytes,2,opt,name=hostName,proto3\" json:\"hostName,omitempty\"`\n\tStats    []*ProcessStat `protobuf:\"bytes,3,rep,name=stats\" json:\"stats,omitempty\"`\n\t// Post-resolved fields\n\tHostId      int32 `protobuf:\"varint,4,opt,name=hostId,proto3\" json:\"hostId,omitempty\"`\n\tOrgId       int32 `protobuf:\"varint,5,opt,name=orgId,proto3\" json:\"orgId,omitempty\"`\n\tGroupId     int32 `protobuf:\"varint,6,opt,name=groupId,proto3\" json:\"groupId,omitempty\"`\n\tGroupSize   int32 `protobuf:\"varint,7,opt,name=groupSize,proto3\" json:\"groupSize,omitempty\"`\n\tNumCpus     int32 `protobuf:\"varint,8,opt,name=numCpus,proto3\" json:\"numCpus,omitempty\"`\n\tTotalMemory int64 `protobuf:\"varint,9,opt,name=totalMemory,proto3\" json:\"totalMemory,omitempty\"`\n}\n```\n\n```go\nfunc (*CollectorRealTime) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *CollectorRealTime) GetStats() []*ProcessStat\n```\n\n```go\nfunc (m *CollectorRealTime) Marshal() (data []byte, err error)\n```\n\n```go\nfunc (m *CollectorRealTime) MarshalTo(data []byte) (int, error)\n```\n\n```go\nfunc (*CollectorRealTime) ProtoMessage()\n```\n\n```go\nfunc (m *CollectorRealTime) Reset()\n```\n\n```go\nfunc (m *CollectorRealTime) Size() (n int)\n```\n\n```go\nfunc (m *CollectorRealTime) String() string\n```\n\n```go\nfunc (m *CollectorRealTime) Unmarshal(data []byte) error\n```\n\n```go\ntype CollectorReqStatus struct {\n\tHostName string `protobuf:\"bytes,2,opt,name=hostName,proto3\" json:\"hostName,omitempty\"`\n}\n```\n\n```go\nfunc (*CollectorReqStatus) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *CollectorReqStatus) Marshal() (data []byte, err error)\n```\n\n```go\nfunc (m *CollectorReqStatus) MarshalTo(data []byte) (int, error)\n```\n\n```go\nfunc (*CollectorReqStatus) ProtoMessage()\n```\n\n```go\nfunc (m *CollectorReqStatus) Reset()\n```\n\n```go\nfunc (m *CollectorReqStatus) Size() (n int)\n```\n\n```go\nfunc (m *CollectorReqStatus) String() string\n```\n\n```go\nfunc (m *CollectorReqStatus) Unmarshal(data []byte) error\n```\n\n```go\ntype CollectorStatus struct {\n\tActiveClients int32 `protobuf:\"varint,1,opt,name=activeClients,proto3\" json:\"activeClients,omitempty\"`\n\tInterval      int32 `protobuf:\"varint,2,opt,name=interval,proto3\" json:\"interval,omitempty\"`\n}\n```\n\n```go\nfunc (*CollectorStatus) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *CollectorStatus) Marshal() (data []byte, err error)\n```\n\n```go\nfunc (m *CollectorStatus) MarshalTo(data []byte) (int, error)\n```\n\n```go\nfunc (*CollectorStatus) ProtoMessage()\n```\n\n```go\nfunc (m *CollectorStatus) Reset()\n```\n\n```go\nfunc (m *CollectorStatus) Size() (n int)\n```\n\n```go\nfunc (m *CollectorStatus) String() string\n```\n\n```go\nfunc (m *CollectorStatus) Unmarshal(data []byte) error\n```\n\n```go\ntype Command struct {\n\tArgs   []string `protobuf:\"bytes,1,rep,name=args\" json:\"args,omitempty\"`\n\tCwd    string   `protobuf:\"bytes,3,opt,name=cwd,proto3\" json:\"cwd,omitempty\"`\n\tRoot   string   `protobuf:\"bytes,4,opt,name=root,proto3\" json:\"root,omitempty\"`\n\tOnDisk bool     `protobuf:\"varint,5,opt,name=onDisk,proto3\" json:\"onDisk,omitempty\"`\n\tPpid   int32    `protobuf:\"varint,6,opt,name=ppid,proto3\" json:\"ppid,omitempty\"`\n\tPgroup int32    `protobuf:\"varint,7,opt,name=pgroup,proto3\" json:\"pgroup,omitempty\"`\n\tExe    string   `protobuf:\"bytes,8,opt,name=exe,proto3\" json:\"exe,omitempty\"`\n}\n```\n\n```go\nfunc (*Command) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *Command) Marshal() (data []byte, err error)\n```\n\n```go\nfunc (m *Command) MarshalTo(data []byte) (int, error)\n```\n\n```go\nfunc (*Command) ProtoMessage()\n```\n\n```go\nfunc (m *Command) Reset()\n```\n\n```go\nfunc (m *Command) Size() (n int)\n```\n\n```go\nfunc (m *Command) String() string\n```\n\n```go\nfunc (m *Command) Unmarshal(data []byte) error\n```\n\n```go\ntype Connection struct {\n\tPid    int32  `protobuf:\"varint,1,opt,name=pid,proto3\" json:\"pid,omitempty\"`\n\tFd     int32  `protobuf:\"varint,2,opt,name=fd,proto3\" json:\"fd,omitempty\"`\n\tFamily int32  `protobuf:\"varint,3,opt,name=family,proto3\" json:\"family,omitempty\"`\n\tType   int32  `protobuf:\"varint,4,opt,name=type,proto3\" json:\"type,omitempty\"`\n\tLaddr  *Addr  `protobuf:\"bytes,5,opt,name=laddr\" json:\"laddr,omitempty\"`\n\tRaddr  *Addr  `protobuf:\"bytes,6,opt,name=raddr\" json:\"raddr,omitempty\"`\n\tStatus string `protobuf:\"bytes,7,opt,name=status,proto3\" json:\"status,omitempty\"`\n}\n```\n\n```go\nfunc (*Connection) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *Connection) GetLaddr() *Addr\n```\n\n```go\nfunc (m *Connection) GetRaddr() *Addr\n```\n\n```go\nfunc (m *Connection) Marshal() (data []byte, err error)\n```\n\n```go\nfunc (m *Connection) MarshalTo(data []byte) (int, error)\n```\n\n```go\nfunc (*Connection) ProtoMessage()\n```\n\n```go\nfunc (m *Connection) Reset()\n```\n\n```go\nfunc (m *Connection) Size() (n int)\n```\n\n```go\nfunc (m *Connection) String() string\n```\n\n```go\nfunc (m *Connection) Unmarshal(data []byte) error\n```\n\n```go\ntype Container struct {\n\tType        string  `protobuf:\"bytes,1,opt,name=type,proto3\" json:\"type,omitempty\"`\n\tId          string  `protobuf:\"bytes,2,opt,name=id,proto3\" json:\"id,omitempty\"`\n\tName        string  `protobuf:\"bytes,3,opt,name=name,proto3\" json:\"name,omitempty\"`\n\tImage       string  `protobuf:\"bytes,4,opt,name=image,proto3\" json:\"image,omitempty\"`\n\tCpuLimit    float32 `protobuf:\"fixed32,5,opt,name=cpuLimit,proto3\" json:\"cpuLimit,omitempty\"`\n\tMemoryLimit uint64  `protobuf:\"varint,6,opt,name=memoryLimit,proto3\" json:\"memoryLimit,omitempty\"`\n\t// 7 is removed, do not use.\n\tState         ContainerState  `protobuf:\"varint,8,opt,name=state,proto3,enum=datadog.process_agent.ContainerState\" json:\"state,omitempty\"`\n\tHealth        ContainerHealth `protobuf:\"varint,9,opt,name=health,proto3,enum=datadog.process_agent.ContainerHealth\" json:\"health,omitempty\"`\n\tCreated       int64           `protobuf:\"varint,10,opt,name=created,proto3\" json:\"created,omitempty\"`\n\tContainerRbps float32         `protobuf:\"fixed32,11,opt,name=containerRbps,proto3\" json:\"containerRbps,omitempty\"`\n\tContainerWbps float32         `protobuf:\"fixed32,12,opt,name=containerWbps,proto3\" json:\"containerWbps,omitempty\"`\n}\n```\n\n```go\nfunc (*Container) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *Container) Marshal() (data []byte, err error)\n```\n\n```go\nfunc (m *Container) MarshalTo(data []byte) (int, error)\n```\n\n```go\nfunc (*Container) ProtoMessage()\n```\n\n```go\nfunc (m *Container) Reset()\n```\n\n```go\nfunc (m *Container) Size() (n int)\n```\n\n```go\nfunc (m *Container) String() string\n```\n\n```go\nfunc (m *Container) Unmarshal(data []byte) error\n```\n\n```go\ntype ContainerHealth int32\n```\n[https://blog.couchbase.com/docker-health-check-keeping-containers-healthy/](https://blog.couchbase.com/docker-health-check-keeping-containers-healthy/) health can be: starting, healthy, unhealthy\n\n```go\nconst (\n\tContainerHealth_unknownHealth ContainerHealth = 0\n\tContainerHealth_starting      ContainerHealth = 1\n\tContainerHealth_healthy       ContainerHealth = 2\n\tContainerHealth_unhealthy     ContainerHealth = 3\n)\n```\n\n```go\nfunc (ContainerHealth) EnumDescriptor() ([]byte, []int)\n```\n\n```go\nfunc (x ContainerHealth) String() string\n```\n\n```go\ntype ContainerState int32\n```\nstatus section in [https://docs.docker.com/engine/api/v1.29/#tag/Container](https://docs.docker.com/engine/api/v1.29/#tag/Container)\n\n```go\nconst (\n\tContainerState_unknown    ContainerState = 0\n\tContainerState_created    ContainerState = 1\n\tContainerState_restarting ContainerState = 2\n\tContainerState_running    ContainerState = 3\n\tContainerState_paused     ContainerState = 4\n\tContainerState_exited     ContainerState = 5\n\tContainerState_dead       ContainerState = 6\n)\n```\n\n```go\nfunc (ContainerState) EnumDescriptor() ([]byte, []int)\n```\n\n```go\nfunc (x ContainerState) String() string\n```\n\n```go\ntype Host struct {\n\tId          int32       `protobuf:\"varint,1,opt,name=id,proto3\" json:\"id,omitempty\"`\n\tOrgId       int32       `protobuf:\"varint,2,opt,name=orgId,proto3\" json:\"orgId,omitempty\"`\n\tName        string      `protobuf:\"bytes,3,opt,name=name,proto3\" json:\"name,omitempty\"`\n\tTags        []*HostTags `protobuf:\"bytes,4,rep,name=tags\" json:\"tags,omitempty\"`\n\tAllTags     []string    `protobuf:\"bytes,6,rep,name=allTags\" json:\"allTags,omitempty\"`\n\tNumCpus     int32       `protobuf:\"varint,7,opt,name=numCpus,proto3\" json:\"numCpus,omitempty\"`\n\tTotalMemory int64       `protobuf:\"varint,8,opt,name=totalMemory,proto3\" json:\"totalMemory,omitempty\"`\n}\n```\nHost and HostTags are used in backend post-resolution\n\n```go\nfunc (*Host) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *Host) GetTags() []*HostTags\n```\n\n```go\nfunc (m *Host) Marshal() (data []byte, err error)\n```\n\n```go\nfunc (m *Host) MarshalTo(data []byte) (int, error)\n```\n\n```go\nfunc (*Host) ProtoMessage()\n```\n\n```go\nfunc (m *Host) Reset()\n```\n\n```go\nfunc (m *Host) Size() (n int)\n```\n\n```go\nfunc (m *Host) String() string\n```\n\n```go\nfunc (m *Host) Unmarshal(data []byte) error\n```\n\n```go\ntype HostTags struct {\n\tSourceType uint32   `protobuf:\"varint,1,opt,name=sourceType,proto3\" json:\"sourceType,omitempty\"`\n\tTags       []string `protobuf:\"bytes,2,rep,name=tags\" json:\"tags,omitempty\"`\n}\n```\n\n```go\nfunc (*HostTags) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *HostTags) Marshal() (data []byte, err error)\n```\n\n```go\nfunc (m *HostTags) MarshalTo(data []byte) (int, error)\n```\n\n```go\nfunc (*HostTags) ProtoMessage()\n```\n\n```go\nfunc (m *HostTags) Reset()\n```\n\n```go\nfunc (m *HostTags) Size() (n int)\n```\n\n```go\nfunc (m *HostTags) String() string\n```\n\n```go\nfunc (m *HostTags) Unmarshal(data []byte) error\n```\n\n```go\ntype MemoryStat struct {\n\tRss    uint64 `protobuf:\"varint,1,opt,name=rss,proto3\" json:\"rss,omitempty\"`\n\tVms    uint64 `protobuf:\"varint,2,opt,name=vms,proto3\" json:\"vms,omitempty\"`\n\tSwap   uint64 `protobuf:\"varint,3,opt,name=swap,proto3\" json:\"swap,omitempty\"`\n\tShared uint64 `protobuf:\"varint,4,opt,name=shared,proto3\" json:\"shared,omitempty\"`\n\tText   uint64 `protobuf:\"varint,5,opt,name=text,proto3\" json:\"text,omitempty\"`\n\tLib    uint64 `protobuf:\"varint,6,opt,name=lib,proto3\" json:\"lib,omitempty\"`\n\tData   uint64 `protobuf:\"varint,7,opt,name=data,proto3\" json:\"data,omitempty\"`\n\tDirty  uint64 `protobuf:\"varint,8,opt,name=dirty,proto3\" json:\"dirty,omitempty\"`\n}\n```\n\n```go\nfunc (*MemoryStat) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *MemoryStat) Marshal() (data []byte, err error)\n```\n\n```go\nfunc (m *MemoryStat) MarshalTo(data []byte) (int, error)\n```\n\n```go\nfunc (*MemoryStat) ProtoMessage()\n```\n\n```go\nfunc (m *MemoryStat) Reset()\n```\n\n```go\nfunc (m *MemoryStat) Size() (n int)\n```\n\n```go\nfunc (m *MemoryStat) String() string\n```\n\n```go\nfunc (m *MemoryStat) Unmarshal(data []byte) error\n```\n\n```go\ntype Message struct {\n\tHeader MessageHeader\n\tBody   MessageBody\n}\n```\n\n```go\nfunc DecodeMessage(data []byte) (Message, error)\n```\nDecodeMessage decodes raw message bytes into a specific type that satisfies the Message interface. If we can't decode, an error is returned.\n\n```go\ntype MessageBody interface {\n\tProtoMessage()\n\tReset()\n\tString() string\n\tSize() int\n}\n```\nMessage is a common interface used by all message types.\n\n```go\ntype MessageEncoding uint8\n```\nMessageEncoding represents how messages will be encoded or decoded for over-the-wire transfer. Protobuf should be used for server-side messages (e.g. from collector \\\u003c-\u003e server) and JSON should be used for client-side.\n\n```go\nconst (\n\tMessageEncodingProtobuf MessageEncoding = 0\n\tMessageEncodingJSON     MessageEncoding = 1\n\tMessageEncodingZstdPB   MessageEncoding = 2\n)\n```\n\n```go\ntype MessageHeader struct {\n\tVersion        MessageVersion\n\tEncoding       MessageEncoding\n\tType           MessageType\n\tSubscriptionID uint8 // Unused in Agent\n\tOrgID          int32 // Unused in Agent\n\tTimestamp      int64\n}\n```\n\n```go\nfunc ReadHeader(data []byte) (MessageHeader, int, error)\n```\nReadHeader reads the header off raw message bytes.\n\n```go\ntype MessageType uint8\n```\nMessageType is a string representing the type of a message.\n\n```go\nfunc DetectMessageType(b MessageBody) (MessageType, error)\n```\nDetectMessageType returns the message type for the given MessageBody\n\n```go\ntype MessageVersion uint8\n```\n\n```go\ntype OSInfo struct {\n\tName          string `protobuf:\"bytes,1,opt,name=name,proto3\" json:\"name,omitempty\"`\n\tPlatform      string `protobuf:\"bytes,2,opt,name=platform,proto3\" json:\"platform,omitempty\"`\n\tFamily        string `protobuf:\"bytes,3,opt,name=family,proto3\" json:\"family,omitempty\"`\n\tVersion       string `protobuf:\"bytes,4,opt,name=version,proto3\" json:\"version,omitempty\"`\n\tKernelVersion string `protobuf:\"bytes,5,opt,name=kernelVersion,proto3\" json:\"kernelVersion,omitempty\"`\n}\n```\n\n```go\nfunc (*OSInfo) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *OSInfo) Marshal() (data []byte, err error)\n```\n\n```go\nfunc (m *OSInfo) MarshalTo(data []byte) (int, error)\n```\n\n```go\nfunc (*OSInfo) ProtoMessage()\n```\n\n```go\nfunc (m *OSInfo) Reset()\n```\n\n```go\nfunc (m *OSInfo) Size() (n int)\n```\n\n```go\nfunc (m *OSInfo) String() string\n```\n\n```go\nfunc (m *OSInfo) Unmarshal(data []byte) error\n```\n\n```go\ntype Process struct {\n\tKey     uint32       `protobuf:\"varint,1,opt,name=key,proto3\" json:\"key,omitempty\"`\n\tPid     int32        `protobuf:\"varint,2,opt,name=pid,proto3\" json:\"pid,omitempty\"`\n\tHost    *Host        `protobuf:\"bytes,3,opt,name=host\" json:\"host,omitempty\"`\n\tCommand *Command     `protobuf:\"bytes,4,opt,name=command\" json:\"command,omitempty\"`\n\tUser    *ProcessUser `protobuf:\"bytes,5,opt,name=user\" json:\"user,omitempty\"`\n\t// 6 is deprecated\n\tMemory      *MemoryStat  `protobuf:\"bytes,7,opt,name=memory\" json:\"memory,omitempty\"`\n\tCpu         *CPUStat     `protobuf:\"bytes,8,opt,name=cpu\" json:\"cpu,omitempty\"`\n\tCreateTime  int64        `protobuf:\"varint,9,opt,name=createTime,proto3\" json:\"createTime,omitempty\"`\n\tContainer   *Container   `protobuf:\"bytes,10,opt,name=container\" json:\"container,omitempty\"`\n\tOpenFdCount int32        `protobuf:\"varint,11,opt,name=openFdCount,proto3\" json:\"openFdCount,omitempty\"`\n\tState       ProcessState `protobuf:\"varint,12,opt,name=state,proto3,enum=datadog.process_agent.ProcessState\" json:\"state,omitempty\"`\n}\n```\n\n```go\nfunc (*Process) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *Process) GetCommand() *Command\n```\n\n```go\nfunc (m *Process) GetContainer() *Container\n```\n\n```go\nfunc (m *Process) GetCpu() *CPUStat\n```\n\n```go\nfunc (m *Process) GetHost() *Host\n```\n\n```go\nfunc (m *Process) GetMemory() *MemoryStat\n```\n\n```go\nfunc (m *Process) GetUser() *ProcessUser\n```\n\n```go\nfunc (m *Process) Marshal() (data []byte, err error)\n```\n\n```go\nfunc (m *Process) MarshalTo(data []byte) (int, error)\n```\n\n```go\nfunc (*Process) ProtoMessage()\n```\n\n```go\nfunc (m *Process) Reset()\n```\n\n```go\nfunc (m *Process) Size() (n int)\n```\n\n```go\nfunc (m *Process) String() string\n```\n\n```go\nfunc (m *Process) Unmarshal(data []byte) error\n```\n\n```go\ntype ProcessStat struct {\n\tPid int32 `protobuf:\"varint,1,opt,name=pid,proto3\" json:\"pid,omitempty\"`\n\t// In milliseconds\n\tCreateTime  int64       `protobuf:\"varint,2,opt,name=createTime,proto3\" json:\"createTime,omitempty\"`\n\tMemory      *MemoryStat `protobuf:\"bytes,3,opt,name=memory\" json:\"memory,omitempty\"`\n\tCpu         *CPUStat    `protobuf:\"bytes,4,opt,name=cpu\" json:\"cpu,omitempty\"`\n\tNice        int32       `protobuf:\"varint,5,opt,name=nice,proto3\" json:\"nice,omitempty\"`\n\tThreads     int32       `protobuf:\"varint,7,opt,name=threads,proto3\" json:\"threads,omitempty\"`\n\tOpenFdCount int32       `protobuf:\"varint,8,opt,name=openFdCount,proto3\" json:\"openFdCount,omitempty\"`\n\tKey         uint32      `protobuf:\"varint,9,opt,name=key,proto3\" json:\"key,omitempty\"`\n\t// we need container id because we need to do the scoring by container\n\tContainerId    string         `protobuf:\"bytes,10,opt,name=containerId,proto3\" json:\"containerId,omitempty\"`\n\tContainerState ContainerState `protobuf:\"varint,11,opt,name=containerState,proto3,enum=datadog.process_agent.ContainerState\" json:\"containerState,omitempty\"`\n\tProcessState   ProcessState   `protobuf:\"varint,12,opt,name=processState,proto3,enum=datadog.process_agent.ProcessState\" json:\"processState,omitempty\"`\n\t// These stats are from the container level but are stored per-process\n\t// because we don't send a container primitive yet.\n\tContainerHealth ContainerHealth `protobuf:\"varint,15,opt,name=containerHealth,proto3,enum=datadog.process_agent.ContainerHealth\" json:\"containerHealth,omitempty\"`\n\tContainerRbps   float32         `protobuf:\"fixed32,16,opt,name=containerRbps,proto3\" json:\"containerRbps,omitempty\"`\n\tContainerWbps   float32         `protobuf:\"fixed32,17,opt,name=containerWbps,proto3\" json:\"containerWbps,omitempty\"`\n}\n```\nProcessStat is used for real-time process messages. It should only contain data that can change for a running process (and relevant information to generate a key). We will send a lot of these in the real-time messages so it's critical to keep this small.\n\n```go\nfunc (*ProcessStat) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *ProcessStat) GetCpu() *CPUStat\n```\n\n```go\nfunc (m *ProcessStat) GetMemory() *MemoryStat\n```\n\n```go\nfunc (m *ProcessStat) Marshal() (data []byte, err error)\n```\n\n```go\nfunc (m *ProcessStat) MarshalTo(data []byte) (int, error)\n```\n\n```go\nfunc (*ProcessStat) ProtoMessage()\n```\n\n```go\nfunc (m *ProcessStat) Reset()\n```\n\n```go\nfunc (m *ProcessStat) Size() (n int)\n```\n\n```go\nfunc (m *ProcessStat) String() string\n```\n\n```go\nfunc (m *ProcessStat) Unmarshal(data []byte) error\n```\n\n```go\ntype ProcessState int32\n```\nProcess state codes in [http://wiki.preshweb.co.uk/doku.php?id=linux:psflags](http://wiki.preshweb.co.uk/doku.php?id=linux:psflags)\n\n```go\nconst (\n\tProcessState_U ProcessState = 0\n\tProcessState_D ProcessState = 1\n\tProcessState_R ProcessState = 2\n\tProcessState_S ProcessState = 3\n\tProcessState_T ProcessState = 4\n\tProcessState_W ProcessState = 5\n\tProcessState_X ProcessState = 6\n\tProcessState_Z ProcessState = 7\n)\n```\n\n```go\nfunc (ProcessState) EnumDescriptor() ([]byte, []int)\n```\n\n```go\nfunc (x ProcessState) String() string\n```\n\n```go\ntype ProcessUser struct {\n\tName string `protobuf:\"bytes,1,opt,name=name,proto3\" json:\"name,omitempty\"`\n\tUid  int32  `protobuf:\"varint,2,opt,name=uid,proto3\" json:\"uid,omitempty\"`\n\tGid  int32  `protobuf:\"varint,3,opt,name=gid,proto3\" json:\"gid,omitempty\"`\n\tEuid int32  `protobuf:\"varint,4,opt,name=euid,proto3\" json:\"euid,omitempty\"`\n\tEgid int32  `protobuf:\"varint,5,opt,name=egid,proto3\" json:\"egid,omitempty\"`\n\tSuid int32  `protobuf:\"varint,6,opt,name=suid,proto3\" json:\"suid,omitempty\"`\n\tSgid int32  `protobuf:\"varint,7,opt,name=sgid,proto3\" json:\"sgid,omitempty\"`\n}\n```\n\n```go\nfunc (*ProcessUser) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *ProcessUser) Marshal() (data []byte, err error)\n```\n\n```go\nfunc (m *ProcessUser) MarshalTo(data []byte) (int, error)\n```\n\n```go\nfunc (*ProcessUser) ProtoMessage()\n```\n\n```go\nfunc (m *ProcessUser) Reset()\n```\n\n```go\nfunc (m *ProcessUser) Size() (n int)\n```\n\n```go\nfunc (m *ProcessUser) String() string\n```\n\n```go\nfunc (m *ProcessUser) Unmarshal(data []byte) error\n```\n\n```go\ntype ResCollector struct {\n\tHeader  *ResCollector_Header `protobuf:\"bytes,1,opt,name=header\" json:\"header,omitempty\"`\n\tMessage string               `protobuf:\"bytes,2,opt,name=message,proto3\" json:\"message,omitempty\"`\n\tStatus  *CollectorStatus     `protobuf:\"bytes,3,opt,name=status\" json:\"status,omitempty\"`\n}\n```\n\n```go\nfunc (*ResCollector) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *ResCollector) GetHeader() *ResCollector_Header\n```\n\n```go\nfunc (m *ResCollector) GetStatus() *CollectorStatus\n```\n\n```go\nfunc (m *ResCollector) Marshal() (data []byte, err error)\n```\n\n```go\nfunc (m *ResCollector) MarshalTo(data []byte) (int, error)\n```\n\n```go\nfunc (*ResCollector) ProtoMessage()\n```\n\n```go\nfunc (m *ResCollector) Reset()\n```\n\n```go\nfunc (m *ResCollector) Size() (n int)\n```\n\n```go\nfunc (m *ResCollector) String() string\n```\n\n```go\nfunc (m *ResCollector) Unmarshal(data []byte) error\n```\n\n```go\ntype ResCollector_Header struct {\n\tType int32 `protobuf:\"varint,4,opt,name=type,proto3\" json:\"type,omitempty\"`\n}\n```\nHeader must exist at position 1 for compatibility with older version of the Agent. We should be able to drop this at some point.\n\n```go\nfunc (*ResCollector_Header) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *ResCollector_Header) Marshal() (data []byte, err error)\n```\n\n```go\nfunc (m *ResCollector_Header) MarshalTo(data []byte) (int, error)\n```\n\n```go\nfunc (*ResCollector_Header) ProtoMessage()\n```\n\n```go\nfunc (m *ResCollector_Header) Reset()\n```\n\n```go\nfunc (m *ResCollector_Header) Size() (n int)\n```\n\n```go\nfunc (m *ResCollector_Header) String() string\n```\n\n```go\nfunc (m *ResCollector_Header) Unmarshal(data []byte) error\n```\n\n```go\ntype SingleCPUStat struct {\n\tName     string  `protobuf:\"bytes,1,opt,name=name,proto3\" json:\"name,omitempty\"`\n\tTotalPct float32 `protobuf:\"fixed32,2,opt,name=totalPct,proto3\" json:\"totalPct,omitempty\"`\n}\n```\n\n```go\nfunc (*SingleCPUStat) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *SingleCPUStat) Marshal() (data []byte, err error)\n```\n\n```go\nfunc (m *SingleCPUStat) MarshalTo(data []byte) (int, error)\n```\n\n```go\nfunc (*SingleCPUStat) ProtoMessage()\n```\n\n```go\nfunc (m *SingleCPUStat) Reset()\n```\n\n```go\nfunc (m *SingleCPUStat) Size() (n int)\n```\n\n```go\nfunc (m *SingleCPUStat) String() string\n```\n\n```go\nfunc (m *SingleCPUStat) Unmarshal(data []byte) error\n```\n\n```go\ntype SystemInfo struct {\n\tUuid string     `protobuf:\"bytes,1,opt,name=uuid,proto3\" json:\"uuid,omitempty\"`\n\tOs   *OSInfo    `protobuf:\"bytes,2,opt,name=os\" json:\"os,omitempty\"`\n\tCpus []*CPUInfo `protobuf:\"bytes,3,rep,name=cpus\" json:\"cpus,omitempty\"`\n\t// 4 is deprecated\n\tTotalMemory int64 `protobuf:\"varint,5,opt,name=totalMemory,proto3\" json:\"totalMemory,omitempty\"`\n}\n```\n\n```go\nfunc (*SystemInfo) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *SystemInfo) GetCpus() []*CPUInfo\n```\n\n```go\nfunc (m *SystemInfo) GetOs() *OSInfo\n```\n\n```go\nfunc (m *SystemInfo) Marshal() (data []byte, err error)\n```\n\n```go\nfunc (m *SystemInfo) MarshalTo(data []byte) (int, error)\n```\n\n```go\nfunc (*SystemInfo) ProtoMessage()\n```\n\n```go\nfunc (m *SystemInfo) Reset()\n```\n\n```go\nfunc (m *SystemInfo) Size() (n int)\n```\n\n```go\nfunc (m *SystemInfo) String() string\n```\n\n```go\nfunc (m *SystemInfo) Unmarshal(data []byte) error\n```\n\n","path":"github.com/StackVista/stackstate-process-agent/model","name":"model","synopsis":"Package model is a generated protocol buffer package.","isRedistributable":true}
