Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,228 changes: 992 additions & 236 deletions api/gen/proto/go/usageevents/v1/usageevents.pb.go

Large diffs are not rendered by default.

28 changes: 28 additions & 0 deletions api/proto/teleport/usageevents/v1/usageevents.proto
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,32 @@ message AssistNewConversationEvent {
string category = 1;
}

// AssistAccessRequest is an event that is emitted when a user requests access
// to a resource via Assist.
message AssistAccessRequest {
// ResourceType describes the type of resource the user is requesting access to, e.g. "node", "db", "k8s" or "role".
string resource_type = 1;
// TotalTokens is the total amount of token used to generate the command summary
int64 total_tokens = 2;
// PromptTokens is the amount of estimated tokens used by the prompt to generate the command summary
int64 prompt_tokens = 3;
// CompletionTokens is the amount of tokens that the summary completion response consists of
int64 completion_tokens = 4;
}

// AssistAction is an event that is emitted when a user triggers an action (SSH command generation, output explain, etc.)
// via Assist.
message AssistAction {
// Action is the action that was triggered, e.g. "ssh-explain", "ssh-command-generate", etc.
string action = 1;
// TotalTokens is the total amount of token used to generate the command summary
int64 total_tokens = 2;
// PromptTokens is the amount of estimated tokens used by the prompt to generate the command summary
int64 prompt_tokens = 3;
// CompletionTokens is the amount of tokens that the summary completion response consists of
int64 completion_tokens = 4;
}

// IntegrationEnrollKind represents the types of integration that
// can be enrolled.
enum IntegrationEnrollKind {
Expand Down Expand Up @@ -519,6 +545,8 @@ message UsageEventOneOf {
AssistNewConversationEvent assist_new_conversation = 35;
ResourceCreateEvent resource_create_event = 36;
FeatureRecommendationEvent feature_recommendation_event = 37;
AssistAccessRequest assist_access_request = 38;
AssistAction assist_action = 39;
}
reserved 2; //UIOnboardGetStartedClickEvent
reserved "ui_onboard_get_started_click";
Expand Down
Loading