Class: CARMA::Client::MuleSoftClient

Inherits:
Common::Client::Base show all
Includes:
Common::Client::Concerns::Monitoring
Defined in:
lib/carma/client/mule_soft_client.rb

Defined Under Namespace

Classes: RecordParseError

Constant Summary collapse

STATSD_KEY_PREFIX =
'api.carma.mulesoft'

Instance Method Summary collapse

Methods included from Common::Client::Concerns::Monitoring

#with_monitoring

Methods inherited from Common::Client::Base

configuration, #raise_backend_exception

Methods included from SentryLogging

#log_exception_to_sentry, #log_message_to_sentry, #non_nil_hash?, #normalize_level, #rails_logger

Instance Method Details

#create_submission_v2(payload) ⇒ Object



16
17
18
19
20
21
22
23
# File 'lib/carma/client/mule_soft_client.rb', line 16

def create_submission_v2(payload)
  with_monitoring do
    res = do_post('v2/application/1010CG/submit', payload, config.settings.async_timeout)
    raise RecordParseError if res.dig('record', 'hasErrors')

    res
  end
end