model

package
v0.0.0-...-9bca79a Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2025 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package model contains types for service discovery.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	PID                        int      `json:"pid"`
	Name                       string   `json:"name"`
	GeneratedName              string   `json:"generated_name"`
	GeneratedNameSource        string   `json:"generated_name_source"`
	ContainerServiceName       string   `json:"container_service_name"`
	ContainerServiceNameSource string   `json:"container_service_name_source"`
	DDService                  string   `json:"dd_service"`
	DDServiceInjected          bool     `json:"dd_service_injected"`
	CheckedContainerData       bool     `json:"checked_container_data"`
	Ports                      []uint16 `json:"ports"`
	APMInstrumentation         string   `json:"apm_instrumentation"`
	Language                   string   `json:"language"`
	Type                       string   `json:"service_type"`
	RSS                        uint64   `json:"rss"`
	CommandLine                []string `json:"cmdline"`
	StartTimeMilli             uint64   `json:"start_time"`
	CPUCores                   float64  `json:"cpu_cores"`
	ContainerID                string   `json:"container_id"`
	LastHeartbeat              int64    `json:"last_heartbeat"`
}

Service represents a listening process.

type ServicesResponse

type ServicesResponse struct {
	StartedServices      []Service `json:"started_services"`
	StoppedServices      []Service `json:"stopped_services"`
	HeartbeatServices    []Service `json:"heartbeat_services"`
	RunningServicesCount int       `json:"running_services_count"`
}

ServicesResponse is the response for the system-probe /discovery/services endpoint.

Jump to

Keyboard shortcuts

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