Reference documentation and code samples for the Google Analytics Data V1alpha Client class PropertyQuota.
Current state of all quotas for this Analytics Property. If any quota for a property is exhausted, all requests to that property will return Resource Exhausted errors.
Generated from protobuf message google.analytics.data.v1alpha.PropertyQuota
Namespace
Google \ Analytics \ Data \ V1alphaMethods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ tokens_per_day |
Google\Analytics\Data\V1alpha\QuotaStatus
Standard Analytics Properties can use up to 25,000 tokens per day; Analytics 360 Properties can use 250,000 tokens per day. Most requests consume fewer than 10 tokens. |
↳ tokens_per_hour |
Google\Analytics\Data\V1alpha\QuotaStatus
Standard Analytics Properties can use up to 5,000 tokens per day; Analytics 360 Properties can use 50,000 tokens per day. An API request consumes a single number of tokens, and that number is deducted from both the hourly and daily quotas. |
↳ concurrent_requests |
Google\Analytics\Data\V1alpha\QuotaStatus
Standard Analytics Properties can send up to 10 concurrent requests; Analytics 360 Properties can use up to 50 concurrent requests. |
↳ server_errors_per_project_per_hour |
Google\Analytics\Data\V1alpha\QuotaStatus
Standard Analytics Properties and cloud project pairs can have up to 10 server errors per hour; Analytics 360 Properties and cloud project pairs can have up to 50 server errors per hour. |
getTokensPerDay
Standard Analytics Properties can use up to 25,000 tokens per day; Analytics 360 Properties can use 250,000 tokens per day. Most requests consume fewer than 10 tokens.
Returns | |
---|---|
Type | Description |
Google\Analytics\Data\V1alpha\QuotaStatus|null |
hasTokensPerDay
clearTokensPerDay
setTokensPerDay
Standard Analytics Properties can use up to 25,000 tokens per day; Analytics 360 Properties can use 250,000 tokens per day. Most requests consume fewer than 10 tokens.
Parameter | |
---|---|
Name | Description |
var |
Google\Analytics\Data\V1alpha\QuotaStatus
|
Returns | |
---|---|
Type | Description |
$this |
getTokensPerHour
Standard Analytics Properties can use up to 5,000 tokens per day; Analytics 360 Properties can use 50,000 tokens per day. An API request consumes a single number of tokens, and that number is deducted from both the hourly and daily quotas.
Returns | |
---|---|
Type | Description |
Google\Analytics\Data\V1alpha\QuotaStatus|null |
hasTokensPerHour
clearTokensPerHour
setTokensPerHour
Standard Analytics Properties can use up to 5,000 tokens per day; Analytics 360 Properties can use 50,000 tokens per day. An API request consumes a single number of tokens, and that number is deducted from both the hourly and daily quotas.
Parameter | |
---|---|
Name | Description |
var |
Google\Analytics\Data\V1alpha\QuotaStatus
|
Returns | |
---|---|
Type | Description |
$this |
getConcurrentRequests
Standard Analytics Properties can send up to 10 concurrent requests; Analytics 360 Properties can use up to 50 concurrent requests.
Returns | |
---|---|
Type | Description |
Google\Analytics\Data\V1alpha\QuotaStatus|null |
hasConcurrentRequests
clearConcurrentRequests
setConcurrentRequests
Standard Analytics Properties can send up to 10 concurrent requests; Analytics 360 Properties can use up to 50 concurrent requests.
Parameter | |
---|---|
Name | Description |
var |
Google\Analytics\Data\V1alpha\QuotaStatus
|
Returns | |
---|---|
Type | Description |
$this |
getServerErrorsPerProjectPerHour
Standard Analytics Properties and cloud project pairs can have up to 10 server errors per hour; Analytics 360 Properties and cloud project pairs can have up to 50 server errors per hour.
Returns | |
---|---|
Type | Description |
Google\Analytics\Data\V1alpha\QuotaStatus|null |
hasServerErrorsPerProjectPerHour
clearServerErrorsPerProjectPerHour
setServerErrorsPerProjectPerHour
Standard Analytics Properties and cloud project pairs can have up to 10 server errors per hour; Analytics 360 Properties and cloud project pairs can have up to 50 server errors per hour.
Parameter | |
---|---|
Name | Description |
var |
Google\Analytics\Data\V1alpha\QuotaStatus
|
Returns | |
---|---|
Type | Description |
$this |