class ZuoraConnect::StaticController
def clear_connect_app_session
def clear_connect_app_session Thread.current[:appinstance] = nil request.session_options[:skip] = true end
def health
def health if params[:error].present? begin raise ZuoraConnect::Exceptions::Error.new('This is an error') rescue => ex case params[:error] when 'Log' Rails.logger.error(ex) when 'Exception' raise end end end render json: { message: "Alive", status: 200 }, status: 200 end
def initialize_app
def initialize_app begin authenticate_connect_app_request render json: { message: "Success", status: 200 }, status: 200 rescue render json: { message: "Failure initializing app instance", status: 500 }, status: 500 end end
def metrics
def metrics type = params[:type].present? ? params[:type] : "versions" render json: ZuoraConnect::AppInstance.get_metrics(type).to_json, status: 200 end