gogol-cloudtrace-0.3.0: Google Cloud Trace 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.CloudTrace.Projects.PatchTraces

Contents

Description

Sends new traces to Stackdriver Trace or updates existing traces. If the ID of a trace that you send matches that of an existing trace, any fields in the existing trace and its spans are overwritten by the provided values, and any new fields provided are merged with the existing trace data. If the ID does not match, a new trace is created.

See: Google Cloud Trace API Reference for cloudtrace.projects.patchTraces.

Synopsis

REST Resource

type ProjectsPatchTracesResource = "v1" :> ("projects" :> (Capture "projectId" Text :> ("traces" :> (QueryParam "$.xgafv" Text :> (QueryParam "upload_protocol" Text :> (QueryParam "pp" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "bearer_token" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Traces :> Patch '[JSON] Empty)))))))))))) #

A resource alias for cloudtrace.projects.patchTraces method which the ProjectsPatchTraces request conforms to.

Creating a Request

projectsPatchTraces #

Creates a value of ProjectsPatchTraces with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data ProjectsPatchTraces #

Sends new traces to Stackdriver Trace or updates existing traces. If the ID of a trace that you send matches that of an existing trace, any fields in the existing trace and its spans are overwritten by the provided values, and any new fields provided are merged with the existing trace data. If the ID does not match, a new trace is created.

See: projectsPatchTraces smart constructor.

Instances

Eq ProjectsPatchTraces # 
Data ProjectsPatchTraces # 

Methods

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

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

toConstr :: ProjectsPatchTraces -> Constr #

dataTypeOf :: ProjectsPatchTraces -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ProjectsPatchTraces # 
Generic ProjectsPatchTraces # 
GoogleRequest ProjectsPatchTraces # 
type Rep ProjectsPatchTraces # 
type Scopes ProjectsPatchTraces # 
type Scopes ProjectsPatchTraces = (:) Symbol "https://www.googleapis.com/auth/cloud-platform" ((:) Symbol "https://www.googleapis.com/auth/trace.append" ([] Symbol))
type Rs ProjectsPatchTraces # 

Request Lenses

pptUploadProtocol :: Lens' ProjectsPatchTraces (Maybe Text) #

Upload protocol for media (e.g. "raw", "multipart").

pptPp :: Lens' ProjectsPatchTraces Bool #

Pretty-print response.

pptUploadType :: Lens' ProjectsPatchTraces (Maybe Text) #

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

pptPayload :: Lens' ProjectsPatchTraces Traces #

Multipart request metadata.

pptProjectId :: Lens' ProjectsPatchTraces Text #

ID of the Cloud project where the trace data is stored.