gogol-cloudprofiler-0.4.0: Google Stackdriver Profiler SDK.

Copyright(c) 2015-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.CloudProFiler.Projects.ProFiles.Create

Contents

Description

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

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
Eq ProjectsProFilesCreate Source # 
Instance details

Defined in Network.Google.Resource.CloudProFiler.Projects.ProFiles.Create

Data ProjectsProFilesCreate Source # 
Instance details

Defined in Network.Google.Resource.CloudProFiler.Projects.ProFiles.Create

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ProjectsProFilesCreate -> c ProjectsProFilesCreate #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ProjectsProFilesCreate #

toConstr :: ProjectsProFilesCreate -> Constr #

dataTypeOf :: ProjectsProFilesCreate -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ProjectsProFilesCreate) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ProjectsProFilesCreate) #

gmapT :: (forall b. Data b => b -> b) -> ProjectsProFilesCreate -> ProjectsProFilesCreate #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ProjectsProFilesCreate -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ProjectsProFilesCreate -> r #

gmapQ :: (forall d. Data d => d -> u) -> ProjectsProFilesCreate -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ProjectsProFilesCreate -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ProjectsProFilesCreate -> m ProjectsProFilesCreate #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ProjectsProFilesCreate -> m ProjectsProFilesCreate #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ProjectsProFilesCreate -> m ProjectsProFilesCreate #

Show ProjectsProFilesCreate Source # 
Instance details

Defined in Network.Google.Resource.CloudProFiler.Projects.ProFiles.Create

Generic ProjectsProFilesCreate Source # 
Instance details

Defined in Network.Google.Resource.CloudProFiler.Projects.ProFiles.Create

Associated Types

type Rep ProjectsProFilesCreate :: Type -> Type #

GoogleRequest ProjectsProFilesCreate Source # 
Instance details

Defined in Network.Google.Resource.CloudProFiler.Projects.ProFiles.Create

type Rep ProjectsProFilesCreate Source # 
Instance details

Defined in Network.Google.Resource.CloudProFiler.Projects.ProFiles.Create

type Rep ProjectsProFilesCreate = D1 (MetaData "ProjectsProFilesCreate" "Network.Google.Resource.CloudProFiler.Projects.ProFiles.Create" "gogol-cloudprofiler-0.4.0-AtaW9VVG1eMKTsQruh5k45" False) (C1 (MetaCons "ProjectsProFilesCreate'" PrefixI True) ((S1 (MetaSel (Just "_ppfcParent") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: (S1 (MetaSel (Just "_ppfcXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: S1 (MetaSel (Just "_ppfcUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_ppfcAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_ppfcUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_ppfcPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 CreateProFileRequest) :*: S1 (MetaSel (Just "_ppfcCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes ProjectsProFilesCreate Source # 
Instance details

Defined in Network.Google.Resource.CloudProFiler.Projects.ProFiles.Create

type Scopes ProjectsProFilesCreate = "https://www.googleapis.com/auth/cloud-platform" ': ("https://www.googleapis.com/auth/monitoring" ': ("https://www.googleapis.com/auth/monitoring.write" ': ([] :: [Symbol])))
type Rs ProjectsProFilesCreate Source # 
Instance details

Defined in Network.Google.Resource.CloudProFiler.Projects.ProFiles.Create

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").

ppfcUploadType :: Lens' ProjectsProFilesCreate (Maybe Text) Source #

Legacy upload protocol for media (e.g. "media", "multipart").