/// <summary>Snippet for GetCustomMetricAsync</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 GetCustomMetricResourceNamesAsync()
        {
            // Create client
            AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();

            // Initialize request argument(s)
            CustomMetricName name = CustomMetricName.FromProperty("[PROPERTY]");
            // Make the request
            CustomMetric response = await analyticsAdminServiceClient.GetCustomMetricAsync(name);
        }
Exemplo n.º 2
0
        /// <summary>Snippet for GetCustomMetricAsync</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 GetCustomMetricAsync()
        {
            // Create client
            AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();

            // Initialize request argument(s)
            string name = "properties/[PROPERTY]/customMetrics";
            // Make the request
            CustomMetric response = await analyticsAdminServiceClient.GetCustomMetricAsync(name);
        }
        /// <summary>Snippet for GetCustomMetricAsync</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 GetCustomMetricRequestObjectAsync()
        {
            // Create client
            AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();

            // Initialize request argument(s)
            GetCustomMetricRequest request = new GetCustomMetricRequest
            {
                CustomMetricName = CustomMetricName.FromProperty("[PROPERTY]"),
            };
            // Make the request
            CustomMetric response = await analyticsAdminServiceClient.GetCustomMetricAsync(request);
        }