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 |
Report an individual error event. This endpoint accepts **either** an OAuth token, **or** an API key for authentication. To use an API key, append it to the URL as the value of a `key` parameter. For example: `POST https://clouderrorreporting.googleapis.com/v1beta1/projects/example-project/events:report?key=123ABC456`
See: Stackdriver Error Reporting API Reference for clouderrorreporting.projects.events.report
.
Synopsis
- type ProjectsEventsReportResource = "v1beta1" :> (Capture "projectName" Text :> ("events:report" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] ReportedErrorEvent :> Post '[JSON] ReportErrorEventResponse)))))))))
- projectsEventsReport :: ReportedErrorEvent -> Text -> ProjectsEventsReport
- data ProjectsEventsReport
- perXgafv :: Lens' ProjectsEventsReport (Maybe Xgafv)
- perUploadProtocol :: Lens' ProjectsEventsReport (Maybe Text)
- perAccessToken :: Lens' ProjectsEventsReport (Maybe Text)
- perUploadType :: Lens' ProjectsEventsReport (Maybe Text)
- perPayload :: Lens' ProjectsEventsReport ReportedErrorEvent
- perProjectName :: Lens' ProjectsEventsReport Text
- perCallback :: Lens' ProjectsEventsReport (Maybe Text)
REST Resource
type ProjectsEventsReportResource = "v1beta1" :> (Capture "projectName" Text :> ("events:report" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] ReportedErrorEvent :> Post '[JSON] ReportErrorEventResponse))))))))) Source #
A resource alias for clouderrorreporting.projects.events.report
method which the
ProjectsEventsReport
request conforms to.
Creating a Request
Creates a value of ProjectsEventsReport
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsEventsReport Source #
Report an individual error event. This endpoint accepts **either** an OAuth token, **or** an API key for authentication. To use an API key, append it to the URL as the value of a `key` parameter. For example: `POST https://clouderrorreporting.googleapis.com/v1beta1/projects/example-project/events:report?key=123ABC456`
See: projectsEventsReport
smart constructor.
Instances
Request Lenses
perUploadProtocol :: Lens' ProjectsEventsReport (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
perAccessToken :: Lens' ProjectsEventsReport (Maybe Text) Source #
OAuth access token.
perUploadType :: Lens' ProjectsEventsReport (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
perPayload :: Lens' ProjectsEventsReport ReportedErrorEvent Source #
Multipart request metadata.
perProjectName :: Lens' ProjectsEventsReport Text Source #
- Required
- The resource name of the Google Cloud Platform project. Written as `projects/` plus the Google Cloud Platform project ID. Example: `projects/my-project-123`.
perCallback :: Lens' ProjectsEventsReport (Maybe Text) Source #
JSONP