Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/davehope/HealthChecksIOStatusReport
Powershell module to quickly report status to HealthChecks.io
https://github.com/davehope/HealthChecksIOStatusReport
failure healthchecks powershell
Last synced: 3 months ago
JSON representation
Powershell module to quickly report status to HealthChecks.io
- Host: GitHub
- URL: https://github.com/davehope/HealthChecksIOStatusReport
- Owner: davehope
- Created: 2020-02-15T09:59:16.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-08-22T11:51:38.000Z (about 1 year ago)
- Last Synced: 2024-05-18T06:32:58.068Z (6 months ago)
- Topics: failure, healthchecks, powershell
- Language: PowerShell
- Homepage:
- Size: 9.77 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- jimsghstars - davehope/HealthChecksIOStatusReport - Powershell module to quickly report status to HealthChecks.io (PowerShell)
README
# HealthChecksIOStatusReport
Powershell module to quickly report status to HealthChecks.io , this module
targets PowerShell 4.0 and later (supporting Windows Server 2012R2 and later).## Usage
Define a variable for your UUID:
```
$cfgUUID = '00000000-00000=-0000-0000-000000000000'
```As early in your script as possible, tell HealthChecks.io that you're starting
```
Invoke-HealthChecksIOStatusReport -Start -uuid $cfgUUID
```At the end of your script, report success (or failure)
```
Invoke-HealthChecksIOStatusReport -Success -uuid $cfgUUID
```You may want to report logs too, you can do this with the -AttachLogs parameter, allowing you to post arbitrary string data on success/failure.
```
Invoke-HealthChecksIOStatusReport -Success -uuid $cfgUUID -AttachLogs ($error|out-string)
```