feat(ingest/powerbi): emit failed refreshes and the refresh schedule

BR
2d ago
+1185-94

Summary

With extract_refresh_history (default false):

  • The latest completed and the latest failed refresh in the last 60 entries each become an Operation (customOperationType: REFRESH), stamped with the refresh's own end time; failures carry errorCode and a truncated errorDescription.
  • A failed refresh never advances the dataset's last-updated time: with no completed refresh to anchor to, the Operation is emitted with an unknown last-updated time (0) and a Dataset Last Updated Unknown warning.
  • The configured schedule becomes refreshSchedule.days/times/localTimeZoneId/enabled properties. 404 means no schedule; 400 is classified as "not a model-based dataset" only with a known code and message, otherwise warned; 415 marks system models as not refreshable.
  • Counters are per dataset, not per table.

Stack

Part of a stack built on #20842 (Power BI metadata_api_mode: workspace_apis). Merge order:
#20876 → #20877 → #20878 → #20879 → #20880 → #20881 → #20882 → #20883 → #20884 → #20885.
Review this PR's own diff against its base branch; each layer is self-contained and tested on its own.

Checklist

  • PR title follows the Conventional Commits format
  • Tests added/updated (unit and integration goldens)
  • Docs updated (metadata-ingestion/docs/sources/powerbi/)
  • No breaking change (opt-in flag, default off)

🤖 Generated with Claude Code