# Dialogflow CX V3 API - Class Google::Cloud::Dialogflow::CX::V3::Experiment::Result::Metric (v1.12.1)

1.12.1 (latest) 1.12.0 1.11.0 1.10.1 1.9.0 1.8.0 1.7.0 1.6.1 1.5.0 1.4.0 1.3.0 1.2.0 1.1.1 1.0.0 0.26.0 0.25.0 0.24.2 0.23.0 0.22.0 0.21.0 0.20.0 0.19.0 0.18.0 0.17.0 0.16.0 0.15.1 0.14.0 0.13.0 0.12.0 0.11.0 0.10.2 0.9.0 0.8.1 0.7.1 0.6.0 0.5.0 0.4.0 Reference documentation and code samples for the Dialogflow CX V3 API class Google::Cloud::Dialogflow::CX::V3::Experiment::Result::Metric.

Metric and corresponding confidence intervals.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #confidence_interval

    def confidence_interval() -> ::Google::Cloud::Dialogflow::CX::V3::Experiment::Result::ConfidenceInterval

**Returns**

- ([::Google::Cloud::Dialogflow::CX::V3::Experiment::Result::ConfidenceInterval](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Experiment-Result-ConfidenceInterval)) --- The probability that the treatment is better than all other treatments in the experiment

### #confidence_interval=

    def confidence_interval=(value) -> ::Google::Cloud::Dialogflow::CX::V3::Experiment::Result::ConfidenceInterval

**Parameter**

- **value** ([::Google::Cloud::Dialogflow::CX::V3::Experiment::Result::ConfidenceInterval](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Experiment-Result-ConfidenceInterval)) --- The probability that the treatment is better than all other treatments in the experiment
**Returns**

- ([::Google::Cloud::Dialogflow::CX::V3::Experiment::Result::ConfidenceInterval](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Experiment-Result-ConfidenceInterval)) --- The probability that the treatment is better than all other treatments in the experiment

### #count

    def count() -> ::Float

**Returns**

- (::Float) --- Count value of a metric.

  Note: The following fields are mutually exclusive: `count`, `ratio`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #count=

    def count=(value) -> ::Float

**Parameter**

- **value** (::Float) --- Count value of a metric.


  Note: The following fields are mutually exclusive: `count`, `ratio`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- (::Float) --- Count value of a metric.

  Note: The following fields are mutually exclusive: `count`, `ratio`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #count_type

    def count_type() -> ::Google::Cloud::Dialogflow::CX::V3::Experiment::Result::CountType

**Returns**

- ([::Google::Cloud::Dialogflow::CX::V3::Experiment::Result::CountType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Experiment-Result-CountType)) --- Count-based metric type. Only one of type or count_type is specified in each Metric.

### #count_type=

    def count_type=(value) -> ::Google::Cloud::Dialogflow::CX::V3::Experiment::Result::CountType

**Parameter**

- **value** ([::Google::Cloud::Dialogflow::CX::V3::Experiment::Result::CountType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Experiment-Result-CountType)) --- Count-based metric type. Only one of type or count_type is specified in each Metric.
**Returns**

- ([::Google::Cloud::Dialogflow::CX::V3::Experiment::Result::CountType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Experiment-Result-CountType)) --- Count-based metric type. Only one of type or count_type is specified in each Metric.

### #ratio

    def ratio() -> ::Float

**Returns**

- (::Float) --- Ratio value of a metric.

  Note: The following fields are mutually exclusive: `ratio`, `count`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #ratio=

    def ratio=(value) -> ::Float

**Parameter**

- **value** (::Float) --- Ratio value of a metric.


  Note: The following fields are mutually exclusive: `ratio`, `count`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- (::Float) --- Ratio value of a metric.

  Note: The following fields are mutually exclusive: `ratio`, `count`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #type

    def type() -> ::Google::Cloud::Dialogflow::CX::V3::Experiment::Result::MetricType

**Returns**

- ([::Google::Cloud::Dialogflow::CX::V3::Experiment::Result::MetricType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Experiment-Result-MetricType)) --- Ratio-based metric type. Only one of type or count_type is specified in each Metric.

### #type=

    def type=(value) -> ::Google::Cloud::Dialogflow::CX::V3::Experiment::Result::MetricType

**Parameter**

- **value** ([::Google::Cloud::Dialogflow::CX::V3::Experiment::Result::MetricType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Experiment-Result-MetricType)) --- Ratio-based metric type. Only one of type or count_type is specified in each Metric.
**Returns**

- ([::Google::Cloud::Dialogflow::CX::V3::Experiment::Result::MetricType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-cx-v3/latest/Google-Cloud-Dialogflow-CX-V3-Experiment-Result-MetricType)) --- Ratio-based metric type. Only one of type or count_type is specified in each Metric.