Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collector ¶
type Collector struct {
// contains filtered or unexported fields
}
Collector gathers anonymous usage data and sends it periodically.
func NewCollector ¶
func NewCollector(db *pgxpool.Pool, cfg CollectorConfig) *Collector
NewCollector creates a new telemetry collector.
type CollectorConfig ¶
CollectorConfig holds configuration for the telemetry collector.
type Payload ¶
type Payload struct {
InstallID string `json:"install_id"`
Version string `json:"version"`
GoVersion string `json:"go_version"`
OS string `json:"os"`
Arch string `json:"arch"`
DeploymentMode string `json:"deployment_mode"`
UptimeSeconds int64 `json:"uptime_seconds"`
Timestamp time.Time `json:"timestamp"`
AssetCount int `json:"asset_count"`
UserCount int `json:"user_count"`
LineageEdges int `json:"lineage_edges"`
ConnectorCounts map[string]int `json:"connector_counts"`
}
Payload is the anonymous telemetry payload sent to the ingest endpoint.
Click to show internal directories.
Click to hide internal directories.