From 924d9c8ce9231db9967c8c39ff90f02a86ff603c Mon Sep 17 00:00:00 2001 From: Dilan Bellinghoven Date: Thu, 6 Dec 2018 16:05:13 -0500 Subject: [PATCH] command/alert/email_test.go: Fixed bad example --- README.md | 2 +- command/alert/email/email_test.go | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 589d3c6..ace70e1 100644 --- a/README.md +++ b/README.md @@ -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", diff --git a/command/alert/email/email_test.go b/command/alert/email/email_test.go index 913a687..41d67dd 100644 --- a/command/alert/email/email_test.go +++ b/command/alert/email/email_test.go @@ -278,8 +278,8 @@ func ExampleEmailAlertMethod_BuildMessage() { // Output: // Content-Type: text/html - // Subject: Go Elasticsearch Alerts: Test Error - + // Subject: Go Elasticsearch Alerts: Test Rule + // // // // @@ -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; // } @@ -316,7 +316,7 @@ func ExampleEmailAlertMethod_BuildMessage() { // 8 // // - + // //

Filter path: aggregations.hostname.buckets.program.buckets

// // @@ -340,7 +340,7 @@ func ExampleEmailAlertMethod_BuildMessage() { // // //
2
- + // //

Filter path: hits.hits._source

// {
   "ayy": "lmao"
}
----------------------------------------
{
    "hello": "world"
} //