/// <summary>Snippet for CreateCustomMetricAsync</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public async Task CreateCustomMetricAsync() { // Create client AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync(); // Initialize request argument(s) string parent = "properties/[PROPERTY]"; CustomMetric customMetric = new CustomMetric(); // Make the request CustomMetric response = await analyticsAdminServiceClient.CreateCustomMetricAsync(parent, customMetric); }
/// <summary>Snippet for CreateCustomMetricAsync</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public async Task CreateCustomMetricResourceNamesAsync() { // Create client AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync(); // Initialize request argument(s) PropertyName parent = PropertyName.FromProperty("[PROPERTY]"); CustomMetric customMetric = new CustomMetric(); // Make the request CustomMetric response = await analyticsAdminServiceClient.CreateCustomMetricAsync(parent, customMetric); }
/// <summary>Snippet for CreateCustomMetricAsync</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public async Task CreateCustomMetricRequestObjectAsync() { // Create client AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync(); // Initialize request argument(s) CreateCustomMetricRequest request = new CreateCustomMetricRequest { ParentAsPropertyName = PropertyName.FromProperty("[PROPERTY]"), CustomMetric = new CustomMetric(), }; // Make the request CustomMetric response = await analyticsAdminServiceClient.CreateCustomMetricAsync(request); }