Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Define cloud billing event types and codes #6037

Merged
merged 4 commits into from
Mar 24, 2021
Merged

Conversation

kimlisa
Copy link
Contributor

@kimlisa kimlisa commented Mar 17, 2021

part of https://github.com/gravitational/cloud/issues/442

Description

@@ -294,6 +294,14 @@ const (
MFADeviceAddEventCode = "T1006I"
// MFADeviceDeleteEventCode is an event code for users deleting MFA devices.
MFADeviceDeleteEventCode = "T1007I"
// BillingCardCreateCode is emitted when a user creates a new credit card.
BillingCardCreateCode = "T1008I"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you look at numbers, the T10xxx is used for user login events. The billing deserve own group.

Lets use TBL prefix for that:

TBL01I
TBL02I

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

revised

@kimlisa kimlisa force-pushed the lisa/define-billing-events branch from 251dae6 to b51d453 Compare March 18, 2021 01:40
@kimlisa kimlisa requested a review from alex-kovoy March 18, 2021 04:34
@@ -1263,6 +1297,9 @@ message OneOf {
events.SessionUpload SessionUpload = 43;
events.MFADeviceAdd MFADeviceAdd = 44;
events.MFADeviceDelete MFADeviceDelete = 45;
events.BillingAccountUpdate BillingAccountUpdate = 46;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BillingAcountUpdate -> BillingInformationUpdate

Copy link
Contributor

@alex-kovoy alex-kovoy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

with comments

// BillingCardUpdateEvent is emitted when a user updates an existing credit card.
BillingCardUpdateEvent = "billing.update_card"
// BillingAccountUpdateEvent is emitted when a user updates their billing account.
BillingAccountUpdateEvent = "billing.update_account"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BillingAccountUpdate -> BillingInformationUpdate

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

revised

@kimlisa kimlisa force-pushed the lisa/define-billing-events branch from 0d178fe to 1cfe787 Compare March 18, 2021 16:26
Copy link
Contributor

@russjones russjones left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bot.

@kimlisa kimlisa force-pushed the lisa/define-billing-events branch 2 times, most recently from 63b02f5 to 0ac06d9 Compare March 23, 2021 23:10
kimlisa added 4 commits March 23, 2021 17:08
- Exported auth.clientUsername so it can be used in enterprise
- Stayed with convention and created seperate
create(upsert) and delete event objects in proto file
- Renamed event code numbers
@kimlisa kimlisa force-pushed the lisa/define-billing-events branch from 0ac06d9 to e192d27 Compare March 24, 2021 00:08
@kimlisa kimlisa merged commit 84a4f00 into master Mar 24, 2021
@kimlisa kimlisa deleted the lisa/define-billing-events branch March 24, 2021 00:23
kimlisa added a commit that referenced this pull request Mar 29, 2021
* Exported auth.clientImpersonator and auth.clientUsername for use in e
kimlisa added a commit that referenced this pull request Mar 29, 2021
* Exported auth.clientImpersonator and auth.clientUsername for use in e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants