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 |
---|---|---|
IClient |
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 |
---|---|---|
Google |
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 |
---|---|
Properties |
Create(GoogleAnalyticsAdminV1alphaCustomMetric, string)
Creates a CustomMetric.
Declaration
public virtual PropertiesResource.CustomMetricsResource.CreateRequest Create(GoogleAnalyticsAdminV1alphaCustomMetric body, string parent)
Parameters
Type | Name | Description |
---|---|---|
Google |
body | The body of the request. |
string | parent | Required. Example format: properties/1234 |
Returns
Type | Description |
---|---|
Properties |
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 |
---|---|
Properties |
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 |
---|---|
Properties |
Patch(GoogleAnalyticsAdminV1alphaCustomMetric, string)
Updates a CustomMetric on a property.
Declaration
public virtual PropertiesResource.CustomMetricsResource.PatchRequest Patch(GoogleAnalyticsAdminV1alphaCustomMetric body, string name)
Parameters
Type | Name | Description |
---|---|---|
Google |
body | The body of the request. |
string | name | Output only. Resource name for this CustomMetric resource. Format: properties/{property}/customMetrics/{customMetric} |
Returns
Type | Description |
---|---|
Properties |