예제 #1
0
 /// <summary>Snippet for GetCustomMetric</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void GetCustomMetricResourceNames()
 {
     // Create client
     AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
     // Initialize request argument(s)
     CustomMetricName name = CustomMetricName.FromProperty("[PROPERTY]");
     // Make the request
     CustomMetric response = analyticsAdminServiceClient.GetCustomMetric(name);
 }
 /// <summary>Snippet for GetCustomMetric</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void GetCustomMetric()
 {
     // Create client
     AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
     // Initialize request argument(s)
     string name = "properties/[PROPERTY]/customMetrics";
     // Make the request
     CustomMetric response = analyticsAdminServiceClient.GetCustomMetric(name);
 }
예제 #3
0
 /// <summary>Snippet for GetCustomMetric</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void GetCustomMetricRequestObject()
 {
     // Create client
     AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
     // Initialize request argument(s)
     GetCustomMetricRequest request = new GetCustomMetricRequest
     {
         CustomMetricName = CustomMetricName.FromProperty("[PROPERTY]"),
     };
     // Make the request
     CustomMetric response = analyticsAdminServiceClient.GetCustomMetric(request);
 }