Class: Google::Apis::NetworkmanagementV1beta1::Trace

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/networkmanagement_v1beta1/classes.rb,
generated/google/apis/networkmanagement_v1beta1/representations.rb,
generated/google/apis/networkmanagement_v1beta1/representations.rb

Overview

Trace represents one simulated packet forwarding path.

  • Each trace contains multiple ordered steps.
  • Each step is in a particular state and has an associated configuration.
  • State is categorized as a final or non-final state.
  • Each final state has a reason associated with it.
  • Each trace must end with a final state (the last step).

|---------------------Trace----------------------|
Step1(State) Step2(State) ---  StepN(State(final))

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Trace

Returns a new instance of Trace.



1726
1727
1728
# File 'generated/google/apis/networkmanagement_v1beta1/classes.rb', line 1726

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#endpoint_infoGoogle::Apis::NetworkmanagementV1beta1::EndpointInfo

For display only. The specification of the endpoints for the test. EndpointInfo is derived from source and destination Endpoint and validated by the backend data plane model. Corresponds to the JSON property endpointInfo



1715
1716
1717
# File 'generated/google/apis/networkmanagement_v1beta1/classes.rb', line 1715

def endpoint_info
  @endpoint_info
end

#stepsArray<Google::Apis::NetworkmanagementV1beta1::Step>

A trace of a test contains multiple steps from the initial state to the final state (delivered, dropped, forwarded, or aborted). The steps are ordered by the processing sequence within the simulated network state machine. It is critical to preserve the order of the steps and avoid reordering or sorting them. Corresponds to the JSON property steps



1724
1725
1726
# File 'generated/google/apis/networkmanagement_v1beta1/classes.rb', line 1724

def steps
  @steps
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1731
1732
1733
1734
# File 'generated/google/apis/networkmanagement_v1beta1/classes.rb', line 1731

def update!(**args)
  @endpoint_info = args[:endpoint_info] if args.key?(:endpoint_info)
  @steps = args[:steps] if args.key?(:steps)
end