Sha256: 6ab55df50d77c2e7fabcc28b779962782144b254d35ea46855d8c7af4680cb18

Contents?: true

Size: 809 Bytes

Versions: 42

Compression:

Stored size: 809 Bytes

Contents

# encoding: utf-8

module OneApm
  class Transaction
    module TransactionSynthetics

      attr_accessor :raw_synthetics_header, :synthetics_payload

      def is_synthetics_request?
        synthetics_payload != nil && raw_synthetics_header != nil
      end

      def synthetics_version
        info = synthetics_payload or return nil
        info[0]
      end

      def synthetics_account_id
        info = synthetics_payload or return nil
        info[1]
      end

      def synthetics_resource_id
        info = synthetics_payload or return nil
        info[2]
      end

      def synthetics_job_id
        info = synthetics_payload or return nil
        info[3]
      end

      def synthetics_monitor_id
        info = synthetics_payload or return nil
        info[4]
      end

    end
  end
end

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
oneapm_rpm-1.1.1 lib/one_apm/transaction/transaction_synthetics.rb
oneapm_rpm-1.1.0 lib/one_apm/transaction/transaction_synthetics.rb