Skip to content

Commit 5b24642

Browse files
committed
[http_check] name is a compulsory element, adding to manifest.
1 parent 1dcfe95 commit 5b24642

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

manifests/integrations/http_check.pp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,19 @@
5252
# Sample Usage:
5353
#
5454
# class { 'datadog_agent::integrations::http_check':
55+
# name => 'google',
5556
# url => 'http://www.google.com/',
5657
# }
5758
#
5859
# class { 'datadog_agent::integrations::http_check':
60+
# name => 'local',
5961
# url => 'http://localhost/',
6062
# headers => ['Host: stan.borbat.com', 'DNT: true'],
6163
# tags => ['production', 'wordpress'],
6264
# }
6365
#
6466
# class { 'datadog_agent::integrations::http_check':
67+
# name => 'localhost-9001',
6568
# url => 'http://localhost:9001/',
6669
# timeout => 5,
6770
# threshold => 1,
@@ -74,6 +77,7 @@
7477
#
7578
#
7679
class datadog_agent::integrations::http_check (
80+
$name = undef,
7781
$url = undef,
7882
$username = undef,
7983
$password = undef,
@@ -92,6 +96,7 @@
9296

9397
if !$instances and $url {
9498
$_instances = [{
99+
'name' => $name,
95100
'url' => $url,
96101
'username' => $username,
97102
'password' => $password,

0 commit comments

Comments
 (0)