public class Script.Projects.GetMetrics extends ScriptRequest<Metrics>
com.google.api.client.util.GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Modifier | Constructor and Description |
---|---|
protected |
GetMetrics(String scriptId)
Get metrics data for scripts, such as number of executions and active users.
|
Modifier and Type | Method and Description |
---|---|
com.google.api.client.http.HttpRequest |
buildHttpRequestUsingHead() |
com.google.api.client.http.HttpResponse |
executeUsingHead() |
String |
getMetricsFilterDeploymentId()
Optional field indicating a specific deployment to retrieve metrics from.
|
String |
getMetricsGranularity()
Required field indicating what granularity of metrics are returned.
|
String |
getScriptId()
Required field indicating the script to get metrics for.
|
Script.Projects.GetMetrics |
set(String parameterName,
Object value) |
Script.Projects.GetMetrics |
set$Xgafv(String $Xgafv)
V1 error format.
|
Script.Projects.GetMetrics |
setAccessToken(String accessToken)
OAuth access token.
|
Script.Projects.GetMetrics |
setAlt(String alt)
Data format for response.
|
Script.Projects.GetMetrics |
setCallback(String callback)
JSONP
|
Script.Projects.GetMetrics |
setFields(String fields)
Selector specifying which fields to include in a partial response.
|
Script.Projects.GetMetrics |
setKey(String key)
API key.
|
Script.Projects.GetMetrics |
setMetricsFilterDeploymentId(String metricsFilterDeploymentId)
Optional field indicating a specific deployment to retrieve metrics from.
|
Script.Projects.GetMetrics |
setMetricsGranularity(String metricsGranularity)
Required field indicating what granularity of metrics are returned.
|
Script.Projects.GetMetrics |
setOauthToken(String oauthToken)
OAuth 2.0 token for the current user.
|
Script.Projects.GetMetrics |
setPrettyPrint(Boolean prettyPrint)
Returns response with indentations and line breaks.
|
Script.Projects.GetMetrics |
setQuotaUser(String quotaUser)
Available to use for quota purposes for server-side applications.
|
Script.Projects.GetMetrics |
setScriptId(String scriptId)
Required field indicating the script to get metrics for.
|
Script.Projects.GetMetrics |
setUploadProtocol(String uploadProtocol)
Upload protocol for media (e.g.
|
Script.Projects.GetMetrics |
setUploadType(String uploadType)
Legacy upload protocol for media (e.g.
|
get$Xgafv, getAbstractGoogleClient, getAccessToken, getAlt, getCallback, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUploadProtocol, getUploadType, setDisableGZipContent, setRequestHeaders
getJsonContent, newExceptionOnError, queue
buildHttpRequest, buildHttpRequestUrl, checkRequiredParameter, execute, executeAndDownloadTo, executeAsInputStream, executeMedia, executeMediaAndDownloadTo, executeMediaAsInputStream, executeUnparsed, getDisableGZipContent, getHttpContent, getLastResponseHeaders, getLastStatusCode, getLastStatusMessage, getMediaHttpDownloader, getMediaHttpUploader, getRequestHeaders, getRequestMethod, getResponseClass, getReturnRawInputSteam, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queue, setReturnRawInputStream
clone, entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys, toString
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
protected GetMetrics(String scriptId)
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
Script.initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)
must be called to initialize this instance immediately after invoking the constructor.
scriptId
- Required field indicating the script to get metrics for.public com.google.api.client.http.HttpResponse executeUsingHead() throws IOException
executeUsingHead
in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<Metrics>
IOException
public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws IOException
buildHttpRequestUsingHead
in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<Metrics>
IOException
public Script.Projects.GetMetrics set$Xgafv(String $Xgafv)
ScriptRequest
set$Xgafv
in class ScriptRequest<Metrics>
public Script.Projects.GetMetrics setAccessToken(String accessToken)
ScriptRequest
setAccessToken
in class ScriptRequest<Metrics>
public Script.Projects.GetMetrics setAlt(String alt)
ScriptRequest
setAlt
in class ScriptRequest<Metrics>
public Script.Projects.GetMetrics setCallback(String callback)
ScriptRequest
setCallback
in class ScriptRequest<Metrics>
public Script.Projects.GetMetrics setFields(String fields)
ScriptRequest
setFields
in class ScriptRequest<Metrics>
public Script.Projects.GetMetrics setKey(String key)
ScriptRequest
setKey
in class ScriptRequest<Metrics>
public Script.Projects.GetMetrics setOauthToken(String oauthToken)
ScriptRequest
setOauthToken
in class ScriptRequest<Metrics>
public Script.Projects.GetMetrics setPrettyPrint(Boolean prettyPrint)
ScriptRequest
setPrettyPrint
in class ScriptRequest<Metrics>
public Script.Projects.GetMetrics setQuotaUser(String quotaUser)
ScriptRequest
setQuotaUser
in class ScriptRequest<Metrics>
public Script.Projects.GetMetrics setUploadType(String uploadType)
ScriptRequest
setUploadType
in class ScriptRequest<Metrics>
public Script.Projects.GetMetrics setUploadProtocol(String uploadProtocol)
ScriptRequest
setUploadProtocol
in class ScriptRequest<Metrics>
public String getScriptId()
public Script.Projects.GetMetrics setScriptId(String scriptId)
public String getMetricsFilterDeploymentId()
public Script.Projects.GetMetrics setMetricsFilterDeploymentId(String metricsFilterDeploymentId)
public String getMetricsGranularity()
public Script.Projects.GetMetrics setMetricsGranularity(String metricsGranularity)
public Script.Projects.GetMetrics set(String parameterName, Object value)
set
in class ScriptRequest<Metrics>
Copyright © 2011–2024 Google. All rights reserved.