public class Monitoring.Projects.NotificationChannels.Create extends MonitoringRequest<NotificationChannel>
com.google.api.client.util.GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Modifier | Constructor and Description |
|---|---|
protected |
Create(String name,
NotificationChannel content)
Creates a new notification channel, representing a single notification endpoint such as an
email address, SMS number, or PagerDuty service.Design your application to single-thread API
calls that modify the state of notification channels in a single project.
|
get$Xgafv, getAbstractGoogleClient, getAccessToken, getAlt, getCallback, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUploadProtocol, getUploadType, setDisableGZipContent, setRequestHeadersgetJsonContent, newExceptionOnError, queuebuildHttpRequest, buildHttpRequestUrl, buildHttpRequestUsingHead, checkRequiredParameter, execute, executeAndDownloadTo, executeAsInputStream, executeMedia, executeMediaAndDownloadTo, executeMediaAsInputStream, executeUnparsed, executeUsingHead, getDisableGZipContent, getHttpContent, getLastResponseHeaders, getLastStatusCode, getLastStatusMessage, getMediaHttpDownloader, getMediaHttpUploader, getRequestHeaders, getRequestMethod, getResponseClass, getReturnRawInputSteam, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queue, setReturnRawInputStreamclone, entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys, toStringclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllprotected Create(String name, NotificationChannel content)
AbstractGoogleClientRequest.execute() method to invoke the remote operation.
Monitoring.initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest) must
be called to initialize this instance immediately after invoking the constructor.
name - Required. The project (https://cloud.google.com/monitoring/api/v3#project_name) 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.content - the NotificationChannelpublic Monitoring.Projects.NotificationChannels.Create set$Xgafv(String $Xgafv)
MonitoringRequestset$Xgafv in class MonitoringRequest<NotificationChannel>public Monitoring.Projects.NotificationChannels.Create setAccessToken(String accessToken)
MonitoringRequestsetAccessToken in class MonitoringRequest<NotificationChannel>public Monitoring.Projects.NotificationChannels.Create setAlt(String alt)
MonitoringRequestsetAlt in class MonitoringRequest<NotificationChannel>public Monitoring.Projects.NotificationChannels.Create setCallback(String callback)
MonitoringRequestsetCallback in class MonitoringRequest<NotificationChannel>public Monitoring.Projects.NotificationChannels.Create setFields(String fields)
MonitoringRequestsetFields in class MonitoringRequest<NotificationChannel>public Monitoring.Projects.NotificationChannels.Create setKey(String key)
MonitoringRequestsetKey in class MonitoringRequest<NotificationChannel>public Monitoring.Projects.NotificationChannels.Create setOauthToken(String oauthToken)
MonitoringRequestsetOauthToken in class MonitoringRequest<NotificationChannel>public Monitoring.Projects.NotificationChannels.Create setPrettyPrint(Boolean prettyPrint)
MonitoringRequestsetPrettyPrint in class MonitoringRequest<NotificationChannel>public Monitoring.Projects.NotificationChannels.Create setQuotaUser(String quotaUser)
MonitoringRequestsetQuotaUser in class MonitoringRequest<NotificationChannel>public Monitoring.Projects.NotificationChannels.Create setUploadType(String uploadType)
MonitoringRequestsetUploadType in class MonitoringRequest<NotificationChannel>public Monitoring.Projects.NotificationChannels.Create setUploadProtocol(String uploadProtocol)
MonitoringRequestsetUploadProtocol in class MonitoringRequest<NotificationChannel>public String getName()
public Monitoring.Projects.NotificationChannels.Create setName(String name)
public Monitoring.Projects.NotificationChannels.Create set(String parameterName, Object value)
set in class MonitoringRequest<NotificationChannel>Copyright © 2011–2025 Google. All rights reserved.