Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ExperimentResultMetric

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

Metric and corresponding confidence intervals.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1ExperimentResultMetric

Returns a new instance of GoogleCloudDialogflowCxV3beta1ExperimentResultMetric.



4959
4960
4961
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 4959

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

Instance Attribute Details

#confidence_intervalGoogle::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ExperimentResultConfidenceInterval

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



4935
4936
4937
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 4935

def confidence_interval
  @confidence_interval
end

#countFloat

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

Returns:

  • (Float)


4940
4941
4942
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 4940

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)


4946
4947
4948
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 4946

def count_type
  @count_type
end

#ratioFloat

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

Returns:

  • (Float)


4951
4952
4953
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 4951

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)


4957
4958
4959
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 4957

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4964
4965
4966
4967
4968
4969
4970
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 4964

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