# DatadogAPIClient::V2::LogsAggregateSort ## Properties | Name | Type | Description | Notes | | --------------- | --------------------------------------------------------- | ------------------------------------------------------------------- | --------------------------------------------- | | **aggregation** | [**LogsAggregationFunction**](LogsAggregationFunction.md) | | [optional] | | **metric** | **String** | The metric to sort by (only used for `type=measure`) | [optional] | | **order** | [**LogsSortOrder**](LogsSortOrder.md) | | [optional] | | **type** | [**LogsAggregateSortType**](LogsAggregateSortType.md) | | [optional][default to 'alphabetical'] | ## Example ```ruby require 'datadog_api_client/v2' instance = DatadogAPIClient::V2::LogsAggregateSort.new( aggregation: null, metric: @duration, order: null, type: null ) ```