analytics

package
v0.0.0-...-5ba556e Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// default org
	EventDefaultOrgCreated = "hoop-default-org-created"

	// auth
	EventLogin  = "hoop-login"
	EventSignup = "hoop-signup"

	// connections
	EventCreateConnection = "hoop-create-connection"
	EventUpdateConnection = "hoop-update-connection"
	EventDeleteConnection = "hoop-delete-connection"

	// users
	EventUpdateUser           = "hoop-update-user"
	EventCreateInvitedUser    = "hoop-create-invited-user"
	EventCreateServiceAccount = "hoop-create-serviceaccount"
	EventUpdateServiceAccount = "hoop-update-serviceaccount"

	// review
	EventUpdateReview = "hoop-update-review"
	EventFetchReviews = "hoop-fetch-reviews"

	// agent
	EventCreateAgent         = "hoop-create-agent"
	EventCreateStandardAgent = "hoop-create-standard-agent"
	EventCreateEmbeddedAgent = "hoop-create-embedded-agent"
	EventDeleteAgent         = "hoop-delete-agent"

	// plugins
	EventCreatePlugin          = "hoop-create-plugin"
	EventUpdatePlugin          = "hoop-update-plugin"
	EventUpdatePluginConfig    = "hoop-update-plugin-config"
	EventOpenWebhooksDashboard = "hoop-open-webhooks-dashboard"

	// Jira
	EventCreateJiraIntegration = "hoop-create-jira-integration"
	EventUpdateJiraIntegration = "hoop-update-jira-integration"

	// Guard Rail Rules
	EventCreateGuardRailRules = "hoop-create-guardrail-rules"
	EventUpdateGuardRailRules = "hoop-update-guardrail-rules"
	EventDeleteGuardRailRules = "hoop-delete-guardrail-rules"

	// features
	EventOrgFeatureUpdate            = "hoop-org-feature-update"
	EventFeatureAskAIChatCompletions = "hoop-feature-askai-chat-completions"

	// search api
	EventSearch = "hoop-search"

	// exec
	EventGrpcExec          = "hoop-grpc-exec"
	EventApiExecConnection = "hoop-api-exec-connection" // endpoint deprecated
	EventApiExecSession    = "hoop-api-exec-session"
	EventExecRunbook       = "hoop-exec-runbook"
	EventApiExecReview     = "hoop-api-exec-review"

	// connect
	EventGrpcConnect            = "hoop-grpc-connect"
	EventApiProxymanagerConnect = "hoop-api-proxymanager-connect"
)

Variables

This section is empty.

Functions

Types

type Segment

type Segment struct {
	analytics.Client
}

func New

func New() *Segment

func (*Segment) Identify

func (s *Segment) Identify(ctx *types.APIContext)

func (*Segment) Track

func (s *Segment) Track(userEmail, eventName string, properties map[string]any)

Track generates an event to segment, if the context is not set, it will emit an anoynimous event

Jump to

Keyboard shortcuts

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