Class: MHVLogging::Client

Inherits:
Common::Client::Base show all
Includes:
Common::Client::Concerns::MHVSessionBasedClient
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

#session

Instance Method Summary collapse

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

#auditloginFaraday::Response

Communicate to MHV, for compliance purposes, that the user has signed in

Returns:

  • (Faraday::Response)

    a Faraday response object



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

#auditlogoutFaraday::Response

Communicate to MHV, for compliance purposes, that the user has signed in

Returns:

  • (Faraday::Response)

    a Faraday response object



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