gogol-servicecontrol-0.4.0: Google Service Control 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.ServiceControl.Services.Report

Contents

Description

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

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

servicesReport Source #

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

Defined in Network.Google.Resource.ServiceControl.Services.Report

Data ServicesReport Source # 
Instance details

Defined in Network.Google.Resource.ServiceControl.Services.Report

Methods

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

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

toConstr :: ServicesReport -> Constr #

dataTypeOf :: ServicesReport -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ServicesReport Source # 
Instance details

Defined in Network.Google.Resource.ServiceControl.Services.Report

Generic ServicesReport Source # 
Instance details

Defined in Network.Google.Resource.ServiceControl.Services.Report

Associated Types

type Rep ServicesReport :: Type -> Type #

GoogleRequest ServicesReport Source # 
Instance details

Defined in Network.Google.Resource.ServiceControl.Services.Report

Associated Types

type Rs ServicesReport :: Type #

type Scopes ServicesReport :: [Symbol] #

type Rep ServicesReport Source # 
Instance details

Defined in Network.Google.Resource.ServiceControl.Services.Report

type Rep ServicesReport = D1 (MetaData "ServicesReport" "Network.Google.Resource.ServiceControl.Services.Report" "gogol-servicecontrol-0.4.0-7Bdn4PUGU21DcIBLYz37iX" False) (C1 (MetaCons "ServicesReport'" PrefixI True) ((S1 (MetaSel (Just "_srXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: (S1 (MetaSel (Just "_srUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_srAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_srUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_srPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 ReportRequest)) :*: (S1 (MetaSel (Just "_srServiceName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_srCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes ServicesReport Source # 
Instance details

Defined in Network.Google.Resource.ServiceControl.Services.Report

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

Defined in Network.Google.Resource.ServiceControl.Services.Report

Request Lenses

srUploadProtocol :: Lens' ServicesReport (Maybe Text) Source #

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

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.