Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
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 of 1MB. This method requires the `servicemanagement.services.report` permission on the specified service. For more information, see Google Cloud IAM.
See: Service Control API Reference for servicecontrol.services.report
.
Synopsis
- type ServicesReportResource = "v1" :> ("services" :> (CaptureMode "serviceName" "report" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] ReportRequest :> Post '[JSON] ReportResponse)))))))))
- servicesReport :: ReportRequest -> Text -> ServicesReport
- data ServicesReport
- srXgafv :: Lens' ServicesReport (Maybe Xgafv)
- srUploadProtocol :: Lens' ServicesReport (Maybe Text)
- srAccessToken :: Lens' ServicesReport (Maybe Text)
- srUploadType :: Lens' ServicesReport (Maybe Text)
- srPayload :: Lens' ServicesReport ReportRequest
- srServiceName :: Lens' ServicesReport Text
- srCallback :: Lens' ServicesReport (Maybe Text)
REST Resource
type ServicesReportResource = "v1" :> ("services" :> (CaptureMode "serviceName" "report" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] ReportRequest :> Post '[JSON] ReportResponse))))))))) Source #
A resource alias for servicecontrol.services.report
method which the
ServicesReport
request conforms to.
Creating a Request
Creates a value of ServicesReport
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ServicesReport Source #
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 of 1MB. This method requires the `servicemanagement.services.report` permission on the specified service. For more information, see Google Cloud IAM.
See: servicesReport
smart constructor.
Instances
Request Lenses
srUploadProtocol :: Lens' ServicesReport (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
srAccessToken :: Lens' ServicesReport (Maybe Text) Source #
OAuth access token.
srUploadType :: Lens' ServicesReport (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
srPayload :: Lens' ServicesReport ReportRequest Source #
Multipart request metadata.
srServiceName :: Lens' ServicesReport Text Source #
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.
srCallback :: Lens' ServicesReport (Maybe Text) Source #
JSONP