# Google Analytics Data V1alpha API - Class Google::Analytics::Data::V1alpha::OrderBy::MetricOrderBy (v0.8.3)

Reference documentation and code samples for the Google Analytics Data V1alpha API class Google::Analytics::Data::V1alpha::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.