Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding a new `show` sub-command to the `event` command that will show the details of a specific event. Example: Human readable output ``` $ lacework event show 5 EVENT ID | TYPE | ACTOR | MODEL | START TIME | END TIME -----------+----------------------------------+---------------+------------------+----------------------+----------------------- 5 | CloudStorageIAMPermissionChanged | GcpAuditTrail | GcpAuditTrailCep | 2020-04-17T19:00:00Z | 2020-04-17T20:00:00Z ``` Example: Machine/JSON format ``` $ lacework event show 5 --json { "end_time": "2020-04-17T20:00:00Z", "entity_map": { "resource": [ { "name": "gcs_bucket.location", "value": "us" }, { "name": "gcs_bucket.project_id", "value": "gcr-jenkins-sandbox-1234" }, { "name": "gcs_bucket.bucket_name", "value": "us.artifacts.gcr-jenkins-sandbox-1234.appspot.com" } ] }, "event_actor": "GcpAuditTrail", "event_id": "5", "event_model": "GcpAuditTrailCep", "event_type": "CloudStorageIAMPermissionChanged", "start_time": "2020-04-17T19:00:00Z" } ``` Closes #68 Signed-off-by: Salim Afiune Maya <[email protected]>
- Loading branch information