bin/handler-librato-occurrences.rb in sensu-plugins-librato-0.0.2 vs bin/handler-librato-occurrences.rb in sensu-plugins-librato-1.0.0

- old
+ new

@@ -13,10 +13,10 @@ def filter; end def handle hostname = @event['client']['name'].split('.').first # #YELLOW - check_name = @event['check']['name'].gsub(%r{[ \.]}, '_') # rubocop:disable RegexpLiteral + check_name = @event['check']['name'].gsub(%r{[ \.]}, '_') metric = "sensu.events.#{hostname}.#{check_name}.occurrences" value = @event['action'] == 'create' ? @event['occurrences'] : 0 Librato::Metrics.authenticate settings['librato']['email'], settings['librato']['api_key']