Class: Watchforge::ParsedDSN

Inherits:
Struct
  • Object
show all
Defined in:
lib/watchforge/dsn.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#dsnObject

Returns the value of attribute dsn

Returns:

  • (Object)

    the current value of dsn



6
7
8
# File 'lib/watchforge/dsn.rb', line 6

def dsn
  @dsn
end

#hostObject

Returns the value of attribute host

Returns:

  • (Object)

    the current value of host



6
7
8
# File 'lib/watchforge/dsn.rb', line 6

def host
  @host
end

#portObject

Returns the value of attribute port

Returns:

  • (Object)

    the current value of port



6
7
8
# File 'lib/watchforge/dsn.rb', line 6

def port
  @port
end

#project_idObject

Returns the value of attribute project_id

Returns:

  • (Object)

    the current value of project_id



6
7
8
# File 'lib/watchforge/dsn.rb', line 6

def project_id
  @project_id
end

#public_keyObject

Returns the value of attribute public_key

Returns:

  • (Object)

    the current value of public_key



6
7
8
# File 'lib/watchforge/dsn.rb', line 6

def public_key
  @public_key
end

#schemeObject

Returns the value of attribute scheme

Returns:

  • (Object)

    the current value of scheme



6
7
8
# File 'lib/watchforge/dsn.rb', line 6

def scheme
  @scheme
end

Instance Method Details

#events_urlObject



7
8
9
# File 'lib/watchforge/dsn.rb', line 7

def events_url
  ingestion_url("events/")
end

#monitor_urlObject



15
16
17
# File 'lib/watchforge/dsn.rb', line 15

def monitor_url
  ingestion_url("monitors/checkins/")
end

#trace_urlObject



11
12
13
# File 'lib/watchforge/dsn.rb', line 11

def trace_url
  ingestion_url("trace/")
end