Skip to content

Commit

Permalink
README
Browse files Browse the repository at this point in the history
  • Loading branch information
kevincobain2000 committed Oct 24, 2023
1 parent a042ce5 commit 2a8491f
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# golang-alertnotification
# go-alertnotification

This library supports sending throttled alerts as email and as message card to Ms Teams channel.

## Usage

```bash
go install github.com/rakutentech/go-alertnotification@latest
go install github.com/rakutentech/go-alertnotification@latest
```

## Configurations
Expand Down Expand Up @@ -46,15 +46,12 @@ This library supports sending throttled alerts as email and as message card to M

### Throttling Configs

| No | Environment Variable | default | Explanation |
| :-- | :--------------------- | :----------------------------------------- | :---------------------------- |
| 1 | THROTTLE_DURATION | 7 | throttling duration in minute |
| 2 | THROTTLE_DISKCACHE_DIR | /tmp/cache/{APP_NAME}_throttler_disk_cache | disk location for throttling |
| 3 | THROTTLE_ENABLED | "true" | Disable all together |

* Reference for using message card :
<https://docs.microsoft.com/en-us/microsoftteams/platform/concepts/cards/cards-reference>
<https://www.lee-ford.co.uk/send-message-cards-with-microsoft-teams/>
| No | Environment Variable | default | Explanation |
| :-- | :--------------------- | :----------------------------------------- | :----------------------------- |
| 1 | THROTTLE_DURATION | 7 | throttling duration in minutes |
| 2 | THROTTLE_GRACE_SECONDS | 0 | throttling grace in seconds |
| 3 | THROTTLE_DISKCACHE_DIR | /tmp/cache/{APP_NAME}_throttler_disk_cache | disk location for throttling |
| 4 | THROTTLE_ENABLED | "true" | Disable all together |

## Usage

Expand Down

0 comments on commit 2a8491f

Please sign in to comment.