Skip to content

Commit

Permalink
Merge pull request #1 from svc-git/main
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
5HT authored Feb 2, 2024
2 parents de91516 + f56a940 commit aac8820
Showing 1 changed file with 146 additions and 3 deletions.
149 changes: 146 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# Webhook Integration for Status Monitoring

## Overview

This repository provides a webhook integration for receiving updates related to incidents, maintenances, and component status changes. The integration supports different events associated with a status page.

# UP: Incidents and Maintenance

[![Hex pm](http://img.shields.io/hexpm/v/up.svg?style=flat&x=1)](https://hex.pm/packages/up)
Expand Down Expand Up @@ -42,9 +48,146 @@ UP UPTIME/STATUS version 1.0.
1: HTTP API listening at port: 5010.
2: WebSocket NITRO listening at port: 5011.
Interactive Elixir (1.12.2) - press Ctrl+C to exit (type h() ENTER for help)
iex(1)>
iex(1)>
```

## Credits

* Namdak Tonpa
## Webhook Formats

### Incident Updates

```json
{
"meta": {
"unsubscribe": "",
"documentation": ""
},
"page": {
"id": "",
"status_indicator": "",
"status_description": "",
"url": ""
},
"incident": {
"backfilled": false,
"created_at": "",
"impact": "",
"name": "",
"resolved_at": "",
"status": "",
"updated_at": "",
"id": "",
"url": "",
"incident_updates": [{
"id": "",
"incident_id": "",
"body": "",
"status": "",
"created_at": "",
"updated_at": ""
}]
}
}
```
Maintenance Updates
```json
{
"meta": {
"unsubscribe": "",
"documentation": ""
},
"page": {
"id": "",
"status_indicator": "",
"status_description": "",
"url": ""
},
"maintenance": {
"backfilled": false,
"created_at": "",
"impact": "",
"name": "",
"resolved_at": "",
"status": "",
"updated_at": "",
"id": "",
"url": "",
"duration": "",
"maintenance_updates": [{
"id": "",
"maintenance_id": "",
"body": "",
"status": "",
"created_at": "",
"updated_at": ""
}]
}
}
```

Component Updates
```json

{
"meta": {
"unsubscribe": "",
"documentation": ""
},
"page": {
"id": "",
"status_indicator": "",
"status_description": "",
"url": ""
},
"component_update": {
"created_at": "",
"new_status": "",
"component_id": ""
},
"component": {
"created_at": "",
"id": "",
"name": "",
"status": ""
}
}
```

### Status Page and Component Statuses
## Page Statuses:

```
UP
HASISSUES
UNDER MAINTENANCE
```

# Component Statuses:
```
OPERATIONAL
UNDERMAINTENANCE
DEGRADEDPERFORMANCE
PARTIALOUTAGE
MAJOROUTAGE
```
# Incident Statuses:
```
INVESTIGATING
IDENTIFIED
MONITORING
RESOLVED
```
# Maintenance Statuses:
```
NOTSTARTEDYET
INPROGRESS
COMPLETED
```
Usage
Subscribe to webhooks using the provided formats.
Receive updates for incidents, maintenances, and component status changes.
Use the provided status page and component statuses to monitor and act accordingly.




0 comments on commit aac8820

Please sign in to comment.