Reference documentation and code samples for the Cloud Monitoring V3 API class Google::Cloud::Monitoring::V3::CreateNotificationChannelRequest.
The CreateNotificationChannel request.
Inherits
Object
Extended By
Google::Protobuf::MessageExts::ClassMethods
Includes
Google::Protobuf::MessageExts
Methods
#name
defname()->::String
Returns
(::String) — Required. The
project on which
to execute the request. The format is:
projects/[PROJECT_ID_OR_NUMBER]
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.
#name=
defname=(value)->::String
Parameter
value (::String) — Required. The
project on which
to execute the request. The format is:
projects/[PROJECT_ID_OR_NUMBER]
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.
Returns
(::String) — Required. The
project on which
to execute the request. The format is:
projects/[PROJECT_ID_OR_NUMBER]
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Cloud Monitoring V3 API - Class Google::Cloud::Monitoring::V3::CreateNotificationChannelRequest (v1.6.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.6.1 (latest)](/ruby/docs/reference/google-cloud-monitoring-v3/latest/Google-Cloud-Monitoring-V3-CreateNotificationChannelRequest)\n- [1.6.0](/ruby/docs/reference/google-cloud-monitoring-v3/1.6.0/Google-Cloud-Monitoring-V3-CreateNotificationChannelRequest)\n- [1.5.1](/ruby/docs/reference/google-cloud-monitoring-v3/1.5.1/Google-Cloud-Monitoring-V3-CreateNotificationChannelRequest)\n- [1.4.0](/ruby/docs/reference/google-cloud-monitoring-v3/1.4.0/Google-Cloud-Monitoring-V3-CreateNotificationChannelRequest)\n- [1.3.0](/ruby/docs/reference/google-cloud-monitoring-v3/1.3.0/Google-Cloud-Monitoring-V3-CreateNotificationChannelRequest)\n- [1.2.0](/ruby/docs/reference/google-cloud-monitoring-v3/1.2.0/Google-Cloud-Monitoring-V3-CreateNotificationChannelRequest)\n- [1.1.0](/ruby/docs/reference/google-cloud-monitoring-v3/1.1.0/Google-Cloud-Monitoring-V3-CreateNotificationChannelRequest)\n- [1.0.1](/ruby/docs/reference/google-cloud-monitoring-v3/1.0.1/Google-Cloud-Monitoring-V3-CreateNotificationChannelRequest)\n- [0.18.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.18.0/Google-Cloud-Monitoring-V3-CreateNotificationChannelRequest)\n- [0.17.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.17.0/Google-Cloud-Monitoring-V3-CreateNotificationChannelRequest)\n- [0.16.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.16.0/Google-Cloud-Monitoring-V3-CreateNotificationChannelRequest)\n- [0.15.2](/ruby/docs/reference/google-cloud-monitoring-v3/0.15.2/Google-Cloud-Monitoring-V3-CreateNotificationChannelRequest)\n- [0.14.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.14.0/Google-Cloud-Monitoring-V3-CreateNotificationChannelRequest)\n- [0.13.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.13.0/Google-Cloud-Monitoring-V3-CreateNotificationChannelRequest)\n- [0.12.1](/ruby/docs/reference/google-cloud-monitoring-v3/0.12.1/Google-Cloud-Monitoring-V3-CreateNotificationChannelRequest)\n- [0.11.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.11.0/Google-Cloud-Monitoring-V3-CreateNotificationChannelRequest)\n- [0.10.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.10.0/Google-Cloud-Monitoring-V3-CreateNotificationChannelRequest)\n- [0.9.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.9.0/Google-Cloud-Monitoring-V3-CreateNotificationChannelRequest)\n- [0.8.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.8.0/Google-Cloud-Monitoring-V3-CreateNotificationChannelRequest)\n- [0.7.1](/ruby/docs/reference/google-cloud-monitoring-v3/0.7.1/Google-Cloud-Monitoring-V3-CreateNotificationChannelRequest) \nReference documentation and code samples for the Cloud Monitoring V3 API class Google::Cloud::Monitoring::V3::CreateNotificationChannelRequest.\n\nThe `CreateNotificationChannel` request. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #name\n\n def name() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on which to execute the request. The format is:\n\n\n projects/[PROJECT_ID_OR_NUMBER]\n\n This names the container into which the channel will be\n written, this does not name the newly created channel. The resulting\n channel's name will have a normalized version of this field as a prefix,\n but will add `/notificationChannels/[CHANNEL_ID]` to identify the channel.\n\n### #name=\n\n def name=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on which to execute the request. The format is:\n\n\n projects/[PROJECT_ID_OR_NUMBER]\n\n This names the container into which the channel will be\n written, this does not name the newly created channel. The resulting\n channel's name will have a normalized version of this field as a prefix,\nbut will add `/notificationChannels/[CHANNEL_ID]` to identify the channel. \n**Returns**\n\n- (::String) --- Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on which to execute the request. The format is:\n\n\n projects/[PROJECT_ID_OR_NUMBER]\n\n This names the container into which the channel will be\n written, this does not name the newly created channel. The resulting\n channel's name will have a normalized version of this field as a prefix,\n but will add `/notificationChannels/[CHANNEL_ID]` to identify the channel.\n\n### #notification_channel\n\n def notification_channel() -\u003e ::Google::Cloud::Monitoring::V3::NotificationChannel\n\n**Returns**\n\n- ([::Google::Cloud::Monitoring::V3::NotificationChannel](./Google-Cloud-Monitoring-V3-NotificationChannel)) --- Required. The definition of the `NotificationChannel` to create.\n\n### #notification_channel=\n\n def notification_channel=(value) -\u003e ::Google::Cloud::Monitoring::V3::NotificationChannel\n\n**Parameter**\n\n- **value** ([::Google::Cloud::Monitoring::V3::NotificationChannel](./Google-Cloud-Monitoring-V3-NotificationChannel)) --- Required. The definition of the `NotificationChannel` to create. \n**Returns**\n\n- ([::Google::Cloud::Monitoring::V3::NotificationChannel](./Google-Cloud-Monitoring-V3-NotificationChannel)) --- Required. The definition of the `NotificationChannel` to create."]]