From cb8347a02c8c64b87ba3a11b4d28311d799c2431 Mon Sep 17 00:00:00 2001 From: flipglif1 <37122664+flipglif1@users.noreply.github.com> Date: Wed, 5 Dec 2018 10:05:19 -0800 Subject: [PATCH 1/2] Update http_check.py --- http/plugins/http_check.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http/plugins/http_check.py b/http/plugins/http_check.py index 5667f3f..e2d32fc 100644 --- a/http/plugins/http_check.py +++ b/http/plugins/http_check.py @@ -9,7 +9,7 @@ class HttpRequestPlugin(Plugin): def collect(self, _) -> Status: - name = self.get('name') + name = self.get('site') url = self.get('url') if not url or not name: self.logger.error('HTTP plugin is not configured') From 572705cd7d4e584e1a585d8e214b3489404db504 Mon Sep 17 00:00:00 2001 From: flipglif1 <37122664+flipglif1@users.noreply.github.com> Date: Fri, 7 Dec 2018 08:52:29 -0800 Subject: [PATCH 2/2] Update README.md --- http/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http/README.md b/http/README.md index 1ddd220..219f92a 100644 --- a/http/README.md +++ b/http/README.md @@ -25,7 +25,7 @@ The HTTP plugin can be customized via environment variables. |Variable |Default |Description | |-----------------|------------|--------------------------------------------------------------------------------------------------------------------------| -|name | |The name to assign to this check (available as the `site` label in the dashboard scope) | +|site | |The name to assign to this check (available as the `site` label in the dashboard scope) | |url | |The URL to check. | |method |GET |The HTTP request method. Possible values: GET, POST, PUT, HEAD, PATCH, DELETE and OPTIONS. | |params | |The parameters to be added as the URL query string, e.g.: key1:value1,key2:value2 (separated by comma with no whitespaces)|