workspacestatstest

package
v2.22.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2025 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StatsBatcher

type StatsBatcher struct {
	Mu sync.Mutex

	Called          int64
	LastTime        time.Time
	LastAgentID     uuid.UUID
	LastTemplateID  uuid.UUID
	LastUserID      uuid.UUID
	LastWorkspaceID uuid.UUID
	LastStats       *agentproto.Stats
	LastUsage       bool
}

func (*StatsBatcher) Add

func (b *StatsBatcher) Add(now time.Time, agentID uuid.UUID, templateID uuid.UUID, userID uuid.UUID, workspaceID uuid.UUID, st *agentproto.Stats, usage bool)

Jump to

Keyboard shortcuts

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