Wypróbuj serwer MCP w Google Analytics. Zainstaluj go z
GitHub. Więcej informacji znajdziesz w
ogłoszeniu.
AccessOrderBy
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Kolejność według określa sposób sortowania wierszy w odpowiedzi. Na przykład kolejność wierszy według liczby dostępu malejąco jest ustalana w jednej kolejności, a wiersze według ciągu kraju – w innej kolejności.
Zapis JSON |
{
"desc": boolean,
// Union field one_order_by can be only one of the following:
"metric": {
object (MetricOrderBy )
},
"dimension": {
object (DimensionOrderBy )
}
// End of list of possible types for union field one_order_by .
} |
Pola |
desc |
boolean
Jeśli ma wartość true (prawda), sortuje w kolejności malejącej. Jeśli ma wartość fałsz lub nie jest określona, sortowanie jest w kolejności rosnącej.
|
Pole sumy one_order_by . Określ jeden typ zamówienia do dla: OrderBy . one_order_by może mieć tylko jedną z tych wartości: |
metric |
object (MetricOrderBy )
Sortuje wyniki według wartości danych.
|
dimension |
object (DimensionOrderBy )
Sortuje wyniki według wartości wymiaru.
|
MetricOrderBy
Sortuje dane według wartości.
Zapis JSON |
{
"metricName": string
} |
Pola |
metricName |
string
Nazwa danych w żądaniu sortowania.
|
DimensionOrderBy
Sortuje dane według wartości wymiarów.
Zapis JSON |
{
"dimensionName": string,
"orderType": enum (OrderType )
} |
Pola |
dimensionName |
string
Nazwa wymiaru w żądaniu, według którego ma być ustalany kolejność.
|
orderType |
enum (OrderType )
Steruje regułą kolejności wartości wymiarów.
|
OrderType
Reguła określająca kolejność wartości wymiarów ciągu znaków.
Wartości w polu enum |
ORDER_TYPE_UNSPECIFIED |
Nie określono. |
ALPHANUMERIC |
Sortowanie alfanumeryczne według punktu kodowego Unicode. Na przykład „2”. < „A” < „X” < „b” < „z”. |
CASE_INSENSITIVE_ALPHANUMERIC |
Sortowanie alfanumeryczne bez rozróżniania wielkości liter według punktu kodowego Unicode. Na przykład „2”. < „A” < „b” < „X” < „z”. |
NUMERIC |
Przed sortowaniem wartości wymiarów są konwertowane na liczby. Na przykład w przypadku sortowania NUMERIC wartość „25” < „100” i w przypadku sortowania ALPHANUMERIC „100” < „25”. Wszystkie wartości nienumeryczne wymiarów mają taką samą wartość kolejności poniżej wszystkich wartości liczbowych. |
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-26 UTC.
[null,null,["Ostatnia aktualizacja: 2025-07-26 UTC."],[[["\u003cp\u003eOrderBys determine the sorting of rows in responses, such as by access count or country.\u003c/p\u003e\n"],["\u003cp\u003eYou can order by metrics (like values) or dimensions (like country or date).\u003c/p\u003e\n"],["\u003cp\u003eOrdering can be ascending (default) or descending, controlled by the \u003ccode\u003edesc\u003c/code\u003e boolean.\u003c/p\u003e\n"],["\u003cp\u003eDimension ordering further offers alphanumeric, case-insensitive alphanumeric, and numeric options for string values.\u003c/p\u003e\n"]]],["The content defines how to sort rows in a response using \"OrderBys.\" Sorting can be ascending or descending via a boolean `desc`. Rows are sorted by either `metric` values, specified by `metricName`, or by `dimension` values, specified by `dimensionName`. For dimensions, `orderType` controls the sorting rule. `orderType` supports `ALPHANUMERIC`, `CASE_INSENSITIVE_ALPHANUMERIC`, or `NUMERIC`. The `MetricOrderBy` and `DimensionOrderBy` structures are used to define the criteria of sorting.\n"],null,["# AccessOrderBy\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n- [MetricOrderBy](#MetricOrderBy)\n - [JSON representation](#MetricOrderBy.SCHEMA_REPRESENTATION)\n- [DimensionOrderBy](#DimensionOrderBy)\n - [JSON representation](#DimensionOrderBy.SCHEMA_REPRESENTATION)\n- [OrderType](#OrderType)\n\nOrder bys define how rows will be sorted in the response. For example, ordering rows by descending access count is one ordering, and ordering rows by the country string is a different ordering.\n\n| JSON representation |\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"desc\": boolean, // Union field `one_order_by` can be only one of the following: \"metric\": { object (/analytics/devguides/config/admin/v1/rest/v1alpha/AccessOrderBy#MetricOrderBy) }, \"dimension\": { object (/analytics/devguides/config/admin/v1/rest/v1alpha/AccessOrderBy#DimensionOrderBy) } // End of list of possible types for union field `one_order_by`. } ``` |\n\n| Fields ||\n|-------------|----------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `desc` | `boolean` If true, sorts by descending order. If false or unspecified, sorts in ascending order. |\n| Union field `one_order_by`. Specify one type of order by for `OrderBy`. `one_order_by` can be only one of the following: ||\n| `metric` | `object (`[MetricOrderBy](/analytics/devguides/config/admin/v1/rest/v1alpha/AccessOrderBy#MetricOrderBy)`)` Sorts results by a metric's values. |\n| `dimension` | `object (`[DimensionOrderBy](/analytics/devguides/config/admin/v1/rest/v1alpha/AccessOrderBy#DimensionOrderBy)`)` Sorts results by a dimension's values. |\n\nMetricOrderBy\n-------------\n\nSorts by metric values.\n\n| JSON representation |\n|----------------------------------|\n| ``` { \"metricName\": string } ``` |\n\n| Fields ||\n|--------------|----------------------------------------------------|\n| `metricName` | `string` A metric name in the request to order by. |\n\nDimensionOrderBy\n----------------\n\nSorts by dimension values.\n\n| JSON representation |\n|------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"dimensionName\": string, \"orderType\": enum (/analytics/devguides/config/admin/v1/rest/v1alpha/AccessOrderBy#OrderType) } ``` |\n\n| Fields ||\n|-----------------|---------------------------------------------------------------------------------------------------------------------------------------------------|\n| `dimensionName` | `string` A dimension name in the request to order by. |\n| `orderType` | `enum (`[OrderType](/analytics/devguides/config/admin/v1/rest/v1alpha/AccessOrderBy#OrderType)`)` Controls the rule for dimension value ordering. |\n\nOrderType\n---------\n\nRule to order the string dimension values by.\n\n| Enums ||\n|---------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `ORDER_TYPE_UNSPECIFIED` | Unspecified. |\n| `ALPHANUMERIC` | Alphanumeric sort by Unicode code point. For example, \"2\" \\\u003c \"A\" \\\u003c \"X\" \\\u003c \"b\" \\\u003c \"z\". |\n| `CASE_INSENSITIVE_ALPHANUMERIC` | Case insensitive alphanumeric sort by lower case Unicode code point. For example, \"2\" \\\u003c \"A\" \\\u003c \"b\" \\\u003c \"X\" \\\u003c \"z\". |\n| `NUMERIC` | Dimension values are converted to numbers before sorting. For example in NUMERIC sort, \"25\" \\\u003c \"100\", and in `ALPHANUMERIC` sort, \"100\" \\\u003c \"25\". Non-numeric dimension values all have equal ordering value below all numeric values. |"]]