Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Span

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

Overview

A span represents a sub execution step of an action.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1Span

Returns a new instance of GoogleCloudDialogflowCxV3beta1Span.



13716
13717
13718
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 13716

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

Instance Attribute Details

#complete_timeString

Timestamp of the completion of the span. Corresponds to the JSON property completeTime

Returns:

  • (String)


13694
13695
13696
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 13694

def complete_time
  @complete_time
end

#metricsArray<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1NamedMetric>

The unordered collection of metrics in this span. Corresponds to the JSON property metrics



13699
13700
13701
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 13699

def metrics
  @metrics
end

#nameString

The name of the span. Corresponds to the JSON property name

Returns:

  • (String)


13704
13705
13706
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 13704

def name
  @name
end

#start_timeString

Timestamp of the start of the span. Corresponds to the JSON property startTime

Returns:

  • (String)


13709
13710
13711
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 13709

def start_time
  @start_time
end

#tagsArray<String>

The metadata tags of the span such as span type. Corresponds to the JSON property tags

Returns:

  • (Array<String>)


13714
13715
13716
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 13714

def tags
  @tags
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



13721
13722
13723
13724
13725
13726
13727
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 13721

def update!(**args)
  @complete_time = args[:complete_time] if args.key?(:complete_time)
  @metrics = args[:metrics] if args.key?(:metrics)
  @name = args[:name] if args.key?(:name)
  @start_time = args[:start_time] if args.key?(:start_time)
  @tags = args[:tags] if args.key?(:tags)
end