Class ServicesResource.ReportRequest
Reports operation results to Google Service Control, such as logs and metrics. It should be called after an
operation is completed. If feasible, the client should aggregate reporting data for up to 5 seconds to
reduce API traffic. Limiting aggregation to 5 seconds is to reduce data loss during client crashes. Clients
should carefully choose the aggregation time window to avoid data loss risk more than 0.01% for business and
compliance reasons. NOTE: the ReportRequest has the size limit (wire-format byte size) of 1MB. This method
requires the servicemanagement.services.report
permission on the specified service. For more information,
see Google Cloud IAM.
Inheritance
Inherited Members
Namespace: Google.Apis.ServiceControl.v1
Assembly: Google.Apis.ServiceControl.v1.dll
Syntax
public class ServicesResource.ReportRequest : ServiceControlBaseServiceRequest<ReportResponse>, IClientServiceRequest<ReportResponse>, IClientServiceRequest
Constructors
ReportRequest(IClientService, ReportRequest, string)
Constructs a new Report request.
Declaration
public ReportRequest(IClientService service, ReportRequest body, string serviceName)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
ReportRequest | body | |
string | serviceName |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
ServiceName
The service name as specified in its service configuration. For example, "pubsub.googleapis.com"
. See
google.api.Service
for the definition of a service name.
Declaration
[RequestParameter("serviceName", RequestParameterType.Path)]
public virtual string ServiceName { get; }
Property Value
Type | Description |
---|---|
string |
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
InitParameters()
Initializes Report parameter list.
Declaration
protected override void InitParameters()