gogol-monitoring-0.4.0: Google Stackdriver Monitoring 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.Monitoring.Projects.AlertPolicies.Create

Contents

Description

Creates a new alerting policy.

See: Stackdriver Monitoring API Reference for monitoring.projects.alertPolicies.create.

Synopsis

REST Resource

type ProjectsAlertPoliciesCreateResource = "v3" :> (Capture "name" Text :> ("alertPolicies" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] AlertPolicy :> Post '[JSON] AlertPolicy))))))))) Source #

A resource alias for monitoring.projects.alertPolicies.create method which the ProjectsAlertPoliciesCreate request conforms to.

Creating a Request

projectsAlertPoliciesCreate Source #

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

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

data ProjectsAlertPoliciesCreate Source #

Creates a new alerting policy.

See: projectsAlertPoliciesCreate smart constructor.

Instances
Eq ProjectsAlertPoliciesCreate Source # 
Instance details

Defined in Network.Google.Resource.Monitoring.Projects.AlertPolicies.Create

Data ProjectsAlertPoliciesCreate Source # 
Instance details

Defined in Network.Google.Resource.Monitoring.Projects.AlertPolicies.Create

Methods

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

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

toConstr :: ProjectsAlertPoliciesCreate -> Constr #

dataTypeOf :: ProjectsAlertPoliciesCreate -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ProjectsAlertPoliciesCreate Source # 
Instance details

Defined in Network.Google.Resource.Monitoring.Projects.AlertPolicies.Create

Generic ProjectsAlertPoliciesCreate Source # 
Instance details

Defined in Network.Google.Resource.Monitoring.Projects.AlertPolicies.Create

Associated Types

type Rep ProjectsAlertPoliciesCreate :: Type -> Type #

GoogleRequest ProjectsAlertPoliciesCreate Source # 
Instance details

Defined in Network.Google.Resource.Monitoring.Projects.AlertPolicies.Create

type Rep ProjectsAlertPoliciesCreate Source # 
Instance details

Defined in Network.Google.Resource.Monitoring.Projects.AlertPolicies.Create

type Rep ProjectsAlertPoliciesCreate = D1 (MetaData "ProjectsAlertPoliciesCreate" "Network.Google.Resource.Monitoring.Projects.AlertPolicies.Create" "gogol-monitoring-0.4.0-2c26UZAXxP5IDqve62RFQh" False) (C1 (MetaCons "ProjectsAlertPoliciesCreate'" PrefixI True) ((S1 (MetaSel (Just "_papcXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: (S1 (MetaSel (Just "_papcUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_papcAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_papcUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_papcPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 AlertPolicy)) :*: (S1 (MetaSel (Just "_papcName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_papcCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes ProjectsAlertPoliciesCreate Source # 
Instance details

Defined in Network.Google.Resource.Monitoring.Projects.AlertPolicies.Create

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

Defined in Network.Google.Resource.Monitoring.Projects.AlertPolicies.Create

Request Lenses

papcUploadProtocol :: Lens' ProjectsAlertPoliciesCreate (Maybe Text) Source #

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

papcUploadType :: Lens' ProjectsAlertPoliciesCreate (Maybe Text) Source #

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

papcName :: Lens' ProjectsAlertPoliciesCreate Text Source #

The project in which to create the alerting policy. The format is projects/[PROJECT_ID].Note that this field names the parent container in which the alerting policy will be written, not the name of the created policy. The alerting policy that is returned will have a name that contains a normalized representation of this name as a prefix but adds a suffix of the form /alertPolicies/[POLICY_ID], identifying the policy in the container.