Class: AWS::EC2::VPNConnection::Telemetry

Inherits:
Object
  • Object
show all
Defined in:
lib/aws/ec2/vpn_connection/telemetry.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(vpn_connection, details) ⇒ Telemetry

Returns a new instance of Telemetry.



19
20
21
22
23
24
25
26
# File 'lib/aws/ec2/vpn_connection/telemetry.rb', line 19

def initialize vpn_connection, details
  @vpn_connection = vpn_connection
  @outside_ip_address = details.outside_ip_address
  @status = details.status.downcase.to_sym
  @last_status_change = details.last_status_change
  @status_message = details.status_message
  @accepted_route_count = details.accepted_route_count
end

Instance Attribute Details

#accepted_route_countInteger (readonly)

Returns:

  • (Integer)


44
45
46
# File 'lib/aws/ec2/vpn_connection/telemetry.rb', line 44

def accepted_route_count
  @accepted_route_count
end

#last_status_changeTime (readonly)

Returns:

  • (Time)


38
39
40
# File 'lib/aws/ec2/vpn_connection/telemetry.rb', line 38

def last_status_change
  @last_status_change
end

#outside_ip_addressString (readonly)

Returns:

  • (String)


32
33
34
# File 'lib/aws/ec2/vpn_connection/telemetry.rb', line 32

def outside_ip_address
  @outside_ip_address
end

#statusSymbol (readonly)

Returns :up or :down.

Returns:

  • (Symbol)

    :up or :down



35
36
37
# File 'lib/aws/ec2/vpn_connection/telemetry.rb', line 35

def status
  @status
end

#status_messageString (readonly)

Returns:

  • (String)


41
42
43
# File 'lib/aws/ec2/vpn_connection/telemetry.rb', line 41

def status_message
  @status_message
end

#vpn_connectionVPNConnection (readonly)

Returns:



29
30
31
# File 'lib/aws/ec2/vpn_connection/telemetry.rb', line 29

def vpn_connection
  @vpn_connection
end