From 373b79a53ad5f3a3f3216f6ce3ee8e17960cd7b4 Mon Sep 17 00:00:00 2001 From: Bethuel Mmbaga Date: Mon, 8 Jan 2024 14:34:44 +0300 Subject: [PATCH] Add posture check activities (#1445) --- management/server/activity/codes.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/management/server/activity/codes.go b/management/server/activity/codes.go index 54a27e4cc17..9f4fc55589b 100644 --- a/management/server/activity/codes.go +++ b/management/server/activity/codes.go @@ -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{ @@ -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