Commit e4041f5 1 parent 65f8734 commit e4041f5 Copy full SHA for e4041f5
File tree 2 files changed +17
-1
lines changed
provider/sensu_check_config
2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -120,4 +120,12 @@ def high_flap_threshold
120
120
def high_flap_threshold = ( value )
121
121
conf [ 'checks' ] [ resource [ :realname ] ] [ 'high_flap_threshold' ] = value
122
122
end
123
+
124
+ def standalone
125
+ conf [ 'checks' ] [ resource [ :realname ] ] [ 'standalone' ]
126
+ end
127
+
128
+ def standalone = ( value )
129
+ conf [ 'checks' ] [ resource [ :realname ] ] [ 'standalone' ] = value
130
+ end
123
131
end
Original file line number Diff line number Diff line change @@ -65,11 +65,19 @@ def initialize(*args)
65
65
newproperty ( :subscribers , :array_matching => :all ) do
66
66
desc "Who is subscribed to this check"
67
67
end
68
-
68
+
69
69
newproperty ( :type ) do
70
70
desc "What type of check is this"
71
71
end
72
72
73
+ newproperty ( :standalone , :boolean => true ) do
74
+ desc "Whether this is a standalone check"
75
+
76
+ newvalues ( :true , :false )
77
+
78
+ defaultto :false
79
+ end
80
+
73
81
autorequire ( :package ) do
74
82
[ 'sensu' ]
75
83
end
You can’t perform that action at this time.
0 commit comments