Google Analytics Admin V1beta Client - Class AccessQuota (0.19.0)

Reference documentation and code samples for the Google Analytics Admin V1beta Client class AccessQuota.

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.admin.v1beta.AccessQuota

Namespace

Google \ Analytics \ Admin \ V1beta

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ tokens_per_day Google\Analytics\Admin\V1beta\AccessQuotaStatus

Properties can use 250,000 tokens per day. Most requests consume fewer than 10 tokens.

↳ tokens_per_hour Google\Analytics\Admin\V1beta\AccessQuotaStatus

Properties can use 50,000 tokens per hour. An API request consumes a single number of tokens, and that number is deducted from all of the hourly, daily, and per project hourly quotas.

↳ concurrent_requests Google\Analytics\Admin\V1beta\AccessQuotaStatus

Properties can use up to 50 concurrent requests.

↳ server_errors_per_project_per_hour Google\Analytics\Admin\V1beta\AccessQuotaStatus

Properties and cloud project pairs can have up to 50 server errors per hour.

↳ tokens_per_project_per_hour Google\Analytics\Admin\V1beta\AccessQuotaStatus

Properties can use up to 25% of their tokens per project per hour. This amounts to Analytics 360 Properties can use 12,500 tokens per project per hour. An API request consumes a single number of tokens, and that number is deducted from all of the hourly, daily, and per project hourly quotas.

getTokensPerDay

Properties can use 250,000 tokens per day. Most requests consume fewer than 10 tokens.

Returns
TypeDescription
Google\Analytics\Admin\V1beta\AccessQuotaStatus|null

hasTokensPerDay

clearTokensPerDay

setTokensPerDay

Properties can use 250,000 tokens per day. Most requests consume fewer than 10 tokens.

Parameter
NameDescription
var Google\Analytics\Admin\V1beta\AccessQuotaStatus
Returns
TypeDescription
$this

getTokensPerHour

Properties can use 50,000 tokens per hour. An API request consumes a single number of tokens, and that number is deducted from all of the hourly, daily, and per project hourly quotas.

Returns
TypeDescription
Google\Analytics\Admin\V1beta\AccessQuotaStatus|null

hasTokensPerHour

clearTokensPerHour

setTokensPerHour

Properties can use 50,000 tokens per hour. An API request consumes a single number of tokens, and that number is deducted from all of the hourly, daily, and per project hourly quotas.

Parameter
NameDescription
var Google\Analytics\Admin\V1beta\AccessQuotaStatus
Returns
TypeDescription
$this

getConcurrentRequests

Properties can use up to 50 concurrent requests.

Returns
TypeDescription
Google\Analytics\Admin\V1beta\AccessQuotaStatus|null

hasConcurrentRequests

clearConcurrentRequests

setConcurrentRequests

Properties can use up to 50 concurrent requests.

Parameter
NameDescription
var Google\Analytics\Admin\V1beta\AccessQuotaStatus
Returns
TypeDescription
$this

getServerErrorsPerProjectPerHour

Properties and cloud project pairs can have up to 50 server errors per hour.

Returns
TypeDescription
Google\Analytics\Admin\V1beta\AccessQuotaStatus|null

hasServerErrorsPerProjectPerHour

clearServerErrorsPerProjectPerHour

setServerErrorsPerProjectPerHour

Properties and cloud project pairs can have up to 50 server errors per hour.

Parameter
NameDescription
var Google\Analytics\Admin\V1beta\AccessQuotaStatus
Returns
TypeDescription
$this

getTokensPerProjectPerHour

Properties can use up to 25% of their tokens per project per hour. This amounts to Analytics 360 Properties can use 12,500 tokens per project per hour. An API request consumes a single number of tokens, and that number is deducted from all of the hourly, daily, and per project hourly quotas.

Returns
TypeDescription
Google\Analytics\Admin\V1beta\AccessQuotaStatus|null

hasTokensPerProjectPerHour

clearTokensPerProjectPerHour

setTokensPerProjectPerHour

Properties can use up to 25% of their tokens per project per hour. This amounts to Analytics 360 Properties can use 12,500 tokens per project per hour. An API request consumes a single number of tokens, and that number is deducted from all of the hourly, daily, and per project hourly quotas.

Parameter
NameDescription
var Google\Analytics\Admin\V1beta\AccessQuotaStatus
Returns
TypeDescription
$this