gogol-script-0.4.0: Google Apps Script 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.Script.Projects.GetMetrics

Contents

Description

Get metrics data for scripts, such as number of executions and active users.

See: Apps Script API Reference for script.projects.getMetrics.

Synopsis

REST Resource

type ProjectsGetMetricsResource = "v1" :> ("projects" :> (Capture "scriptId" Text :> ("metrics" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "metricsGranularity" Text :> (QueryParam "metricsFilter.deploymentId" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] Metrics))))))))))) Source #

A resource alias for script.projects.getMetrics method which the ProjectsGetMetrics request conforms to.

Creating a Request

projectsGetMetrics Source #

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

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

data ProjectsGetMetrics Source #

Get metrics data for scripts, such as number of executions and active users.

See: projectsGetMetrics smart constructor.

Instances
Eq ProjectsGetMetrics Source # 
Instance details

Defined in Network.Google.Resource.Script.Projects.GetMetrics

Data ProjectsGetMetrics Source # 
Instance details

Defined in Network.Google.Resource.Script.Projects.GetMetrics

Methods

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

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

toConstr :: ProjectsGetMetrics -> Constr #

dataTypeOf :: ProjectsGetMetrics -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ProjectsGetMetrics Source # 
Instance details

Defined in Network.Google.Resource.Script.Projects.GetMetrics

Generic ProjectsGetMetrics Source # 
Instance details

Defined in Network.Google.Resource.Script.Projects.GetMetrics

Associated Types

type Rep ProjectsGetMetrics :: Type -> Type #

GoogleRequest ProjectsGetMetrics Source # 
Instance details

Defined in Network.Google.Resource.Script.Projects.GetMetrics

Associated Types

type Rs ProjectsGetMetrics :: Type #

type Scopes ProjectsGetMetrics :: [Symbol] #

type Rep ProjectsGetMetrics Source # 
Instance details

Defined in Network.Google.Resource.Script.Projects.GetMetrics

type Rep ProjectsGetMetrics = D1 (MetaData "ProjectsGetMetrics" "Network.Google.Resource.Script.Projects.GetMetrics" "gogol-script-0.4.0-FTMJIbj3qQWJYzgfzFUSMi" False) (C1 (MetaCons "ProjectsGetMetrics'" PrefixI True) (((S1 (MetaSel (Just "_pgmXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: S1 (MetaSel (Just "_pgmUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_pgmAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pgmUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_pgmMetricsGranularity") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pgmScriptId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) :*: (S1 (MetaSel (Just "_pgmMetricsFilterDeploymentId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pgmCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes ProjectsGetMetrics Source # 
Instance details

Defined in Network.Google.Resource.Script.Projects.GetMetrics

type Scopes ProjectsGetMetrics = "https://www.googleapis.com/auth/script.metrics" ': ([] :: [Symbol])
type Rs ProjectsGetMetrics Source # 
Instance details

Defined in Network.Google.Resource.Script.Projects.GetMetrics

Request Lenses

pgmUploadProtocol :: Lens' ProjectsGetMetrics (Maybe Text) Source #

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

pgmUploadType :: Lens' ProjectsGetMetrics (Maybe Text) Source #

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

pgmMetricsGranularity :: Lens' ProjectsGetMetrics (Maybe Text) Source #

Required field indicating what granularity of metrics are returned.

pgmScriptId :: Lens' ProjectsGetMetrics Text Source #

Required field indicating the script to get metrics for.

pgmMetricsFilterDeploymentId :: Lens' ProjectsGetMetrics (Maybe Text) Source #

Optional field indicating a specific deployment to retrieve metrics from.