|
3 | 3 | # This class will install the necessary config to hook the http_check in the agent |
4 | 4 | # |
5 | 5 | # Parameters: |
| 6 | +# sitename |
| 7 | +# (Required) The name of the instance. |
| 8 | +# |
6 | 9 | # url |
| 10 | +# (Required) The url to check. |
| 11 | +# |
7 | 12 | # timeout |
| 13 | +# The (optional) timeout in seconds. |
8 | 14 | # |
9 | 15 | # username |
10 | 16 | # password |
|
57 | 63 | # a list of users to notify within the service configuration. |
58 | 64 | # |
59 | 65 | # tags |
| 66 | +# The (optional) tags to add to the check instance. |
60 | 67 | # |
61 | 68 | # Sample Usage: |
62 | 69 | # |
| 70 | +# Add a class for each check instance: |
| 71 | +# |
63 | 72 | # class { 'datadog_agent::integrations::http_check': |
64 | 73 | # sitename => 'google', |
65 | 74 | # url => 'http://www.google.com/', |
|
86 | 95 | # } |
87 | 96 | # |
88 | 97 | # |
| 98 | +# Add multiple instances in one class declaration: |
| 99 | +# |
| 100 | +# class { 'datadog_agent::integrations::http_check': |
| 101 | +# instances => [{ |
| 102 | +# 'sitename' => 'google', |
| 103 | +# 'url' => 'http://www.google.com', |
| 104 | +# }, |
| 105 | +# { |
| 106 | +# 'sitename' => 'local', |
| 107 | +# 'url' => 'http://localhost/', |
| 108 | +# 'headers' => ['Host: stan.borbat.com', 'DNT: true'], |
| 109 | +# 'tags' => ['production', 'wordpress'] |
| 110 | +# }] |
| 111 | +# } |
| 112 | + |
| 113 | + |
89 | 114 | class datadog_agent::integrations::http_check ( |
90 | 115 | $sitename = undef, |
91 | 116 | $url = undef, |
|
117 | 142 | 'content_match' => $content_match, |
118 | 143 | 'include_content' => $include_content, |
119 | 144 | 'collect_response_time' => $collect_response_time, |
120 | | - 'disable_ssl_validation' => $disable_ssl_validation, |
| 145 | + 'disable_ssl_validation' => $disable_ssl_validation, |
121 | 146 | 'headers' => $headers, |
122 | 147 | 'tags' => $tags, |
123 | 148 | 'contact' => $contact, |
|
0 commit comments