Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
pedro-cf committed Feb 19, 2023
1 parent a740f8b commit 1181c13
Show file tree
Hide file tree
Showing 3 changed files with 149 additions and 2 deletions.
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2023 Pedro Fernandes

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
49 changes: 47 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,47 @@
# ReportWatcher
Power BI Report Watcher
# PowerBI Report Watcher

PowerBI Report Watcher is a PowerShell script that provides various functionalities to monitor and manage Power BI reports.

## Usage

To use the script, you can follow these steps:
1. Open PowerShell and navigate to the directory where the script is located.
2. Run the script using the following command:
```
.\PowerBIReportWatcher.ps1
```
3. The script will ask for your Power BI credentials. Enter your email and password, and then select the environment you want to work with.
4. Once you're authenticated, you can select from the following options:
1. Show currently Failed Refreshes (Last ***$ignoreDays*** days)
2. Show All Reports
3. Show All Scheduled Refreshes
4. Export Failed Refreshes (Last ***$ignoreDays*** days)
5. Export All Reports
6. Export All Scheduled Refreshes
## Requirements
PowerBI Report Watcher requires the following:
- Windows PowerShell 5.1 or later
- Azure Active Directory (AD) module for Windows PowerShell
- Microsoft Power BI module for Windows PowerShell
You can install the required modules using the following commands:
```
Install-Module AzureAD
Install-Module -Name MicrosoftPowerBIMgmt
```
## License
PowerBI Report Watcher is released under the MIT License. See the [LICENSE](LICENSE) file for details.
## Support
If you find this project useful, consider buying me a coffee! Donations help keep this project going and are greatly appreciated.
[![Buy me a coffee](https://img.shields.io/badge/-Buy%20me%20a%20coffee-orange?logo=buy-me-a-coffee&logoColor=white&style=for-the-badge)](https://www.buymeacoffee.com/pedro_cf)
81 changes: 81 additions & 0 deletions scheduledRefreshLog.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
**********************
Windows PowerShell transcript start
Start time: 20201215154053
Username: DESKTOP-TTNT2P5\Pedro
RunAs User: DESKTOP-TTNT2P5\Pedro
Configuration Name:
Machine: DESKTOP-TTNT2P5 (Microsoft Windows NT 10.0.18363.0)
Host Application: Powershell.exe -executionpolicy remotesigned -File ReportWatcher.ps1
Process ID: 13104
PSVersion: 5.1.18362.1171
PSEdition: Desktop
PSCompatibleVersions: 1.0, 2.0, 3.0, 4.0, 5.0, 5.1.18362.1171
BuildVersion: 10.0.18362.1171
CLRVersion: 4.0.30319.42000
WSManStackVersion: 3.0
PSRemotingProtocolVersion: 2.3
SerializationVersion: 1.1.0.1
**********************
Transcript started, output file is .\scheduledRefreshLog.txt
Printing Scheduled Refreshes...



UTC Duration Dataset
----- -------- -------
PS>TerminatingError(Invoke-WebRequest): "The remote server returned an error: (415) Unsupported Media Type."
00:00 00:01:42 DTO Africa > Erros Faturação Oficinas
00:30 ---
01:00 ---
01:30 ---
02:00 ---
02:30 ---
03:00 ---
03:30 ---
04:00 ---
04:30 ---
05:00 ---
05:30 00:02:15 DTO Xtracars > XtraCars
06:00 ---
06:30 ---
07:00 ---
07:30 ---
08:00 ---
08:30 ---
09:00 00:12:41 DTO Hyundai > Impacto de Campanhas
09:00 00:10:04 DTO Hyundai > Marketing Regional
09:00 00:11:19 DTO Africa > Dashboard Logística
09:30 ---
10:00 00:09:59 DTO Africa > Tesouraria África
10:30 ---
11:00 ---
11:30 ---
12:00 ---
12:30 ---
13:00 ---
13:30 ---
14:00 ---
14:30 00:02:15 DTO Xtracars > XtraCars
15:00 00:09:59 DTO Africa > Tesouraria África
15:30 ---
16:00 ---
16:30 ---
17:00 ---
17:30 ---
18:00 ---
18:30 ---
19:00 ---
19:30 00:02:15 DTO Xtracars > XtraCars
20:00 ---
20:30 ---
21:00 ---
21:30 ---
22:00 ---
22:30 ---
23:00 00:12:05 DTO Hyundai > Insert DW - Mediamonitor
23:30 ---

**********************
Windows PowerShell transcript end
End time: 20201215154115
**********************

0 comments on commit 1181c13

Please sign in to comment.