Exemplo n.º 1
0
        /// <summary>Snippet for ArchiveCustomMetric</summary>
        /// <remarks>
        /// This snippet has been automatically generated for illustrative purposes only.
        /// It may require modifications to work in your environment.
        /// </remarks>
        public void ArchiveCustomMetric()
        {
            // Create client
            AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
            // Initialize request argument(s)
            string name = "properties/[PROPERTY]/customMetrics";

            // Make the request
            analyticsAdminServiceClient.ArchiveCustomMetric(name);
        }
Exemplo n.º 2
0
        /// <summary>Snippet for ArchiveCustomMetric</summary>
        /// <remarks>
        /// This snippet has been automatically generated for illustrative purposes only.
        /// It may require modifications to work in your environment.
        /// </remarks>
        public void ArchiveCustomMetricRequestObject()
        {
            // Create client
            AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
            // Initialize request argument(s)
            ArchiveCustomMetricRequest request = new ArchiveCustomMetricRequest
            {
                CustomMetricName = CustomMetricName.FromProperty("[PROPERTY]"),
            };

            // Make the request
            analyticsAdminServiceClient.ArchiveCustomMetric(request);
        }