L'API
Google Business Performance ha un metodo
NOVITÀ che consente di recuperare più `dailyMetrics` in un'unica richiesta API.
Consulta il
calendario del ritiro e le istruzioni per eseguire la migrazione dal metodo API ReportInsights della versione 4 all'API Performance di Google Profilo.
MetricValue
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Un valore di una singola metrica da un'ora di inizio.
Campi |
metric |
enum (Metric )
La metrica per cui si applica il valore.
|
totalValue |
object (DimensionalMetricValue )
Il valore aggregato totale per questa metrica. Impostato per l'opzione AGGREGATED_TOTAL.
|
dimensionalValues[] |
object (DimensionalMetricValue )
Valori dimensionali per questa metrica.
|
DimensionalMetricValue
Un valore di una singola metrica con una determinata dimensione temporale.
Campi |
metricOption |
enum (MetricOption )
L'opzione che ha richiesto questo valore dimensionale.
|
timeDimension |
object (TimeDimension )
La dimensione del valore.
|
value |
string (Int64Value format)
Il valore. Se non viene impostato alcun valore, i dati richiesti non sono disponibili.
|
TimeDimension
La dimensione per la quale vengono suddivisi i dati.
Campi |
dayOfWeek |
enum (DayOfWeek )
Il giorno della settimana (da "MONDAY" a "SUNDAY") a cui corrisponde questo valore. Impostato per l'opzione BREAKDOWN_DAY_OF_WEEK.
|
timeOfDay |
object (TimeOfDay )
L'ora del giorno (da 0 a 23) a cui corrisponde questo valore. Impostato per l'opzione BREAKDOWN_hour_OF_DAY.
|
timeRange |
object (TimeRange )
L'intervallo di tempo coperto da questo valore. Impostato per le opzioni AGGREGATED_TOTAL e AGGREGATED_DAILY.
|
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2025-07-25 UTC.
[null,null,["Ultimo aggiornamento 2025-07-25 UTC."],[[["\u003cp\u003eMetricValue represents a single metric's value starting from a specific time.\u003c/p\u003e\n"],["\u003cp\u003eIt includes the metric, total aggregated value, and dimensional values.\u003c/p\u003e\n"],["\u003cp\u003eDimensionalMetricValue provides a metric value for a given time dimension.\u003c/p\u003e\n"],["\u003cp\u003eTimeDimension specifies how data is divided, like by day of the week, hour, or a time range.\u003c/p\u003e\n"]]],[],null,["# MetricValue\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n- [DimensionalMetricValue](#DimensionalMetricValue)\n - [JSON representation](#DimensionalMetricValue.SCHEMA_REPRESENTATION)\n- [TimeDimension](#TimeDimension)\n - [JSON representation](#TimeDimension.SCHEMA_REPRESENTATION)\n\nA value for a single Metric from a starting time.\n\n| JSON representation ||\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ``` { \"metric\": enum (/my-business/reference/rest/v4/Metric), \"totalValue\": { object (/my-business/reference/rest/v4/MetricValue#DimensionalMetricValue) }, \"dimensionalValues\": [ { object (/my-business/reference/rest/v4/MetricValue#DimensionalMetricValue) } ] } ``` |\n\n| Fields ||\n|-----------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `metric` | `enum (`[Metric](/my-business/reference/rest/v4/Metric)`)` The metric for which the value applies. |\n| `totalValue` | `object (`[DimensionalMetricValue](/my-business/reference/rest/v4/MetricValue#DimensionalMetricValue)`)` The total aggregated value for this metric. Set for the AGGREGATED_TOTAL option. |\n| `dimensionalValues[]` | `object (`[DimensionalMetricValue](/my-business/reference/rest/v4/MetricValue#DimensionalMetricValue)`)` Dimensional values for this metric. |\n\nDimensionalMetricValue\n----------------------\n\nA value for a single metric with a given time dimension.\n\n| JSON representation ||\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ``` { \"metricOption\": enum (/my-business/reference/rest/v4/MetricOption), \"timeDimension\": { object (/my-business/reference/rest/v4/MetricValue#TimeDimension) }, \"value\": string } ``` |\n\n| Fields ||\n|-----------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `metricOption` | `enum (`[MetricOption](/my-business/reference/rest/v4/MetricOption)`)` The option that requested this dimensional value. |\n| `timeDimension` | `object (`[TimeDimension](/my-business/reference/rest/v4/MetricValue#TimeDimension)`)` The dimension for the value. |\n| `value` | `string (`[Int64Value](https://developers.google.com/discovery/v1/type-format)` format)` The value. If no value is set, then the requested data is missing. |\n\nTimeDimension\n-------------\n\nThe dimension for which data is divided over.\n\n| JSON representation ||\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ``` { \"dayOfWeek\": enum (/my-business/reference/rest/v4/accounts.locations#Location.DayOfWeek), \"timeOfDay\": { object (/my-business/reference/rest/v4/accounts.locations.localPosts#TimeOfDay) }, \"timeRange\": { object (/my-business/reference/rest/v4/TimeRange) } } ``` |\n\n| Fields ||\n|-------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `dayOfWeek` | `enum (`[DayOfWeek](/my-business/reference/rest/v4/accounts.locations#Location.DayOfWeek)`)` The day of the week (\"MONDAY\" to \"SUNDAY\") this value corresponds to. Set for BREAKDOWN_DAY_OF_WEEK option. |\n| `timeOfDay` | `object (`[TimeOfDay](/my-business/reference/rest/v4/accounts.locations.localPosts#TimeOfDay)`)` The hour of the day (0 to 23) this value corresponds to. Set for BREAKDOWN_HOUR_OF_DAY option. |\n| `timeRange` | `object (`[TimeRange](/my-business/reference/rest/v4/TimeRange)`)` The range of time this value covers. Set for AGGREGATED_TOTAL and AGGREGATED_DAILY options. |"]]