Skip to content

Commit

Permalink
add usage events for eice discover (#32617)
Browse files Browse the repository at this point in the history
  • Loading branch information
rudream authored Sep 29, 2023
1 parent ca27ce9 commit 33cfd9d
Show file tree
Hide file tree
Showing 16 changed files with 4,611 additions and 1,709 deletions.
2,013 changes: 1,603 additions & 410 deletions api/gen/proto/go/usageevents/v1/usageevents.pb.go

Large diffs are not rendered by default.

26 changes: 26 additions & 0 deletions api/proto/teleport/usageevents/v1/usageevents.proto
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ enum DiscoverResource {
DISCOVER_RESOURCE_DOC_DATABASE_DYNAMIC_REGISTRATION = 36;

DISCOVER_RESOURCE_SAML_APPLICATION = 37;

DISCOVER_RESOURCE_EC2_INSTANCE = 38;
}

// DiscoverResourceMetadata contains common metadata identifying resource type being added.
Expand Down Expand Up @@ -301,6 +303,27 @@ message UIDiscoverAutoDiscoveredResourcesEvent {
int64 resources_count = 4;
}

// UIDiscoverEC2InstanceSelectionEvent is emitted when the user is finished with the step that asks the user to select an EC2 Instance to enroll.
message UIDiscoverEC2InstanceSelectionEvent {
DiscoverMetadata metadata = 1;
DiscoverResourceMetadata resource = 2;
DiscoverStepStatus status = 3;
}

// UIDiscoverDeployEICEEvent is emitted when the user deploys an EC2 Instance Connect Endpoint.
message UIDiscoverDeployEICEEvent {
DiscoverMetadata metadata = 1;
DiscoverResourceMetadata resource = 2;
DiscoverStepStatus status = 3;
}

// UIDiscoverCreateNodeEvent is emitted when the node is created in Teleport.
message UIDiscoverCreateNodeEvent {
DiscoverMetadata metadata = 1;
DiscoverResourceMetadata resource = 2;
DiscoverStepStatus status = 3;
}

// UIDiscoverDatabaseConfigureIAMPolicyEvent is emitted when a user is finished with the step that configures IAM policy for an RDS database.
message UIDiscoverDatabaseConfigureIAMPolicyEvent {
DiscoverMetadata metadata = 1;
Expand Down Expand Up @@ -602,6 +625,9 @@ message UsageEventOneOf {
AccessListMemberUpdate access_list_member_update = 44;
AccessListMemberDelete access_list_member_delete = 45;
AccessListGrantsToUser access_list_grants_to_user = 46;
UIDiscoverEC2InstanceSelectionEvent ui_discover_ec2_instance_selection = 47;
UIDiscoverDeployEICEEvent ui_discover_deploy_eice = 48;
UIDiscoverCreateNodeEvent ui_discover_create_node = 49;
}
reserved 2; //UIOnboardGetStartedClickEvent
reserved "ui_onboard_get_started_click";
Expand Down
Loading

0 comments on commit 33cfd9d

Please sign in to comment.