Class PropertiesResource.CustomMetricsResource
The "customMetrics" collection of methods.
Inherited Members
Namespace: Google.Apis.GoogleAnalyticsAdmin.v1alpha
Assembly: Google.Apis.GoogleAnalyticsAdmin.v1alpha.dll
Syntax
public class PropertiesResource.CustomMetricsResource
Constructors
CustomMetricsResource(IClientService)
Constructs a new resource.
Declaration
public CustomMetricsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Archive(GoogleAnalyticsAdminV1alphaArchiveCustomMetricRequest, string)
Archives a CustomMetric on a property.
Declaration
public virtual PropertiesResource.CustomMetricsResource.ArchiveRequest Archive(GoogleAnalyticsAdminV1alphaArchiveCustomMetricRequest body, string name)
Parameters
Type | Name | Description |
---|---|---|
GoogleAnalyticsAdminV1alphaArchiveCustomMetricRequest | body | The body of the request. |
string | name | Required. The name of the CustomMetric to archive. Example format: properties/1234/customMetrics/5678 |
Returns
Type | Description |
---|---|
PropertiesResource.CustomMetricsResource.ArchiveRequest |
Create(GoogleAnalyticsAdminV1alphaCustomMetric, string)
Creates a CustomMetric.
Declaration
public virtual PropertiesResource.CustomMetricsResource.CreateRequest Create(GoogleAnalyticsAdminV1alphaCustomMetric body, string parent)
Parameters
Type | Name | Description |
---|---|---|
GoogleAnalyticsAdminV1alphaCustomMetric | body | The body of the request. |
string | parent | Required. Example format: properties/1234 |
Returns
Type | Description |
---|---|
PropertiesResource.CustomMetricsResource.CreateRequest |
Get(string)
Lookup for a single CustomMetric.
Declaration
public virtual PropertiesResource.CustomMetricsResource.GetRequest Get(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The name of the CustomMetric to get. Example format: properties/1234/customMetrics/5678 |
Returns
Type | Description |
---|---|
PropertiesResource.CustomMetricsResource.GetRequest |
List(string)
Lists CustomMetrics on a property.
Declaration
public virtual PropertiesResource.CustomMetricsResource.ListRequest List(string parent)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. Example format: properties/1234 |
Returns
Type | Description |
---|---|
PropertiesResource.CustomMetricsResource.ListRequest |
Patch(GoogleAnalyticsAdminV1alphaCustomMetric, string)
Updates a CustomMetric on a property.
Declaration
public virtual PropertiesResource.CustomMetricsResource.PatchRequest Patch(GoogleAnalyticsAdminV1alphaCustomMetric body, string name)
Parameters
Type | Name | Description |
---|---|---|
GoogleAnalyticsAdminV1alphaCustomMetric | body | The body of the request. |
string | name | Output only. Resource name for this CustomMetric resource. Format: properties/{property}/customMetrics/{customMetric} |
Returns
Type | Description |
---|---|
PropertiesResource.CustomMetricsResource.PatchRequest |