Class: AWS::EC2::VPNConnection::Telemetry
- Inherits:
-
Object
- Object
- AWS::EC2::VPNConnection::Telemetry
- Defined in:
- lib/aws/ec2/vpn_connection/telemetry.rb
Instance Attribute Summary collapse
- #accepted_route_count ⇒ Integer readonly
- #last_status_change ⇒ Time readonly
- #outside_ip_address ⇒ String readonly
-
#status ⇒ Symbol
readonly
:up or :down.
- #status_message ⇒ String readonly
- #vpn_connection ⇒ VPNConnection readonly
Instance Method Summary collapse
-
#initialize(vpn_connection, details) ⇒ Telemetry
constructor
A new instance of Telemetry.
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. @accepted_route_count = details.accepted_route_count end |
Instance Attribute Details
#accepted_route_count ⇒ Integer (readonly)
44 45 46 |
# File 'lib/aws/ec2/vpn_connection/telemetry.rb', line 44 def accepted_route_count @accepted_route_count end |
#last_status_change ⇒ Time (readonly)
38 39 40 |
# File 'lib/aws/ec2/vpn_connection/telemetry.rb', line 38 def last_status_change @last_status_change end |
#outside_ip_address ⇒ String (readonly)
32 33 34 |
# File 'lib/aws/ec2/vpn_connection/telemetry.rb', line 32 def outside_ip_address @outside_ip_address end |
#status ⇒ Symbol (readonly)
Returns :up or :down.
35 36 37 |
# File 'lib/aws/ec2/vpn_connection/telemetry.rb', line 35 def status @status end |
#status_message ⇒ String (readonly)
41 42 43 |
# File 'lib/aws/ec2/vpn_connection/telemetry.rb', line 41 def @status_message end |
#vpn_connection ⇒ VPNConnection (readonly)
29 30 31 |
# File 'lib/aws/ec2/vpn_connection/telemetry.rb', line 29 def vpn_connection @vpn_connection end |