Class ProjectsResource.GetMetricsRequest
Get metrics data for scripts, such as number of executions and active users.
Inheritance
ProjectsResource.GetMetricsRequest
Inherited Members
Namespace: Google.Apis.Script.v1
Assembly: Google.Apis.Script.v1.dll
Syntax
public class ProjectsResource.GetMetricsRequest : ScriptBaseServiceRequest<Metrics>, IClientServiceRequest<Metrics>, IClientServiceRequest
Constructors
GetMetricsRequest(IClientService, string)
Constructs a new GetMetrics request.
Declaration
public GetMetricsRequest(IClientService service, string scriptId)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
string | scriptId |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Script.v1.Data.Metrics>.HttpMethod
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Script.v1.Data.Metrics>.MethodName
MetricsFilterDeploymentId
Optional field indicating a specific deployment to retrieve metrics from.
Declaration
[RequestParameter("metricsFilter.deploymentId", RequestParameterType.Query)]
public virtual string MetricsFilterDeploymentId { get; set; }
Property Value
Type | Description |
---|---|
string |
MetricsGranularity
Required field indicating what granularity of metrics are returned.
Declaration
[RequestParameter("metricsGranularity", RequestParameterType.Query)]
public virtual ProjectsResource.GetMetricsRequest.MetricsGranularityEnum? MetricsGranularity { get; set; }
Property Value
Type | Description |
---|---|
ProjectsResource.GetMetricsRequest.MetricsGranularityEnum? |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Script.v1.Data.Metrics>.RestPath
ScriptId
Required field indicating the script to get metrics for.
Declaration
[RequestParameter("scriptId", RequestParameterType.Path)]
public virtual string ScriptId { get; }
Property Value
Type | Description |
---|---|
string |
Methods
InitParameters()
Initializes GetMetrics parameter list.
Declaration
protected override void InitParameters()