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 |
CreateProfile creates a new profile resource in the online mode. The server ensures that the new profiles are created at a constant rate per deployment, so the creation request may hang for some time until the next profile session is available. The request may fail with ABORTED error if the creation is not available within ~1m, the response will indicate the duration of the backoff the client should take before attempting creating a profile again. The backoff duration is returned in google.rpc.RetryInfo extension on the response status. To a gRPC client, the extension will be return as a binary-serialized proto in the trailing metadata item named "google.rpc.retryinfo-bin".
See: Stackdriver Profiler API Reference for cloudprofiler.projects.profiles.create
.
Synopsis
- type ProjectsProFilesCreateResource = "v2" :> (Capture "parent" Text :> ("profiles" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] CreateProFileRequest :> Post '[JSON] ProFile)))))))))
- projectsProFilesCreate :: Text -> CreateProFileRequest -> ProjectsProFilesCreate
- data ProjectsProFilesCreate
- ppfcParent :: Lens' ProjectsProFilesCreate Text
- ppfcXgafv :: Lens' ProjectsProFilesCreate (Maybe Xgafv)
- ppfcUploadProtocol :: Lens' ProjectsProFilesCreate (Maybe Text)
- ppfcAccessToken :: Lens' ProjectsProFilesCreate (Maybe Text)
- ppfcUploadType :: Lens' ProjectsProFilesCreate (Maybe Text)
- ppfcPayload :: Lens' ProjectsProFilesCreate CreateProFileRequest
- ppfcCallback :: Lens' ProjectsProFilesCreate (Maybe Text)
REST Resource
type ProjectsProFilesCreateResource = "v2" :> (Capture "parent" Text :> ("profiles" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] CreateProFileRequest :> Post '[JSON] ProFile))))))))) Source #
A resource alias for cloudprofiler.projects.profiles.create
method which the
ProjectsProFilesCreate
request conforms to.
Creating a Request
projectsProFilesCreate Source #
Creates a value of ProjectsProFilesCreate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsProFilesCreate Source #
CreateProfile creates a new profile resource in the online mode. The server ensures that the new profiles are created at a constant rate per deployment, so the creation request may hang for some time until the next profile session is available. The request may fail with ABORTED error if the creation is not available within ~1m, the response will indicate the duration of the backoff the client should take before attempting creating a profile again. The backoff duration is returned in google.rpc.RetryInfo extension on the response status. To a gRPC client, the extension will be return as a binary-serialized proto in the trailing metadata item named "google.rpc.retryinfo-bin".
See: projectsProFilesCreate
smart constructor.
Instances
Request Lenses
ppfcParent :: Lens' ProjectsProFilesCreate Text Source #
Parent project to create the profile in.
ppfcUploadProtocol :: Lens' ProjectsProFilesCreate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
ppfcAccessToken :: Lens' ProjectsProFilesCreate (Maybe Text) Source #
OAuth access token.
ppfcUploadType :: Lens' ProjectsProFilesCreate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
ppfcPayload :: Lens' ProjectsProFilesCreate CreateProFileRequest Source #
Multipart request metadata.
ppfcCallback :: Lens' ProjectsProFilesCreate (Maybe Text) Source #
JSONP