Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
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
- 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)))))))))
- projectsNotificationChannelsCreate :: NotificationChannel -> Text -> ProjectsNotificationChannelsCreate
- data ProjectsNotificationChannelsCreate
- pnccXgafv :: Lens' ProjectsNotificationChannelsCreate (Maybe Xgafv)
- pnccUploadProtocol :: Lens' ProjectsNotificationChannelsCreate (Maybe Text)
- pnccAccessToken :: Lens' ProjectsNotificationChannelsCreate (Maybe Text)
- pnccUploadType :: Lens' ProjectsNotificationChannelsCreate (Maybe Text)
- pnccPayload :: Lens' ProjectsNotificationChannelsCreate NotificationChannel
- pnccName :: Lens' ProjectsNotificationChannelsCreate Text
- pnccCallback :: Lens' ProjectsNotificationChannelsCreate (Maybe Text)
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
Request Lenses
pnccUploadProtocol :: Lens' ProjectsNotificationChannelsCreate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pnccAccessToken :: Lens' ProjectsNotificationChannelsCreate (Maybe Text) Source #
OAuth access token.
pnccUploadType :: Lens' ProjectsNotificationChannelsCreate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pnccPayload :: Lens' ProjectsNotificationChannelsCreate NotificationChannel Source #
Multipart request metadata.
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.