public void GetLogMetric()
 {
     // Snippet: GetLogMetric(string,CallSettings)
     // Create client
     MetricsServiceV2Client metricsServiceV2Client = MetricsServiceV2Client.Create();
     // Initialize request argument(s)
     string formattedMetricName = MetricsServiceV2Client.FormatMetricName("[PROJECT]", "[METRIC]");
     // Make the request
     LogMetric response = metricsServiceV2Client.GetLogMetric(formattedMetricName);
     // End snippet
 }
        public async Task DeleteLogMetricAsync()
        {
            // Snippet: DeleteLogMetricAsync(string,CallSettings)
            // Additional: DeleteLogMetricAsync(string,CancellationToken)
            // Create client
            MetricsServiceV2Client metricsServiceV2Client = MetricsServiceV2Client.Create();
            // Initialize request argument(s)
            string formattedMetricName = MetricsServiceV2Client.FormatMetricName("[PROJECT]", "[METRIC]");
            // Make the request
            await metricsServiceV2Client.DeleteLogMetricAsync(formattedMetricName);

            // End snippet
        }
        public async Task UpdateLogMetricAsync()
        {
            // Snippet: UpdateLogMetricAsync(string,LogMetric,CallSettings)
            // Additional: UpdateLogMetricAsync(string,LogMetric,CancellationToken)
            // Create client
            MetricsServiceV2Client metricsServiceV2Client = MetricsServiceV2Client.Create();
            // Initialize request argument(s)
            string    formattedMetricName = MetricsServiceV2Client.FormatMetricName("[PROJECT]", "[METRIC]");
            LogMetric metric = new LogMetric();
            // Make the request
            LogMetric response = await metricsServiceV2Client.UpdateLogMetricAsync(formattedMetricName, metric);

            // End snippet
        }