Skip to content

Commit

Permalink
Add posture check activities (#1445)
Browse files Browse the repository at this point in the history
  • Loading branch information
bcmmbaga committed Jan 9, 2024
1 parent df4d43b commit 373b79a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions management/server/activity/codes.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,12 @@ const (
PeerApprovalRevoked
// TransferredOwnerRole indicates that the user transferred the owner role of the account
TransferredOwnerRole
// PostureCheckCreated indicates that the user created a posture check
PostureCheckCreated
// PostureCheckUpdated indicates that the user updated a posture check
PostureCheckUpdated
// PostureCheckDeleted indicates that the user deleted a posture check
PostureCheckDeleted
)

var activityMap = map[Activity]Code{
Expand Down Expand Up @@ -193,6 +199,9 @@ var activityMap = map[Activity]Code{
PeerApproved: {"Peer approved", "peer.approve"},
PeerApprovalRevoked: {"Peer approval revoked", "peer.approval.revoke"},
TransferredOwnerRole: {"Transferred owner role", "transferred.owner.role"},
PostureCheckCreated: {"Posture check created", "posture.check.created"},
PostureCheckUpdated: {"Posture check updated", "posture.check.updated"},
PostureCheckDeleted: {"Posture check deleted", "posture.check.deleted"},
}

// StringCode returns a string code of the activity
Expand Down

0 comments on commit 373b79a

Please sign in to comment.