Exemplo n.º 1
0
 /// <summary>Snippet for CreateCustomMetric</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void CreateCustomMetricResourceNames()
 {
     // Create client
     AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
     // Initialize request argument(s)
     PropertyName parent       = PropertyName.FromProperty("[PROPERTY]");
     CustomMetric customMetric = new CustomMetric();
     // Make the request
     CustomMetric response = analyticsAdminServiceClient.CreateCustomMetric(parent, customMetric);
 }
Exemplo n.º 2
0
 /// <summary>Snippet for CreateCustomMetric</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void CreateCustomMetric()
 {
     // Create client
     AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
     // Initialize request argument(s)
     string       parent       = "properties/[PROPERTY]";
     CustomMetric customMetric = new CustomMetric();
     // Make the request
     CustomMetric response = analyticsAdminServiceClient.CreateCustomMetric(parent, customMetric);
 }
 /// <summary>Snippet for CreateCustomMetric</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void CreateCustomMetricRequestObject()
 {
     // Create client
     AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
     // Initialize request argument(s)
     CreateCustomMetricRequest request = new CreateCustomMetricRequest
     {
         ParentAsPropertyName = PropertyName.FromProperty("[PROPERTY]"),
         CustomMetric         = new CustomMetric(),
     };
     // Make the request
     CustomMetric response = analyticsAdminServiceClient.CreateCustomMetric(request);
 }