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.NotificationChannels.Create

Contents

Description

Creates a new notification channel, representing a single notification endpoint such as an email address, SMS number, or PagerDuty service.

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

Synopsis

REST Resource

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

A resource alias for monitoring.projects.notificationChannels.create method which the ProjectsNotificationChannelsCreate request conforms to.

Creating a Request

projectsNotificationChannelsCreate Source #

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

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

data ProjectsNotificationChannelsCreate Source #

Creates a new notification channel, representing a single notification endpoint such as an email address, SMS number, or PagerDuty service.

See: projectsNotificationChannelsCreate smart constructor.

Instances
Eq ProjectsNotificationChannelsCreate Source # 
Instance details

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

Data ProjectsNotificationChannelsCreate Source # 
Instance details

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

Methods

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

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

toConstr :: ProjectsNotificationChannelsCreate -> Constr #

dataTypeOf :: ProjectsNotificationChannelsCreate -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ProjectsNotificationChannelsCreate Source # 
Instance details

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

Generic ProjectsNotificationChannelsCreate Source # 
Instance details

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

Associated Types

type Rep ProjectsNotificationChannelsCreate :: Type -> Type #

GoogleRequest ProjectsNotificationChannelsCreate Source # 
Instance details

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

type Rep ProjectsNotificationChannelsCreate Source # 
Instance details

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

type Rep ProjectsNotificationChannelsCreate = D1 (MetaData "ProjectsNotificationChannelsCreate" "Network.Google.Resource.Monitoring.Projects.NotificationChannels.Create" "gogol-monitoring-0.4.0-2c26UZAXxP5IDqve62RFQh" False) (C1 (MetaCons "ProjectsNotificationChannelsCreate'" PrefixI True) ((S1 (MetaSel (Just "_pnccXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: (S1 (MetaSel (Just "_pnccUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pnccAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_pnccUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pnccPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 NotificationChannel)) :*: (S1 (MetaSel (Just "_pnccName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_pnccCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes ProjectsNotificationChannelsCreate Source # 
Instance details

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

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

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

Request Lenses

pnccUploadProtocol :: Lens' ProjectsNotificationChannelsCreate (Maybe Text) Source #

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

pnccUploadType :: Lens' ProjectsNotificationChannelsCreate (Maybe Text) Source #

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

pnccName :: Lens' ProjectsNotificationChannelsCreate Text Source #

The project on which to execute the request. The format is: projects/[PROJECT_ID] Note that this names the container into which the channel will be written. This does not name the newly created channel. The resulting channel's name will have a normalized version of this field as a prefix, but will add /notificationChannels/[CHANNEL_ID] to identify the channel.