Class: MHVLogging::Client
- Inherits:
-
Common::Client::Base
- Object
- Common::Client::Base
- MHVLogging::Client
- Defined in:
- lib/mhv_logging/client.rb
Overview
Core class responsible for MHV logging interface operations
Instance Attribute Summary
Attributes included from Common::Client::Concerns::MHVSessionBasedClient
Instance Method Summary collapse
-
#auditlogin ⇒ Faraday::Response
Communicate to MHV, for compliance purposes, that the user has signed in.
-
#auditlogout ⇒ Faraday::Response
Communicate to MHV, for compliance purposes, that the user has signed in.
Methods included from Common::Client::Concerns::MHVSessionBasedClient
#authenticate, #get_session, #initialize
Methods included from SentryLogging
#log_exception_to_sentry, #log_message_to_sentry, #non_nil_hash?, #normalize_level, #rails_logger
Methods inherited from Common::Client::Base
configuration, #raise_backend_exception
Instance Method Details
#auditlogin ⇒ Faraday::Response
Communicate to MHV, for compliance purposes, that the user has signed in
29 30 31 32 |
# File 'lib/mhv_logging/client.rb', line 29 def auditlogin body = { isSuccessful: true, activityDetails: 'Signed in VA.GOV' } perform(:post, 'activity/auditlogin', body, token_headers) end |
#auditlogout ⇒ Faraday::Response
Communicate to MHV, for compliance purposes, that the user has signed in
39 40 41 42 |
# File 'lib/mhv_logging/client.rb', line 39 def auditlogout body = { isSuccessful: true, activityDetails: 'Signed out VA.GOV' } perform(:post, 'activity/auditlogout', body, token_headers) end |