A message type used to describe a single quota violation. For example, a daily quota or a custom quota that was exceeded.
Generated from protobuf message google.rpc.QuotaFailure.Violation
| Methods |
| public __construct( $data = NULL) Constructor.
|
| public clearFutureQuotaValue() |
| public getApiService() The API Service from which the For example, if the called API is Kubernetes Engine API (container.googleapis.com), and a quota violation occurs in the Kubernetes Engine API itself, this field would be "container.googleapis.com". On the other hand, if the quota violation occurs when the Kubernetes Engine API creates VMs in the Compute Engine API (compute.googleapis.com), this field would be "compute.googleapis.com". Generated from protobuf field string api_service = 3;
|
| public getDescription() A description of how the quota check failed. Clients can use this description to find more about the quota configuration in the service's public documentation, or find the relevant quota limit to adjust through developer console. For example: "Service disabled" or "Daily Limit for read operations exceeded". Generated from protobuf field string description = 2;
|
| public getFutureQuotaValue() The new quota value being rolled out at the time of the violation. At the completion of the rollout, this value will be enforced in place of quota_value. If no rollout is in progress at the time of the violation, this field is not set. For example, if at the time of the violation a rollout is in progress changing the number of CPUs quota from 10 to 20, 20 would be the value of this field. Generated from protobuf field optional int64 future_quota_value = 8;
|
| public getQuotaDimensions() The dimensions of the violated quota. Every non-global quota is enforced on a set of dimensions. While quota metric defines what to count, the dimensions specify for what aspects the counter should be increased. For example, the quota "CPUs per region per VM family" enforces a limit on the metric "compute.googleapis.com/cpus_per_vm_family" on dimensions "region" and "vm_family". And if the violation occurred in region "us-central1" and for VM family "n1", the quota_dimensions would be, { "region": "us-central1", "vm_family": "n1", } When a quota is enforced globally, the quota_dimensions would always be empty. Generated from protobuf field map<string, string> quota_dimensions = 6;
|
| public getQuotaId() The id of the violated quota. Also know as "limit name", this is the unique identifier of a quota in the context of an API service. For example, "CPUS-PER-VM-FAMILY-per-project-region". Generated from protobuf field string quota_id = 5;
|
| public getQuotaMetric() The metric of the violated quota. A quota metric is a named counter to measure usage, such as API requests or CPUs. When an activity occurs in a service, such as Virtual Machine allocation, one or more quota metrics may be affected. For example, "compute.googleapis.com/cpus_per_vm_family", "storage.googleapis.com/internet_egress_bandwidth". Generated from protobuf field string quota_metric = 4;
|
| public getQuotaValue() The enforced quota value at the time of the For example, if the enforced quota value at the time of the
Generated from protobuf field int64 quota_value = 7;
|
| public getSubject() The subject on which the quota check failed. For example, "clientip:" or "project:<Google developer project id>". Generated from protobuf field string subject = 1;
|
| public hasFutureQuotaValue() |
| public setApiService( $var) The API Service from which the For example, if the called API is Kubernetes Engine API (container.googleapis.com), and a quota violation occurs in the Kubernetes Engine API itself, this field would be "container.googleapis.com". On the other hand, if the quota violation occurs when the Kubernetes Engine API creates VMs in the Compute Engine API (compute.googleapis.com), this field would be "compute.googleapis.com". Generated from protobuf field string api_service = 3;
|
| public setDescription( $var) A description of how the quota check failed. Clients can use this description to find more about the quota configuration in the service's public documentation, or find the relevant quota limit to adjust through developer console. For example: "Service disabled" or "Daily Limit for read operations exceeded". Generated from protobuf field string description = 2;
|
| public setFutureQuotaValue( $var) The new quota value being rolled out at the time of the violation. At the completion of the rollout, this value will be enforced in place of quota_value. If no rollout is in progress at the time of the violation, this field is not set. For example, if at the time of the violation a rollout is in progress changing the number of CPUs quota from 10 to 20, 20 would be the value of this field. Generated from protobuf field optional int64 future_quota_value = 8;
|
| public setQuotaDimensions( $var) The dimensions of the violated quota. Every non-global quota is enforced on a set of dimensions. While quota metric defines what to count, the dimensions specify for what aspects the counter should be increased. For example, the quota "CPUs per region per VM family" enforces a limit on the metric "compute.googleapis.com/cpus_per_vm_family" on dimensions "region" and "vm_family". And if the violation occurred in region "us-central1" and for VM family "n1", the quota_dimensions would be, { "region": "us-central1", "vm_family": "n1", } When a quota is enforced globally, the quota_dimensions would always be empty. Generated from protobuf field map<string, string> quota_dimensions = 6;
|
| public setQuotaId( $var) The id of the violated quota. Also know as "limit name", this is the unique identifier of a quota in the context of an API service. For example, "CPUS-PER-VM-FAMILY-per-project-region". Generated from protobuf field string quota_id = 5;
|
| public setQuotaMetric( $var) The metric of the violated quota. A quota metric is a named counter to measure usage, such as API requests or CPUs. When an activity occurs in a service, such as Virtual Machine allocation, one or more quota metrics may be affected. For example, "compute.googleapis.com/cpus_per_vm_family", "storage.googleapis.com/internet_egress_bandwidth". Generated from protobuf field string quota_metric = 4;
|
| public setQuotaValue( $var) The enforced quota value at the time of the For example, if the enforced quota value at the time of the
Generated from protobuf field int64 quota_value = 7;
|
| public setSubject( $var) The subject on which the quota check failed. For example, "clientip:" or "project:<Google developer project id>". Generated from protobuf field string subject = 1;
|
| Properties |
| protected $api_service = '' The API Service from which the For example, if the called API is Kubernetes Engine API (container.googleapis.com), and a quota violation occurs in the Kubernetes Engine API itself, this field would be "container.googleapis.com". On the other hand, if the quota violation occurs when the Kubernetes Engine API creates VMs in the Compute Engine API (compute.googleapis.com), this field would be "compute.googleapis.com". Generated from protobuf field string api_service = 3; |
| protected $description = '' A description of how the quota check failed. Clients can use this description to find more about the quota configuration in the service's public documentation, or find the relevant quota limit to adjust through developer console. For example: "Service disabled" or "Daily Limit for read operations exceeded". Generated from protobuf field string description = 2; |
| protected $future_quota_value = NULL The new quota value being rolled out at the time of the violation. At the completion of the rollout, this value will be enforced in place of quota_value. If no rollout is in progress at the time of the violation, this field is not set. For example, if at the time of the violation a rollout is in progress changing the number of CPUs quota from 10 to 20, 20 would be the value of this field. Generated from protobuf field optional int64 future_quota_value = 8; |
| protected $quota_id = '' The id of the violated quota. Also know as "limit name", this is the unique identifier of a quota in the context of an API service. For example, "CPUS-PER-VM-FAMILY-per-project-region". Generated from protobuf field string quota_id = 5; |
| protected $quota_metric = '' The metric of the violated quota. A quota metric is a named counter to measure usage, such as API requests or CPUs. When an activity occurs in a service, such as Virtual Machine allocation, one or more quota metrics may be affected. For example, "compute.googleapis.com/cpus_per_vm_family", "storage.googleapis.com/internet_egress_bandwidth". Generated from protobuf field string quota_metric = 4; |
| protected $quota_value = 0 The enforced quota value at the time of the For example, if the enforced quota value at the time of the
Generated from protobuf field int64 quota_value = 7; |
| protected $subject = '' The subject on which the quota check failed. For example, "clientip:" or "project:<Google developer project id>". Generated from protobuf field string subject = 1; |
| Methods |
| Properties |
| private $quota_dimensions = NULL The dimensions of the violated quota. Every non-global quota is enforced on a set of dimensions. While quota metric defines what to count, the dimensions specify for what aspects the counter should be increased. For example, the quota "CPUs per region per VM family" enforces a limit on the metric "compute.googleapis.com/cpus_per_vm_family" on dimensions "region" and "vm_family". And if the violation occurred in region "us-central1" and for VM family "n1", the quota_dimensions would be, { "region": "us-central1", "vm_family": "n1", } When a quota is enforced globally, the quota_dimensions would always be empty. Generated from protobuf field map<string, string> quota_dimensions = 6; |