Reference documentation and code samples for the Stackdriver Monitoring V3 Client class DeleteNotificationChannelRequest.
The DeleteNotificationChannel request.
Generated from protobuf message google.monitoring.v3.DeleteNotificationChannelRequest
Namespace
Google \ Cloud \ Monitoring \ V3
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ name
string
Required. The channel for which to execute the request. The format is: projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
↳ force
bool
If true, the notification channel will be deleted regardless of its use in alert policies (the policies will be updated to remove the channel). If false, this operation will fail if the notification channel is referenced by existing alerting policies.
getName
Required. The channel for which to execute the request. The format is:
projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
Returns
Type
Description
string
setName
Required. The channel for which to execute the request. The format is:
projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getForce
If true, the notification channel will be deleted regardless of its
use in alert policies (the policies will be updated to remove the
channel). If false, this operation will fail if the notification channel
is referenced by existing alerting policies.
Returns
Type
Description
bool
setForce
If true, the notification channel will be deleted regardless of its
use in alert policies (the policies will be updated to remove the
channel). If false, this operation will fail if the notification channel
is referenced by existing alerting policies.
Parameter
Name
Description
var
bool
Returns
Type
Description
$this
static::build
Parameters
Name
Description
name
string
Required. The channel for which to execute the request. The format is:
projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
Please see NotificationChannelServiceClient::notificationChannelName() for help formatting this field.
force
bool
If true, the notification channel will be deleted regardless of its
use in alert policies (the policies will be updated to remove the
channel). If false, this operation will fail if the notification channel
is referenced by existing alerting policies.
[[["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,["# Stackdriver Monitoring V3 Client - Class DeleteNotificationChannelRequest (2.1.2)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.2 (latest)](/php/docs/reference/cloud-monitoring/latest/V3.DeleteNotificationChannelRequest)\n- [2.1.1](/php/docs/reference/cloud-monitoring/2.1.1/V3.DeleteNotificationChannelRequest)\n- [2.0.1](/php/docs/reference/cloud-monitoring/2.0.1/V3.DeleteNotificationChannelRequest)\n- [1.12.1](/php/docs/reference/cloud-monitoring/1.12.1/V3.DeleteNotificationChannelRequest)\n- [1.11.1](/php/docs/reference/cloud-monitoring/1.11.1/V3.DeleteNotificationChannelRequest)\n- [1.10.3](/php/docs/reference/cloud-monitoring/1.10.3/V3.DeleteNotificationChannelRequest)\n- [1.9.0](/php/docs/reference/cloud-monitoring/1.9.0/V3.DeleteNotificationChannelRequest)\n- [1.8.0](/php/docs/reference/cloud-monitoring/1.8.0/V3.DeleteNotificationChannelRequest)\n- [1.7.1](/php/docs/reference/cloud-monitoring/1.7.1/V3.DeleteNotificationChannelRequest)\n- [1.6.0](/php/docs/reference/cloud-monitoring/1.6.0/V3.DeleteNotificationChannelRequest)\n- [1.5.1](/php/docs/reference/cloud-monitoring/1.5.1/V3.DeleteNotificationChannelRequest)\n- [1.4.0](/php/docs/reference/cloud-monitoring/1.4.0/V3.DeleteNotificationChannelRequest)\n- [1.3.2](/php/docs/reference/cloud-monitoring/1.3.2/V3.DeleteNotificationChannelRequest)\n- [1.2.2](/php/docs/reference/cloud-monitoring/1.2.2/V3.DeleteNotificationChannelRequest) \nReference documentation and code samples for the Stackdriver Monitoring V3 Client class DeleteNotificationChannelRequest.\n\nThe `DeleteNotificationChannel` request.\n\nGenerated from protobuf message `google.monitoring.v3.DeleteNotificationChannelRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Monitoring \\\\ V3\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nRequired. The channel for which to execute the request. The format is:\nprojects/\\[PROJECT_ID_OR_NUMBER\\]/notificationChannels/\\[CHANNEL_ID\\]\n\n### setName\n\nRequired. The channel for which to execute the request. The format is:\nprojects/\\[PROJECT_ID_OR_NUMBER\\]/notificationChannels/\\[CHANNEL_ID\\]\n\n### getForce\n\nIf true, the notification channel will be deleted regardless of its\nuse in alert policies (the policies will be updated to remove the\nchannel). If false, this operation will fail if the notification channel\nis referenced by existing alerting policies.\n\n### setForce\n\nIf true, the notification channel will be deleted regardless of its\nuse in alert policies (the policies will be updated to remove the\nchannel). If false, this operation will fail if the notification channel\nis referenced by existing alerting policies.\n\n### static::build"]]