grafana/pkg/services/alerting/notifiers
Mario Trangoni 0870464ea5 Fix goconst issues
See,
$ gometalinter --vendor --disable-all --enable=goconst --disable=gotype --deadline=6m ./...
build.go:113:15⚠️ 2 other occurrence(s) of "linux" found in: build.go:119:15 build.go:491:34 (goconst)
build.go:119:15⚠️ 2 other occurrence(s) of "linux" found in: build.go:113:15 build.go:491:34 (goconst)
build.go:491:34⚠️ 2 other occurrence(s) of "linux" found in: build.go:113:15 build.go:119:15 (goconst)
build.go:381:21⚠️ 2 other occurrence(s) of "windows" found in: build.go:423:13 build.go:487:13 (goconst)
build.go:423:13⚠️ 2 other occurrence(s) of "windows" found in: build.go:381:21 build.go:487:13 (goconst)
build.go:487:13⚠️ 2 other occurrence(s) of "windows" found in: build.go:381:21 build.go:423:13 (goconst)
pkg/api/dashboard.go:67:22⚠️ 5 other occurrence(s) of "Anonymous" found in: pkg/api/dashboard.go:67:35 pkg/api/dashboard.go:131:10 pkg/api/dashboard.go:406:13 pkg/api/folder.go:98:22 pkg/api/folder.go:98:35 (goconst)
pkg/api/dashboard.go:67:35⚠️ 5 other occurrence(s) of "Anonymous" found in: pkg/api/dashboard.go:67:22 pkg/api/dashboard.go:131:10 pkg/api/dashboard.go:406:13 pkg/api/folder.go:98:22 pkg/api/folder.go:98:35 (goconst)
pkg/api/dashboard.go:131:10⚠️ 5 other occurrence(s) of "Anonymous" found in: pkg/api/dashboard.go:67:22 pkg/api/dashboard.go:67:35 pkg/api/dashboard.go:406:13 pkg/api/folder.go:98:22 pkg/api/folder.go:98:35 (goconst)
pkg/api/dashboard.go:406:13⚠️ 5 other occurrence(s) of "Anonymous" found in: pkg/api/dashboard.go:67:22 pkg/api/dashboard.go:67:35 pkg/api/dashboard.go:131:10 pkg/api/folder.go:98:22 pkg/api/folder.go:98:35 (goconst)
pkg/api/folder.go:98:22⚠️ 5 other occurrence(s) of "Anonymous" found in: pkg/api/dashboard.go:67:22 pkg/api/dashboard.go:67:35 pkg/api/dashboard.go:131:10 pkg/api/dashboard.go:406:13 pkg/api/folder.go:98:35 (goconst)
pkg/api/folder.go:98:35⚠️ 5 other occurrence(s) of "Anonymous" found in: pkg/api/dashboard.go:67:22 pkg/api/dashboard.go:67:35 pkg/api/dashboard.go:131:10 pkg/api/dashboard.go:406:13 pkg/api/folder.go:98:22 (goconst)
pkg/api/index.go:63:47⚠️ 2 other occurrence(s) of "light" found
in: pkg/api/index.go:91:22 pkg/api/index.go:93:16 (goconst)
pkg/api/index.go:91:22⚠️ 2 other occurrence(s) of "light" found in: pkg/api/index.go:63:47 pkg/api/index.go:93:16 (goconst)
pkg/api/index.go:93:16⚠️ 2 other occurrence(s) of "light" found in: pkg/api/index.go:63:47 pkg/api/index.go:91:22 (goconst)
pkg/components/null/float.go:71:25⚠️ 2 other occurrence(s) of "null" found in: pkg/components/null/float.go:103:10 pkg/components/null/float.go:112:10 (goconst)
pkg/components/null/float.go:103:10⚠️ 2 other occurrence(s) of "null" found in: pkg/components/null/float.go:71:25 pkg/components/null/float.go:112:10 (goconst)
pkg/components/null/float.go:112:10⚠️ 2 other occurrence(s) of "null" found in: pkg/components/null/float.go:71:25 pkg/components/null/float.go:103:10 (goconst)
pkg/services/alerting/notifiers/pagerduty.go:79:16⚠️ 2 other occurrence(s) of "Triggered metrics:\n\n" found in: pkg/services/alerting/notifiers/kafka.go:64:16 pkg/services/alerting/notifiers/opsgenie.go:98:16 (goconst)
pkg/services/alerting/notifiers/kafka.go:64:16⚠️ 2 other occurrence(s) of "Triggered metrics:\n\n" found in: pkg/services/alerting/notifiers/pagerduty.go:79:16 pkg/services/alerting/notifiers/opsgenie.go:98:16 (goconst)
pkg/services/alerting/notifiers/opsgenie.go:98:16⚠️ 2 other occurrence(s) of "Triggered metrics:\n\n" found in: pkg/services/alerting/notifiers/pagerduty.go:79:16 pkg/services/alerting/notifiers/kafka.go:64:16 (goconst)
pkg/social/social.go:85:11⚠️ 2 other occurrence(s) of "grafana_com" found in: pkg/social/social.go:162:14 pkg/social/social.go:197:11 (goconst)
pkg/social/social.go:162:14⚠️ 2 other occurrence(s) of "grafana_com" found in: pkg/social/social.go:85:11 pkg/social/social.go:197:11 (goconst)
pkg/social/social.go:197:11⚠️ 2 other occurrence(s) of "grafana_com" found in: pkg/social/social.go:85:11 pkg/social/social.go:162:14 (goconst)
pkg/tsdb/elasticsearch/time_series_query.go:92:17⚠️ 3 other occurrence(s) of "count" found in: pkg/tsdb/elasticsearch/response_parser.go:152:8 pkg/tsdb/elasticsearch/response_parser.go:167:31 pkg/tsdb/elasticsearch/response_parser.go:315:9 (goconst)
pkg/tsdb/elasticsearch/response_parser.go:152:8⚠️ 3 other occurrence(s) of "count" found in: pkg/tsdb/elasticsearch/time_series_query.go:92:17 pkg/tsdb/elasticsearch/response_parser.go:167:31 pkg/tsdb/elasticsearch/response_parser.go:315:9 (goconst)
pkg/tsdb/elasticsearch/response_parser.go:167:31⚠️ 3 other occurrence(s) of "count" found in: pkg/tsdb/elasticsearch/time_series_query.go:92:17 pkg/tsdb/elasticsearch/response_parser.go:152:8 pkg/tsdb/elasticsearch/response_parser.go:315:9 (goconst)
pkg/tsdb/elasticsearch/response_parser.go:315:9⚠️ 3 other occurrence(s) of "count" found in: pkg/tsdb/elasticsearch/time_series_query.go:92:17 pkg/tsdb/elasticsearch/response_parser.go:152:8 pkg/tsdb/elasticsearch/response_parser.go:167:31 (goconst)
pkg/tsdb/elasticsearch/time_series_query.go:78:9⚠️ 2 other occurrence(s) of "date_histogram" found in: pkg/tsdb/elasticsearch/response_parser.go:84:22 pkg/tsdb/elasticsearch/response_parser.go:369:24 (goconst)
pkg/tsdb/elasticsearch/response_parser.go:84:22⚠️ 2 other occurrence(s) of "date_histogram" found in: pkg/tsdb/elasticsearch/time_series_query.go:78:9 pkg/tsdb/elasticsearch/response_parser.go:369:24 (goconst)
pkg/tsdb/elasticsearch/response_parser.go:369:24⚠️ 2 other occurrence(s) of "date_histogram" found in: pkg/tsdb/elasticsearch/time_series_query.go:78:9 pkg/tsdb/elasticsearch/response_parser.go:84:22 (goconst)
2018-09-23 21:19:21 +02:00
..
alertmanager_test.go alertmanager: code style 2017-12-13 19:17:00 +01:00
alertmanager.go notifications: read without tran, write with tran 2018-06-29 15:15:31 +02:00
base_test.go notifications: read without tran, write with tran 2018-06-29 15:15:31 +02:00
base.go Fix goconst issues 2018-09-23 21:19:21 +02:00
dingding_test.go alerting: reduce log level for notifiers 2017-12-13 19:17:00 +01:00
dingding.go alerting: invert sendOnce to sendReminder 2018-06-05 10:44:17 +02:00
discord_test.go Discord integration 2017-03-22 23:28:55 +01:00
discord.go alerting: invert sendOnce to sendReminder 2018-06-05 10:44:17 +02:00
email_test.go feat(notifications): switch to ; seperator 2016-10-19 16:34:12 +02:00
email.go alerting: invert sendOnce to sendReminder 2018-06-05 10:44:17 +02:00
hipchat_test.go Adding HipChat Notifier 2017-02-07 10:50:49 -06:00
hipchat.go fix hipchat color code used "no data" notifications 2018-09-14 17:22:07 +02:00
kafka_test.go Fixed failing go tests 2017-10-09 18:56:05 -07:00
kafka.go Fix goconst issues 2018-09-23 21:19:21 +02:00
line_test.go style: go fmt with simplify 2017-01-27 15:21:02 +01:00
line.go alerting: invert sendOnce to sendReminder 2018-06-05 10:44:17 +02:00
opsgenie_test.go alerting: add support for OpsGenie 2016-12-06 14:48:13 -06:00
opsgenie.go Fix goconst issues 2018-09-23 21:19:21 +02:00
pagerduty_test.go pagerduty: fixes invalid default value 2017-12-22 10:54:48 +01:00
pagerduty.go Fix goconst issues 2018-09-23 21:19:21 +02:00
pushover_test.go Add Pushover alert notifications 2017-02-10 22:44:33 +01:00
pushover.go alerting: invert sendOnce to sendReminder 2018-06-05 10:44:17 +02:00
sensu_test.go support setting the source and handler attribute in sensu notifications (#8405) 2017-05-24 13:42:24 +02:00
sensu.go alerting: invert sendOnce to sendReminder 2018-06-05 10:44:17 +02:00
slack_test.go Add a per-notifier ShouldNotify() 2017-12-12 17:35:54 +01:00
slack.go Merge remote-tracking branch 'origin/master' into alerting_reminder 2018-08-20 13:29:30 +02:00
teams_test.go Add Microsoft Teams notifier 2017-11-14 11:05:01 +01:00
teams.go Fix some typos found by codespell 2018-09-21 11:54:52 +02:00
telegram_test.go pkg: fix codespell issues 2018-04-13 20:31:29 +02:00
telegram.go Merge pull request #13031 from bergquist/golang_1.11 2018-09-05 15:31:43 +02:00
threema_test.go feat(alerting): Add Threema Gateway integration 2017-02-07 11:14:57 +01:00
threema.go alerting: invert sendOnce to sendReminder 2018-06-05 10:44:17 +02:00
victorops_test.go Add VictorOps Test. 2016-11-16 16:14:02 -08:00
victorops.go alerting: invert sendOnce to sendReminder 2018-06-05 10:44:17 +02:00
webhook_test.go Add a per-notifier ShouldNotify() 2017-12-12 17:35:54 +01:00
webhook.go alerting: invert sendOnce to sendReminder 2018-06-05 10:44:17 +02:00