From 8e37efd7333f43e78d3a0fc330155d4abc857567 Mon Sep 17 00:00:00 2001 From: IC-XC-NIKA94 <11891017+IC-XC-NIKA94@users.noreply.github.com> Date: Tue, 10 Dec 2024 00:57:10 -0600 Subject: [PATCH] Added 17 missing columns to the list_activity_events function (#340) Co-authored-by: Trey Udy --- src/sempy_labs/admin/_basic_functions.py | 34 ++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/src/sempy_labs/admin/_basic_functions.py b/src/sempy_labs/admin/_basic_functions.py index bcdf045..081119b 100644 --- a/src/sempy_labs/admin/_basic_functions.py +++ b/src/sempy_labs/admin/_basic_functions.py @@ -777,6 +777,23 @@ def list_activity_events( "Object Display Name", "Experience", "Refresh Enforcement Policy", + "Is Success", + "Activity Id", + "Item Name", + "Dataset Name", + "Report Name", + "Capacity Id", + "Capacity Name", + "App Name", + "Dataset Id", + "Report Id", + "Artifact Id", + "Artifact Name", + "Report Type", + "App Report Id", + "Distribution Method", + "Consumption Method", + "Artifact Kind", ] ) @@ -825,6 +842,23 @@ def list_activity_events( "Object Display Name": i.get("ObjectDisplayName"), "Experience": i.get("Experience"), "Refresh Enforcement Policy": i.get("RefreshEnforcementPolicy"), + "Is Success": i.get("IsSuccess"), + "Activity Id": i.get("ActivityId"), + "Item Name": i.get("ItemName"), + "Dataset Name": i.get("DatasetName"), + "Report Name": i.get("ReportName"), + "Capacity Id": i.get("CapacityId"), + "Capacity Name": i.get("CapacityName"), + "App Name": i.get("AppName"), + "Dataset Id": i.get("DatasetId"), + "Report Id": i.get("ReportId"), + "Artifact Id": i.get("ArtifactId"), + "Artifact Name": i.get("ArtifactName"), + "Report Type": i.get("ReportType"), + "App Report Id": i.get("AppReportId"), + "Distribution Method": i.get("DistributionMethod"), + "Consumption Method": i.get("ConsumptionMethod"), + "Artifact Kind": i.get("ArtifactKind"), } df = pd.concat( [df, pd.DataFrame(new_data, index=[0])],