Documentation
¶
Index ¶
- func RecordCommand(cmdName string)
- func RecordInjectionStyle(style string)
- func RecordIntegration(name string)
- func RecordProxyBlocked()
- func RecordProxyCall()
- func RecordProxyRedacted()
- func RecordSecretCount(count int)
- func RecordWorkspaceMemberCount(count int)
- func SyncIfDue(client *api.Client, cliVersion string)
- type Data
- type Day
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RecordCommand ¶
func RecordCommand(cmdName string)
RecordCommand increments the usage count for a CLI command.
func RecordInjectionStyle ¶
func RecordInjectionStyle(style string)
RecordInjectionStyle records a unique injection style used (e.g. "bearer", "header").
func RecordIntegration ¶
func RecordIntegration(name string)
RecordIntegration records a unique integration (e.g. "mcp", "env", "proxy", "exec").
func RecordProxyBlocked ¶
func RecordProxyBlocked()
RecordProxyBlocked increments the blocked proxy request counter.
func RecordProxyCall ¶
func RecordProxyCall()
RecordProxyCall increments the total proxy call counter.
func RecordProxyRedacted ¶
func RecordProxyRedacted()
RecordProxyRedacted increments the redacted proxy response counter.
func RecordSecretCount ¶ added in v1.3.0
func RecordSecretCount(count int)
RecordSecretCount records the current number of secrets in the project.
func RecordWorkspaceMemberCount ¶ added in v1.3.0
func RecordWorkspaceMemberCount(count int)
RecordWorkspaceMemberCount records the number of members in the workspace.
Types ¶
type Day ¶ added in v1.3.0
type Day struct {
CommandExecutions map[string]int `json:"command_executions"`
ProxyCalls int `json:"proxy_calls"`
ProxyBlocked int `json:"proxy_blocked"`
ProxyRedacted int `json:"proxy_redacted"`
InjectionStylesUsed []string `json:"injection_styles_used"`
IntegrationsActive []string `json:"integrations_active"`
// Snapshot metadata for the day
CliVersion string `json:"cli_version"`
OS string `json:"os"`
Arch string `json:"arch"`
ActiveEnvironment string `json:"active_environment"`
UserEmail string `json:"user_email,omitempty"`
ProjectID string `json:"project_id,omitempty"`
WorkspaceID string `json:"workspace_id,omitempty"`
ProjectSecretCount int `json:"project_secret_count"`
WorkspaceType string `json:"workspace_type"`
WorkspaceMemberCount int `json:"workspace_member_count"`
}
Click to show internal directories.
Click to hide internal directories.