# Google Analytics Data V1beta API - Class Google::Analytics::Data::V1beta::OrderBy::MetricOrderBy (v0.4.3)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [0.4.3 (latest)](https://docs.cloud.google.com/ruby/docs/reference/google-analytics-data-v1beta/latest/Google-Analytics-Data-V1beta-OrderBy-MetricOrderBy)
- [0.4.2](https://docs.cloud.google.com/ruby/docs/reference/google-analytics-data-v1beta/0.4.2/Google-Analytics-Data-V1beta-OrderBy-MetricOrderBy)
Reference documentation and code samples for the Google Analytics Data V1beta API class Google::Analytics::Data::V1beta::OrderBy::MetricOrderBy.

Sorts by metric values.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #metric_name

    def metric_name() -> ::String

**Returns**

- (::String) --- A metric name in the request to order by.

### #metric_name=

    def metric_name=(value) -> ::String

**Parameter**

- **value** (::String) --- A metric name in the request to order by.
**Returns**

- (::String) --- A metric name in the request to order by.