gogol-pagespeed-0.4.0: Google PageSpeed Insights 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.PagespeedOnline.PagespeedAPI.RunPagespeed

Contents

Description

Runs PageSpeed analysis on the page at the specified URL, and returns PageSpeed scores, a list of suggestions to make that page faster, and other information.

See: PageSpeed Insights API Reference for pagespeedonline.pagespeedapi.runpagespeed.

Synopsis

REST Resource

type PagespeedAPIRunPagespeedResource = "pagespeedonline" :> ("v5" :> ("runPagespeed" :> (QueryParam "url" Text :> (QueryParam "utm_campaign" Text :> (QueryParam "locale" Text :> (QueryParams "category" PagespeedAPIRunPagespeedCategory :> (QueryParam "strategy" PagespeedAPIRunPagespeedStrategy :> (QueryParam "utm_source" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] PagespeedAPIPagespeedResponseV5))))))))) Source #

A resource alias for pagespeedonline.pagespeedapi.runpagespeed method which the PagespeedAPIRunPagespeed request conforms to.

Creating a Request

pagespeedAPIRunPagespeed Source #

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

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

data PagespeedAPIRunPagespeed Source #

Runs PageSpeed analysis on the page at the specified URL, and returns PageSpeed scores, a list of suggestions to make that page faster, and other information.

See: pagespeedAPIRunPagespeed smart constructor.

Instances
Eq PagespeedAPIRunPagespeed Source # 
Instance details

Defined in Network.Google.Resource.PagespeedOnline.PagespeedAPI.RunPagespeed

Data PagespeedAPIRunPagespeed Source # 
Instance details

Defined in Network.Google.Resource.PagespeedOnline.PagespeedAPI.RunPagespeed

Methods

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

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

toConstr :: PagespeedAPIRunPagespeed -> Constr #

dataTypeOf :: PagespeedAPIRunPagespeed -> DataType #

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

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

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

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

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

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

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

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

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

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

Show PagespeedAPIRunPagespeed Source # 
Instance details

Defined in Network.Google.Resource.PagespeedOnline.PagespeedAPI.RunPagespeed

Generic PagespeedAPIRunPagespeed Source # 
Instance details

Defined in Network.Google.Resource.PagespeedOnline.PagespeedAPI.RunPagespeed

Associated Types

type Rep PagespeedAPIRunPagespeed :: Type -> Type #

GoogleRequest PagespeedAPIRunPagespeed Source # 
Instance details

Defined in Network.Google.Resource.PagespeedOnline.PagespeedAPI.RunPagespeed

type Rep PagespeedAPIRunPagespeed Source # 
Instance details

Defined in Network.Google.Resource.PagespeedOnline.PagespeedAPI.RunPagespeed

type Rep PagespeedAPIRunPagespeed = D1 (MetaData "PagespeedAPIRunPagespeed" "Network.Google.Resource.PagespeedOnline.PagespeedAPI.RunPagespeed" "gogol-pagespeed-0.4.0-7WtThApEGYk4TnkQhzuhcc" False) (C1 (MetaCons "PagespeedAPIRunPagespeed'" PrefixI True) ((S1 (MetaSel (Just "_parpUtmCampaign") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_parpLocale") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_parpCategory") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [PagespeedAPIRunPagespeedCategory])))) :*: (S1 (MetaSel (Just "_parpURL") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: (S1 (MetaSel (Just "_parpStrategy") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe PagespeedAPIRunPagespeedStrategy)) :*: S1 (MetaSel (Just "_parpUtmSource") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes PagespeedAPIRunPagespeed Source # 
Instance details

Defined in Network.Google.Resource.PagespeedOnline.PagespeedAPI.RunPagespeed

type Rs PagespeedAPIRunPagespeed Source # 
Instance details

Defined in Network.Google.Resource.PagespeedOnline.PagespeedAPI.RunPagespeed

Request Lenses

parpLocale :: Lens' PagespeedAPIRunPagespeed (Maybe Text) Source #

The locale used to localize formatted results

parpCategory :: Lens' PagespeedAPIRunPagespeed [PagespeedAPIRunPagespeedCategory] Source #

A Lighthouse category to run; if none are given, only Performance category will be run

parpURL :: Lens' PagespeedAPIRunPagespeed Text Source #

The URL to fetch and analyze

parpStrategy :: Lens' PagespeedAPIRunPagespeed (Maybe PagespeedAPIRunPagespeedStrategy) Source #

The analysis strategy (desktop or mobile) to use, and desktop is the default

parpUtmSource :: Lens' PagespeedAPIRunPagespeed (Maybe Text) Source #

Campaign source for analytics.