Skip to content

Commit

Permalink
command/alert/email_test.go: Fixed bad example
Browse files Browse the repository at this point in the history
  • Loading branch information
dbellinghoven committed Dec 6, 2018
1 parent 5c11dbb commit 924d9c8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ This example shows a sample main configuration file.
"distributed": true,
"consul": {
"consul_lock_key": "go-elasticsearch-alerts/leader",
"consul_http_address": "http://127.0.0.1:8500",
"consul_http_addr": "http://127.0.0.1:8500",
"consul_http_ssl": "true",
"consul_cacert": "/tmp/cacert_consul.pem",
"consul_client_cert": "/tmp/client_cert_consul.pem",
Expand Down
12 changes: 6 additions & 6 deletions command/alert/email/email_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,8 @@ func ExampleEmailAlertMethod_BuildMessage() {

// Output:
// Content-Type: text/html
// Subject: Go Elasticsearch Alerts: Test Error

// Subject: Go Elasticsearch Alerts: Test Rule
//
// <!DOCTYPE html>
// <html>
// <head>
Expand All @@ -288,13 +288,13 @@ func ExampleEmailAlertMethod_BuildMessage() {
// font-family: arial, sans-serif;
// border-collapse: collapse;
// }

//
// td, th {
// border: 1px solid #dddddd;
// text-align: left;
// padding: 8px;
// }

//
// tr:nth-child(even) {
// background-color: #dddddd;
// }
Expand All @@ -316,7 +316,7 @@ func ExampleEmailAlertMethod_BuildMessage() {
// <td>8</td>
// </tr>
// </table>

//
// <br><h4>Filter path: aggregations.hostname.buckets.program.buckets</h4>
// <table>
// <tr>
Expand All @@ -340,7 +340,7 @@ func ExampleEmailAlertMethod_BuildMessage() {
// <td>2</td>
// </tr>
// </table>

//
// <br><h4>Filter path: hits.hits._source</h4>
// {<br>&nbsp;&nbsp;&nbsp;&#34;ayy&#34;:&nbsp;&#34;lmao&#34;<br>}<br>----------------------------------------<br>{<br>&nbsp;&nbsp;&nbsp;&nbsp;&#34;hello&#34;:&nbsp;&#34;world&#34;<br>}
// <br>
Expand Down

0 comments on commit 924d9c8

Please sign in to comment.