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

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

            // Initialize request argument(s)
            string name = "properties/[PROPERTY]/customMetrics";
            // Make the request
            await analyticsAdminServiceClient.ArchiveCustomMetricAsync(name);
        }
Exemplo n.º 3
0
        /// <summary>Snippet for ArchiveCustomMetricAsync</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 ArchiveCustomMetricRequestObjectAsync()
        {
            // Create client
            AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();

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