Class PropertiesResource.CalculatedMetricsResource.CreateRequest
Creates a CalculatedMetric.
Inheritance
PropertiesResource.CalculatedMetricsResource.CreateRequest
Inherited Members
Namespace: Google.Apis.GoogleAnalyticsAdmin.v1alpha
Assembly: Google.Apis.GoogleAnalyticsAdmin.v1alpha.dll
Syntax
public class PropertiesResource.CalculatedMetricsResource.CreateRequest : GoogleAnalyticsAdminBaseServiceRequest<GoogleAnalyticsAdminV1alphaCalculatedMetric>, IClientServiceRequest<GoogleAnalyticsAdminV1alphaCalculatedMetric>, IClientServiceRequest
Constructors
CreateRequest(IClientService, GoogleAnalyticsAdminV1alphaCalculatedMetric, string)
Constructs a new Create request.
Declaration
public CreateRequest(IClientService service, GoogleAnalyticsAdminV1alphaCalculatedMetric body, string parent)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
GoogleAnalyticsAdminV1alphaCalculatedMetric | body | |
string | parent |
Properties
CalculatedMetricId
Required. The ID to use for the calculated metric which will become the final component of the calculated metric's resource name. This value should be 1-80 characters and valid characters are /[a-zA-Z0-9_]/, no spaces allowed. calculated_metric_id must be unique between all calculated metrics under a property. The calculated_metric_id is used when referencing this calculated metric from external APIs, for example, "calcMetric:{calculated_metric_id}".
Declaration
[RequestParameter("calculatedMetricId", RequestParameterType.Query)]
public virtual string CalculatedMetricId { get; set; }
Property Value
Type | Description |
---|---|
string |
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Parent
Required. Format: properties/{property_id} Example: properties/1234
Declaration
[RequestParameter("parent", RequestParameterType.Path)]
public virtual string Parent { get; }
Property Value
Type | Description |
---|---|
string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
InitParameters()
Initializes Create parameter list.
Declaration
protected override void InitParameters()
Overrides
GoogleAnalyticsAdminBaseServiceRequest<GoogleAnalyticsAdminV1alphaCalculatedMetric>.InitParameters()