public class Monitoring.Projects.AlertPolicies.Create extends MonitoringRequest<AlertPolicy>
com.google.api.client.util.GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Modifier | Constructor and Description |
|---|---|
protected |
Create(String name,
AlertPolicy content)
Creates a new alerting policy.Design your application to single-thread API calls that modify
the state of alerting policies 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, AlertPolicy 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) in which to create
the alerting policy. The format is: projects/[PROJECT_ID_OR_NUMBER] Note that this field
names the parent container in which the alerting policy will be written, not the name of
the created policy. |name| must be a host project of a Metrics Scope, otherwise
INVALID_ARGUMENT error will return. The alerting policy that is returned will have a name
that contains a normalized representation of this name as a prefix but adds a suffix of
the form /alertPolicies/[ALERT_POLICY_ID], identifying the policy in the container.content - the AlertPolicypublic Monitoring.Projects.AlertPolicies.Create set$Xgafv(String $Xgafv)
MonitoringRequestset$Xgafv in class MonitoringRequest<AlertPolicy>public Monitoring.Projects.AlertPolicies.Create setAccessToken(String accessToken)
MonitoringRequestsetAccessToken in class MonitoringRequest<AlertPolicy>public Monitoring.Projects.AlertPolicies.Create setAlt(String alt)
MonitoringRequestsetAlt in class MonitoringRequest<AlertPolicy>public Monitoring.Projects.AlertPolicies.Create setCallback(String callback)
MonitoringRequestsetCallback in class MonitoringRequest<AlertPolicy>public Monitoring.Projects.AlertPolicies.Create setFields(String fields)
MonitoringRequestsetFields in class MonitoringRequest<AlertPolicy>public Monitoring.Projects.AlertPolicies.Create setKey(String key)
MonitoringRequestsetKey in class MonitoringRequest<AlertPolicy>public Monitoring.Projects.AlertPolicies.Create setOauthToken(String oauthToken)
MonitoringRequestsetOauthToken in class MonitoringRequest<AlertPolicy>public Monitoring.Projects.AlertPolicies.Create setPrettyPrint(Boolean prettyPrint)
MonitoringRequestsetPrettyPrint in class MonitoringRequest<AlertPolicy>public Monitoring.Projects.AlertPolicies.Create setQuotaUser(String quotaUser)
MonitoringRequestsetQuotaUser in class MonitoringRequest<AlertPolicy>public Monitoring.Projects.AlertPolicies.Create setUploadType(String uploadType)
MonitoringRequestsetUploadType in class MonitoringRequest<AlertPolicy>public Monitoring.Projects.AlertPolicies.Create setUploadProtocol(String uploadProtocol)
MonitoringRequestsetUploadProtocol in class MonitoringRequest<AlertPolicy>public String getName()
public Monitoring.Projects.AlertPolicies.Create setName(String name)
public Monitoring.Projects.AlertPolicies.Create set(String parameterName, Object value)
set in class MonitoringRequest<AlertPolicy>Copyright © 2011–2025 Google. All rights reserved.