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.
HTTP request
POST https://servicecontrol.googleapis.com/v1/services/{serviceName}:report
Typically the service should report one operation per request. Putting multiple operations into a single request is allowed, but should be used only when multiple operations are natually available at the time of the report.
There is no limit on the number of operations in the same ReportRequest, however the ReportRequest size should be no larger than 1MB. See ReportResponse.report_errors for partial failure behavior.
serviceConfigId
string
Specifies which version of service config should be used to process the request.
If unspecified or no matching version can be found, the latest one will be used.
Response body
If successful, the response body contains data with the following structure:
Partial failures, one for each Operation in the request that failed processing. There are three possible combinations of the RPC status:
The combination of a successful RPC status and an empty reportErrors list indicates a complete success where all Operations in the request are processed successfully.
The combination of a successful RPC status and a non-empty reportErrors list indicates a partial success where some Operations in the request succeeded. Each Operation that failed processing has a corresponding item in this list.
A failed RPC status indicates a general non-deterministic failure. When this happens, it's impossible to know which of the 'Operations' in the request succeeded or failed.
serviceConfigId
string
The actual config id used to process the request.
serviceRolloutId
string
The current service rollout id used to process the request.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-14 UTC."],[],[],null,["# Method: services.report\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n - [JSON representation](#body.request_body.SCHEMA_REPRESENTATION)\n- [Response body](#body.response_body)\n - [JSON representation](#body.ReportResponse.SCHEMA_REPRESENTATION)\n- [Authorization Scopes](#body.aspect)\n- [ReportError](#ReportError)\n - [JSON representation](#ReportError.SCHEMA_REPRESENTATION)\n\nReports operation results to Google Service Control, such as logs and metrics. It should be called after an operation is completed.\n\nIf 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.\n\nNOTE: the `ReportRequest` has the size limit (wire-format byte size) of 1MB.\n\nThis method requires the `servicemanagement.services.report` permission on the specified service. For more information, see [Google Cloud IAM](https://cloud.google.com/iam).\n\n### HTTP request\n\n`POST https://servicecontrol.googleapis.com/v1/services/{serviceName}:report`\n\nThe URL uses [gRPC Transcoding](https://github.com/googleapis/googleapis/blob/master/google/api/http.proto) syntax.\n\n### Path parameters\n\n### Request body\n\nThe request body contains data with the following structure:\n\n### Response body\n\nIf successful, the response body contains data with the following structure:\nResponse message for the services.report method.\n\n### Authorization Scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/servicecontrol`\n- `https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authentication Overview](https://cloud.google.com/docs/authentication/).\n\nReportError\n-----------\n\nRepresents the processing error of one [Operation](/service-infrastructure/docs/service-control/reference/rest/v1/Operation) in the request."]]