Skip to content

Commit

Permalink
Merge pull request #9 from EvotecIT/graph-rewrite
Browse files Browse the repository at this point in the history
Deprecated API replaced with Graph #8
  • Loading branch information
PrzemyslawKlys authored Jan 29, 2022
2 parents 9885c2e + 7137cc6 commit 575e940
Show file tree
Hide file tree
Showing 15 changed files with 1,374 additions and 4,787 deletions.
3 changes: 0 additions & 3 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
# These are supported funding model platforms

github: PrzemyslawKlys
patreon: przemyslawklys
ko_fi: przemyslawklys
open_collective: evotec
custom: https://paypal.me/PrzemyslawKlys
7 changes: 1 addition & 6 deletions Enums/Office365Health.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,13 @@
public enum Office365Health {
All,
Services,
ServicesExtended,
CurrentStatus,
CurrentStatusExtended,
HistoricalStatus,
HistoricalStatusExtended,
MessageCenterInformation,
MessageCenterInformationExtended,
Incidents,
IncidentsExtended,
PlannedMaintenance,
PlannedMaintenanceExtended,
Messages
IncidentsUpdates
}
}
"@
76 changes: 29 additions & 47 deletions Examples/Example-Office365StatusUsingDashimo.ps1
Original file line number Diff line number Diff line change
@@ -1,78 +1,60 @@
Import-Module PSWinDocumentation.O365HealthService -Force
Import-Module Dashimo -Force
Import-Module PSWriteHTML -Force

$ApplicationID = ''
$ApplicationKey = ''
$TenantDomain = 'evotec.pl' # CustomDomain (onmicrosoft.com won't work), alternatively you can use DirectoryID

$O365 = Get-Office365Health -ApplicationID $ApplicationID -ApplicationKey $ApplicationKey -TenantDomain $TenantDomain -ToLocalTime -Verbose
$O365 = Get-Office365Health -ApplicationID $ApplicationID -ApplicationKey $ApplicationKey -TenantDomain $TenantDomain -Verbose

Dashboard -FilePath $PSScriptRoot\Health.html {
TabOption -BorderRadius 0px -BackgroundColorActive DimGrey
SectionOption -BorderRadius 0px -HeaderBackGroundColor DimGrey
TableOption -DataStore JavaScript -ArrayJoinString "; " -ArrayJoin -BoolAsString
Tab -Name 'Services' {
Section -Invisible {
Section -Name 'Service List' {
Table -DataTable $O365.Services
}
Section -Name 'Service & Feature List' {
Table -DataTable $O365.ServicesExtended
}
Section -Name 'Service List' {
Table -DataTable $O365.Services -Filtering
}
}
Tab -Name 'Current Status' {
Section -Invisible {
Section -Name 'Current Status' {
Table -DataTable $O365.CurrentStatus
Table -DataTable $O365.CurrentStatus {
TableCondition -Name 'ServiceStatus' -Value 'serviceOperational' -BackgroundColor MintGreen -FailBackgroundColor Salmon
} -Filtering
}
Section -Name 'Current Status Extended' {
Table -DataTable $O365.CurrentStatusExtended
}
}
}
Tab -Name 'Historical Status' {
Section -Invisible {
Section -Name 'Historical Status' {
Table -DataTable $O365.HistoricalStatus
}
Section -Name 'Historical Status Extended' {
Table -DataTable $O365.HistoricalStatusExtended
Table -DataTable $O365.CurrentStatusExtended {
TableCondition -Name 'ServiceStatus' -Value 'serviceOperational' -BackgroundColor MintGreen -FailBackgroundColor Salmon
} -Filtering
}
}
}
Tab -Name 'Message Center Information' {
Section -Invisible {
Section -Name 'Message Center' {
Table -DataTable $O365.MessageCenterInformation
}
Section -Name 'Message Center Extended' {
Table -DataTable $O365.MessageCenterInformationExtended -InvokeHTMLTags
}
#Section -Invisible {
Section -Name 'Message Center' {
Table -DataTable $O365.MessageCenterInformation -Filtering
}
Section -Name 'Message Center Extended' {
Table -DataTable $O365.MessageCenterInformationExtended -InvokeHTMLTags -Filtering
}
#}
}
Tab -Name 'Incidents' {
Section -Invisible {
Section -Name 'Incidents' {
Table -DataTable $O365.Incidents
Table -DataTable $O365.Incidents -Filtering {
TableCondition -Name 'IsResolved' -Value $true -BackgroundColor MintGreen -FailBackgroundColor Salmon -ComparisonType bool
}
}
Section -Name 'Incidents Extended' {
Table -DataTable $O365.IncidentsExtended
}
}
}
Tab -Name 'Incidents Messages' {
Section -Invisible {
Section -Name 'Incidents Messages' {
Table -DataTable $O365.IncidentsMessages
Table -DataTable $O365.IncidentsExtended -Filtering {
TableCondition -Name 'IsResolved' -Value $true -BackgroundColor MintGreen -FailBackgroundColor Salmon -ComparisonType bool
}
}
}
}
Tab -Name 'Planned Maintenance' {
Section -Invisible {
Section {
Table -DataTable $O365.PlannedMaintenance
}
Section {
Table -DataTable $O365.PlannedMaintenanceExtended
}
Section -Name 'Incidents Messages' {
Table -DataTable $O365.IncidentsUpdates -InvokeHTMLTags -Filtering
}
}
}
} -Online -ShowHTML
Loading

0 comments on commit 575e940

Please sign in to comment.