userver: ugrpc::QuotaFailure Struct Reference
Loading...
Searching...
No Matches
ugrpc::QuotaFailure Struct Reference

#include <userver/ugrpc/rich_status.hpp>

Detailed Description

Describes quota violations that caused the request to fail.

See also
https:///github.com/googleapis/googleapis/blob/master/google/rpc/error_details.proto
ugrpc::RichStatus

Example usage:

grpc::StatusCode::RESOURCE_EXHAUSTED,
"Quota exceeded",
{"user:alice@example.com", "Daily request quota exceeded"},
{"project:example-project", "Rate limit of 100 req/s exceeded"},
}},
};

Definition at line 180 of file rich_status.hpp.

Public Member Functions

google::rpc::QuotaFailure ToGoogleErrorDetail () const &
 
google::rpc::QuotaFailure ToGoogleErrorDetail () &&
 

Static Public Member Functions

static std::optional< QuotaFailureTryUnpack (const google::protobuf::Any &any)
 

Public Attributes

std::vector< QuotaViolationviolations
 

Member Data Documentation

◆ violations

std::vector<QuotaViolation> ugrpc::QuotaFailure::violations

Definition at line 181 of file rich_status.hpp.


The documentation for this struct was generated from the following file: