Class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ExperimentResultMetric

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

Overview

Metric and corresponding confidence intervals.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3ExperimentResultMetric

Returns a new instance of GoogleCloudDialogflowCxV3ExperimentResultMetric.



1603
1604
1605
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 1603

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

Instance Attribute Details

#confidence_intervalGoogle::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ExperimentResultConfidenceInterval

A confidence interval is a range of possible values for the experiment objective you are trying to measure. Corresponds to the JSON property confidenceInterval



1579
1580
1581
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 1579

def confidence_interval
  @confidence_interval
end

#countFloat

Count value of a metric. Corresponds to the JSON property count

Returns:

  • (Float)


1584
1585
1586
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 1584

def count
  @count
end

#count_typeString

Count-based metric type. Only one of type or count_type is specified in each Metric. Corresponds to the JSON property countType

Returns:

  • (String)


1590
1591
1592
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 1590

def count_type
  @count_type
end

#ratioFloat

Ratio value of a metric. Corresponds to the JSON property ratio

Returns:

  • (Float)


1595
1596
1597
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 1595

def ratio
  @ratio
end

#typeString

Ratio-based metric type. Only one of type or count_type is specified in each Metric. Corresponds to the JSON property type

Returns:

  • (String)


1601
1602
1603
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 1601

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1608
1609
1610
1611
1612
1613
1614
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 1608

def update!(**args)
  @confidence_interval = args[:confidence_interval] if args.key?(:confidence_interval)
  @count = args[:count] if args.key?(:count)
  @count_type = args[:count_type] if args.key?(:count_type)
  @ratio = args[:ratio] if args.key?(:ratio)
  @type = args[:type] if args.key?(:type)
end