Skip to content

Commit

Permalink
Added 17 missing columns to the list_activity_events function (#340)
Browse files Browse the repository at this point in the history
Co-authored-by: Trey Udy <[email protected]>
  • Loading branch information
IC-XC-NIKA94 and Trey Udy authored Dec 10, 2024
1 parent 6cb779e commit 8e37efd
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions src/sempy_labs/admin/_basic_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
]
)

Expand Down Expand Up @@ -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])],
Expand Down

0 comments on commit 8e37efd

Please sign in to comment.