Skip to content

Commit

Permalink
prehog: add user_task_state event proto (#47380)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoandredinis committed Oct 11, 2024
1 parent 041c4e7 commit f193769
Show file tree
Hide file tree
Showing 6 changed files with 1,780 additions and 979 deletions.
1,085 changes: 757 additions & 328 deletions api/gen/proto/go/usageevents/v1/usageevents.pb.go

Large diffs are not rendered by default.

33 changes: 33 additions & 0 deletions api/proto/teleport/usageevents/v1/usageevents.proto
Original file line number Diff line number Diff line change
Expand Up @@ -723,6 +723,38 @@ message DiscoveryFetchEvent {
string resource_type = 2;
}

// UserTaskStateEvent is emitted when a UserTask state changes.
// This can happen when the Task is created, when it's manually
// resolved by the user or when it changes back to being open
// when the issue happens again.
//
// PostHog event: tp.usertask.state
message UserTaskStateEvent {
// task_type is the identifier for the type of task.
// Eg, discover-ec2
//
// PostHog property: tp.usertask.task_type
string task_type = 1;

// issue_type is the identifier for the type of issue that occurred.
//
// PostHog property: tp.usertask.issue_type
string issue_type = 2;

// state identifies the new state for this task.
// One of: OPEN, RESOLVED
//
// PostHog property: tp.usertask.state
string state = 3;

// instances_count contains the number of instances that were affected by the issue
// This field is only present for the following task_types:
// - discover-ec2
//
// PostHog property: tp.usertask.discover_ec2.instances_count
int32 instances_count = 4;
}

// UsageEventOneOf is a message that can accept a oneof of any supported
// external usage event.
message UsageEventOneOf {
Expand Down Expand Up @@ -785,6 +817,7 @@ message UsageEventOneOf {
UIDiscoverCreateAppServerEvent ui_discover_create_app_server_event = 57;
AccessGraphAWSScanEvent access_graph_aws_scan_event = 58;
UIAccessGraphCrownJewelDiffViewEvent ui_access_graph_crown_jewel_diff_view = 59;
UserTaskStateEvent user_task_state_event = 60;
}
reserved 2; //UIOnboardGetStartedClickEvent
reserved "ui_onboard_get_started_click";
Expand Down
Loading

0 comments on commit f193769

Please sign in to comment.