Skip to content

Commit

Permalink
Merge 1017c0a into 76e7291
Browse files Browse the repository at this point in the history
  • Loading branch information
qmcree committed Jan 20, 2016
2 parents 76e7291 + 1017c0a commit 356764c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -155,7 +155,7 @@ $client->to('@regan')->attach([
'fallback' => 'It is all broken, man', // Fallback text for plaintext clients, like IRC
'text' => 'It is all broken, man', // The text for inside the attachment
'pretext' => 'From user: JimBob', // Optional text to appear above the attachment and below the actual message
'color' => 'bad', // Change the color of the attachment, default is 'good'
'color' => 'danger', // Change the color of the attachment, default is 'good'. May be a hex value or 'good', 'warning', or 'danger'
])->send('New alert from the monitoring system');
```

Expand All @@ -166,7 +166,7 @@ $client->to('#operations')->attach([
'fallback' => 'It is all broken, man',
'text' => 'It is all broken, man',
'pretext' => 'From user: JimBob',
'color' => 'bad',
'color' => 'danger',
'fields' => [
[
'title' => 'Metric 1',
Expand Down Expand Up @@ -196,7 +196,7 @@ $client->to('#operations')->attach([
'fallback' => 'It is all broken, man',
'text' => 'It is _all_ broken, man',
'pretext' => 'From user: *JimBob*',
'color' => 'bad',
'color' => 'danger',
'mrkdwn_in' => ['pretext', 'text']
])->send('New alert from the monitoring system');
```
Expand Down

0 comments on commit 356764c

Please sign in to comment.