Class: LogStash::Outputs::Application_insights::Validate_notification

Inherits:
Object
  • Object
show all
Defined in:
lib/logstash/outputs/application_insights/validate_notification.rb

Instance Method Summary collapse

Constructor Details

#initializeValidate_notification

Returns a new instance of Validate_notification.



27
28
29
# File 'lib/logstash/outputs/application_insights/validate_notification.rb', line 27

def initialize
  @test_notification = Test_notification.new
end

Instance Method Details

#validateObject



31
32
33
# File 'lib/logstash/outputs/application_insights/validate_notification.rb', line 31

def validate
  {:success => @test_notification.test, :error => @test_notification.last_io_exception }
end