Skip to content
This repository has been archived by the owner on Feb 13, 2024. It is now read-only.

Commit

Permalink
Merge branch 'master' into enhancement/add_unit_tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Dwi Siswanto authored Oct 27, 2020
2 parents 559a011 + 0e91c39 commit adc39a7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/alert/slack.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,22 @@ import (

func toSlack(token string, channel string, color string, log map[string]string) {
api := slack.New(token)
reason := slack.Attachment{
reason := slack.Attachment {
AuthorName: ":warning: teler Alert",
Title: log["category"],
Color: color,
}
request := slack.Attachment{
request := slack.Attachment {
Title: "Request",
Text: fmt.Sprintf(
"%s %s %s",
log["request_method"], log["request_uri"], log["request_protocol"],
),
Color: color,
}
fields := slack.Attachment{
fields := slack.Attachment {
Color: color,
Fields: []slack.AttachmentField{
Fields: []slack.AttachmentField {
{
Title: "Date",
Value: log["time_local"],
Expand Down

0 comments on commit adc39a7

Please sign in to comment.